cuddly-window-48195
10/09/2019, 6:55 PMpants test
can skip reruns if dependencies weren't changed?aloof-angle-91616
10/09/2019, 6:55 PMcuddly-window-48195
10/09/2019, 6:57 PMpython_tests
aloof-angle-91616
10/09/2019, 6:58 PMcuddly-window-48195
10/09/2019, 6:58 PMaloof-angle-91616
10/09/2019, 6:59 PMhundreds-father-404
10/09/2019, 7:00 PM.pants.d/
?cuddly-window-48195
10/09/2019, 7:01 PMaloof-angle-91616
10/09/2019, 7:01 PMcuddly-window-48195
10/09/2019, 7:02 PMA
which caused a completely unrelated test target B
to run. Both tests are tagged with the functional
tag, and we're running via ./pants tag=functional test.pytest ...
aloof-angle-91616
10/09/2019, 7:03 PMaloof-angle-91616
10/09/2019, 7:03 PMaloof-angle-91616
10/09/2019, 7:04 PMaloof-angle-91616
10/09/2019, 7:04 PMaloof-angle-91616
10/09/2019, 7:05 PMcuddly-window-48195
10/09/2019, 7:06 PMA
and B
are in play, so it hashes the union of both, while the new version hashes them independently?aloof-angle-91616
10/09/2019, 7:06 PMaloof-angle-91616
10/09/2019, 7:07 PM--fast
is enabled by defaultaloof-angle-91616
10/09/2019, 7:07 PM--no-fast
then you get per-target cachingaloof-angle-91616
10/09/2019, 7:07 PMcuddly-window-48195
10/09/2019, 7:07 PMaloof-angle-91616
10/09/2019, 7:08 PM--fast
is on by default (that's in the test.pytest
scope), and if you disable it on the command line or (probably) in pants.ini
, things should workaloof-angle-91616
10/09/2019, 7:08 PM--no-fast
first to populate the cache with per-target keys of course and then it should be cachedaloof-angle-91616
10/09/2019, 7:08 PMaloof-angle-91616
10/09/2019, 7:09 PM--no-fast
works by doing everything in its own process. the v2 engine allows us to do this much more efficiently and there are efforts to do the same for the whole python pipelinecuddly-window-48195
10/09/2019, 7:10 PMhundreds-father-404
10/09/2019, 7:11 PM./pants —no-v1–v2 test
(double dashes, am on phone and it autocorrected)hundreds-father-404
10/09/2019, 7:15 PMaloof-angle-91616
10/09/2019, 7:40 PMaloof-angle-91616
10/09/2019, 7:41 PM