https://pantsbuild.org/ logo
#general
Title
# general
l

little-alligator-81837

07/11/2022, 8:28 PM
Hello Pants Community, I'm fairly new to pants and want to see if anyone has a suggestion for how I can improve the below. I have a project with a few dozen pants targets. I want to check if a given target has changed since a given git tag. My current approach is to call the below once per target and tag combination:
Copy code
f"./pants --changed-since='{tag}' --changed-dependees=transitive filter --address-regex='{target}'"
This seems to give me what I want but it takes a while to run and, when multiplied by the number of combinations that I have, when i run all of my combinations serially, it adds ~10-15m to my deploy step in my CI, which is much longer than I'd prefer. So, my question is, is there another way to achieve this result which is quicker? My current solution is to run this parallel in separate jobs for each combination but, for various reasons, this isn't really how I'd hoped to solve this.
n

narrow-vegetable-37489

07/11/2022, 8:31 PM
I think you can do
./pants --changed-since={tag} list
to list everything that's changed since
{tag}
.
h

happy-kitchen-89482

07/11/2022, 11:40 PM
Yes,
filter
is deprecated as a standalone goal, you can just apply
--changed-since
to any goal
4 Views