cold-soccer-63228
07/27/2022, 8:14 PMpath/to/file.py:target_name.
What I’m looking for is a way to filter out all of the targets returned such that I only get things like path/to/file.py.happy-kitchen-89482
07/27/2022, 9:06 PMpath/to/file.py:target_name is the "proper name" of a file-level target (generated by path/to:target_name)happy-kitchen-89482
07/27/2022, 9:06 PMcold-soccer-63228
07/27/2022, 9:17 PMhappy-kitchen-89482
07/27/2022, 10:50 PM./pants --filter-target-type=python_test peek :: and pluck out the sources with jq or some json-parsing scripthappy-kitchen-89482
07/27/2022, 10:50 PM--filter arguments to any goalhappy-kitchen-89482
07/27/2022, 10:50 PMpeek in this casehappy-kitchen-89482
07/27/2022, 10:51 PM./pants filter to ./pants peekhappy-kitchen-89482
07/27/2022, 10:51 PMhappy-kitchen-89482
07/27/2022, 10:51 PMcold-soccer-63228
07/28/2022, 12:58 AMIs Pants’s build-in test parallelization not sufficient for your case?It’s not, at the moment. I initially was looking to try to implement https://github.com/pantsbuild/pants/issues/15026, but encountered some issues with pytest-xdist, and wanted to try implementing a workaround in case it ended up being difficult to implement the pytest-xdist feature into Pants. (Issue I ran into is described in the thread on https://pantsbuild.slack.com/archives/C046T6T9U/p1658777475033269.)
cold-soccer-63228
07/28/2022, 1:06 AM--filter-target-type=python_test.
First, I tried running the following.
./pants --changed-since=origin/master dependees --transitive --closed
This output a huge list of changed targets and corresponding dependees (with many test and non-test targets).
Then, I ran the following.
./pants --changed-since=origin/master dependees --transitive --closed --filter-target-type=python_test
This output a pruned list of the above, but seems to have overpruned. There existed tests in the first list, that did not exist in the second list.
Do you know what might be happening?