Still hammering away at this, but local tests are ...
# development
r
Still hammering away at this, but local tests are failing because of
ModuleNotFoundError: No module named 'pants.engine.internals.native_engine'
. After a bunch of debugging, discovered that it was because
native_engine.so
was not present in the sandbox (only
native_engine.so.metadata
was). I preserved the sandbox, ran the import within it, and indeed it failed. I copied over my pants cache
native_engine.so
into the sandbox, and then the import worked.
internals/BUILD
has the correct dependency overrides. I tried busting my entire pants cache, `rm`’ing
native_engine.so
, nothing helped. I’ll continue looking at this, but was wondering if anyone had already seen this happen and had a suspicion off the bat. Why isn’t native_engine.so being included in the sandbox? This issue doesn’t happen in CI. I have an M1. This happens on
main
as well.
h
Hmm, local tests of Pants? Or of your own code? The engine should not need to be present in the sandbox in the latter case, since it is not the code under test.
r
Local tests of Pants itself!
h
Ah, makes sense 🙂