Skip to content
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

Merged
merged 1 commit into from
May 20, 2022

Conversation

Eric-Arellano
Copy link
Contributor

Closes #15544.

[ci skip-rust]
[ci skip-build-wheels]

# 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]
@Eric-Arellano Eric-Arellano added needs-cherrypick category:bugfix Bug fixes for released features labels May 19, 2022
@Eric-Arellano Eric-Arellano added this to the 2.11.x milestone May 19, 2022
@Eric-Arellano Eric-Arellano requested a review from stuhood May 19, 2022 18:34
# 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,
Copy link
Member

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?

Copy link
Contributor Author

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

Copy link
Member

@stuhood stuhood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Eric-Arellano Eric-Arellano merged commit 2be9157 into pantsbuild:main May 20, 2022
@Eric-Arellano Eric-Arellano deleted the fix-tags branch May 20, 2022 02:17
Eric-Arellano added a commit that referenced this pull request May 20, 2022
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]
Eric-Arellano added a commit to Eric-Arellano/pants that referenced this pull request May 20, 2022
Closes pantsbuild#15544.

[ci skip-rust]
[ci skip-build-wheels]
Eric-Arellano added a commit that referenced this pull request May 20, 2022
#15564)

Fix `tag` filtering with `--changed-dependees` (#15546)

Closes #15544.

[ci skip-rust]
[ci skip-build-wheels]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:bugfix Bug fixes for released features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

v2.11.1rc0 changed behavior of filter when filtering on transitive changed-since AND tags
2 participants