Is there a way to combined `--changed-since` with ...
# general
f
Is there a way to combined
--changed-since
with actual listed targets in a single Pants command? Like I want the union of what the changed subsystem gives plus the things I specify. The changes subsystem doesn't seem to like this
Copy code
❯ ./pants --changed-since=origin/main list tests/local/email/test_email.py 
10:26:05.80 [ERROR] You used `--changed-since` at the same time as using file arguments. You can only use `--changed-since` or use normal arguments.
h
you want the *intersection or the union?
f
nevermind I don't want no part of this 😅
😂 2
I hadn't realized that there were so many edge cases around doing that, and so many potential interpretations of what it might mean. I'll write my own plugin to solve my use case 😤
👍 1
h
if you're motivated, we'd definitely welcome a PR to improve the error message with some recipes of what users may be wanting to do
f
To clarify: our CI has a feature where we can inject "virtual changes" via messages in commits. This is mostly to let people run extra tests without making dummy changes, and then we can go back and audit CI logs for these and try to use that info to improve our dep graph. So I want to union those things we scrape from messages with the set of actual changes, calculate the dependant transtive closure, and use that as the input set to our next operations. I can easily do this with multiple Pants commands, but locally it triggers pantsd restarts more than I want so I end up waiting more than I'd like. Trying to think about how to combine this stuff into a single Pants command.
👍 1