stale-nightfall-29801
10/22/2021, 8:16 AMclean-city-64472
10/22/2021, 2:57 PM--changed-since
argument which can be any gitref. So if you are on a PR you might want to run ./pants test --changed-since=origin/main --changed-dependees=transitive
to run all tests that have changes (directly or indirectly) since your main branch.stale-nightfall-29801
10/22/2021, 3:08 PMhappy-kitchen-89482
10/22/2021, 3:39 PM./pants test ::
which means "get me test results for everything" and rely on pants caching to skip actually running tests whose inputs haven't changed. But, this is tricky to do in CI because you have to preserve the local cache across runs, and while all CI providers I'm familiar with (I don't know TeamCity) have some mechanism for doing this, it's usually pretty clunky, and it gets slow as the cache grows, so then you have to prune it, and it becomes a whole thing...happy-kitchen-89482
10/22/2021, 3:41 PM./pants test ::
and be done with it. Plus, your desktop runs get to share that cache, so those get a lot faster too - when you start work in the morning and pull from main, CI has already populated the cache with results for all those changes...happy-kitchen-89482
10/22/2021, 3:41 PMwitty-crayon-22786
10/22/2021, 4:22 PM