-
-
Notifications
You must be signed in to change notification settings - Fork 646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix tag
filtering with --changed-dependees
#15546
Conversation
# Rust tests and lints will be skipped. Delete if not intended. [ci skip-rust] # Building wheels and fs_util will be skipped. Delete if not intended. [ci skip-build-wheels]
# If `--changed-dependees` is used, we cannot eagerly filter out root targets. We | ||
# need to first find their dependees, and only then should we filter. See | ||
# https://github.com/pantsbuild/pants/issues/15544 | ||
filter_by_global_options=no_dependees, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be using bool(specs_filter)
instead, in order to ensure that regexes are applied as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regexes will be applied via the last part of this rule -- no_dependees
only determines whether we eagerly filter with the roots, or defer the filtering until after dependees have been found
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Revert #15413. It did fix two bugs, but was too risky. In particular, it resulted in #15544. I wasn't able to cherry-pick the fix #15546 because the tests have diverged too much. So instead, we should revert. However, we keep the fix for `python_tests`, which was a 2.11-specific regression. [ci skip-rust]
Closes pantsbuild#15544. [ci skip-rust] [ci skip-build-wheels]
Closes #15544.
[ci skip-rust]
[ci skip-build-wheels]