early-businessperson-60137
04/21/2026, 11:41 PMpants --changed-since=main --changed-dependents=transitive list even if the files they depend on haven’t changed. Basically, it seems like the sources are being treated as a group rather than separately. I don’t particularly want to go around splitting every single python_sources target — is there anything else we can do? Is this behavior expected?wide-midnight-78598
04/21/2026, 11:49 PMpython_sources(*.py)
- foo.py
- bar.py
and then you change foo, and bar's tests run too?early-businessperson-60137
04/21/2026, 11:50 PMearly-businessperson-60137
04/21/2026, 11:50 PMwide-midnight-78598
04/21/2026, 11:51 PMearly-businessperson-60137
04/21/2026, 11:52 PMwide-midnight-78598
04/21/2026, 11:52 PMtarget_generator which python_sources is.
I've never looked through the transitive dependency code, but this is surprising off the top of my headwide-midnight-78598
04/21/2026, 11:54 PMearly-businessperson-60137
04/21/2026, 11:55 PMearly-businessperson-60137
04/21/2026, 11:55 PMearly-businessperson-60137
04/21/2026, 11:55 PMwide-midnight-78598
04/21/2026, 11:59 PMhappy-kitchen-89482
04/22/2026, 12:15 AMearly-businessperson-60137
04/22/2026, 2:39 AMearly-businessperson-60137
04/22/2026, 2:44 AMwide-midnight-78598
04/22/2026, 10:33 AMearly-businessperson-60137
04/22/2026, 3:42 PM--changed-since=origin/main to run tests affected by a PR, which isn't quite right. What we really wanted was --changed-since="$(git merge-base HEAD origin/main)" so that we only run the tests changed relative to the merge base, not unrelated changes to main that got merged while we were working on the PR.
If you think other people might fall into this trap, I'm happy to send a PR adding this tip to the --changed-since docs. Otherwise, I'm just glad that we're not running oodles of tests anymore 🙂wide-midnight-78598
04/22/2026, 3:48 PMcli.alias to setup the ones you want, and recommend your team use those internally to make sure it’s locked downearly-businessperson-60137
04/22/2026, 4:01 PMearly-businessperson-60137
05/01/2026, 10:46 PM