cool-easter-32542
06/13/2024, 7:28 AMpants publish some/python/dist:target reliable, we want to test it first. Which tests do we need to run?
Describe the solution you'd like
We know which Python sources go into the distribution. We know which tests depend on these sources. Running pants test on a python_distribution could be interpreted as: "Run all tests that directly depend on the sources going into the distribution."
Describe alternatives you've considered
• Run all tests. (Not always desirable, esp. during feature work where unrelated parts may be in a broken state..)
• Know which tests are relevant for each distribution. (Brittle/explicit. Pants boasts strong inference capabilities, this could be another one of those.)
• Custom plugin. (2nd best option.)
• External scripting to learn which tests are relevant. (Ugh.)
Additional context
pantsbuild/pants