wide-midnight-78598
10/04/2024, 4:14 PMpants test ::
? Does it automatically try to figure out whether a change will cause transitive problems? Or if my changed file is in a package, and that package is referenced elsewhere?
Does any of this change if the changed file is located within a batch_compatibility_tag?wide-midnight-78598
10/04/2024, 4:16 PMpants test ::
(without transitive deps) is re-running tests that seem to be located in a separate test batch.
The fact that the tests are running is arguably good, but I’m more concerned about where that is decidedcurved-manchester-66006
10/04/2024, 7:35 PM::
"all the thing" regardless of what changed?wide-midnight-78598
10/04/2024, 7:45 PMwide-midnight-78598
10/04/2024, 7:46 PMcurved-manchester-66006
10/04/2024, 7:55 PMpackageAs in 3rdparty? We talking Python here?
wide-midnight-78598
10/04/2024, 7:59 PMwide-midnight-78598
10/04/2024, 7:59 PMpants test ::
is doing more than it needs tohappy-kitchen-89482
10/04/2024, 8:43 PMwide-midnight-78598
10/04/2024, 9:17 PMwide-midnight-78598
10/04/2024, 9:21 PMfoo.py
causes test_foo.py
to re-run - cool, perfect, no problem.
But, in my case, test_foo.py
re-runs, and test_some_seemingly_unrelated_file.py
also re-runs even though there is no direct link between that test file and foo.py
except via some long chain of transitive dependencies.
An alternate explanation is that, changing foo.py
causes the test batches_compatibility_tag to be re-calculated and then two unrelated batches just end up being re-runhappy-kitchen-89482
10/04/2024, 10:08 PMhappy-kitchen-89482
10/04/2024, 10:08 PMtest_foo.py
depends transitively on test_some_seemingly_unrelated_file.py
then it will rerun when the latter changeshappy-kitchen-89482
10/04/2024, 10:08 PMwide-midnight-78598
10/04/2024, 10:16 PMtest_some_seemingly_unrelated_file.py
depends on foo.py via like 10 linked files, but not all of the related tests in the middle run, necessarily.
Also, isnt' this one of those cases where we'd normally write pants --changed-dependents=transitive test
or something to get this behaviour?wide-midnight-78598
10/04/2024, 10:18 PMwide-midnight-78598
10/04/2024, 10:18 PMhappy-kitchen-89482
10/04/2024, 10:20 PMhappy-kitchen-89482
10/04/2024, 10:20 PMfoo.py
wide-midnight-78598
10/04/2024, 10:24 PMfoo.py
is edited, but files related by long distances -sometimes- run their tests
This is why I was thinking it was a batching problem, which might explain away the behaviour Im seeing. I don't know much about batchingwide-midnight-78598
10/04/2024, 10:33 PM