Hello, I had a question about pants dependency res...
# general
r
Hello, I had a question about pants dependency resolution. We have a monorepo (mostly python) where we have a util module with a bunch of enums (say
Enum1
,
Enum2
, ....
Enum100
). If I make changes to one of the Enum classes in the module (say
Enum1
), is pants "smart" enough to do class resolution and only run tests over modules using
Enum1
when running
pants test
OR will pants run all the test that imports the util module (i.e. tests over modules that imports
Enum2
but not
Enum1
are also run)
?
e
To my knowledge, all of pants' dependency resolution is done at the file level. It sounds like all your `Enum`s are in the same file/module, so a change to any of them will cause re-testing of everything that imports any of them.
👍 2
h
Yep, @elegant-florist-94385 is correct.
👍 1
r
Thank you.