-
-
Notifications
You must be signed in to change notification settings - Fork 638
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
Update address parameters on overrides #20934
Conversation
Thanks for the fix @isra17 ! To get CI passing, add an entry in |
Thanks for the fix! It looks like this reproduces in at least 2.17.0 (thanks for the reproducer in #20933), which suggests to me:
Thus, I'd suggest we put the notes in |
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 for the find, repro! and fix 🙌🏽
I think we'd like to take it the full mile however, and remove any "unparametrized" parameters from the address as well.
Ok, so this PR grew a bit in scope trying to attempt #20934 (comment) . In short, I've added support to:
I also went a bit farther and unparametrize from group as well, so that if a parameters group has Let me know what you think and if you would rather have me revert to the original scope. |
Love this! I think we may want to go back to not unparametrize single value parametrizations, but lets hold on that until we get more opinions. |
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.
yea, looking at this code I feel it's kind of hairy.
Perhaps split this to fix the original issue in this PR, and have a new PR addressing the more general case?
wdyt?
73e7816
to
da4f42c
Compare
Ok, third round!
I think CI should get green this time 🤔 |
da4f42c
to
ea39d3e
Compare
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.
This looks great, thanks!
Just some minor nits and tweaks left, I think :)
This fix a bug where default parametrize resolve with overrides would have inconsistent parameters and field values.
ad16011
to
d95d095
Compare
Comment addressed and CI is green! |
d95d095
to
3cf30c3
Compare
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.
Great.
(n.b. would prefer regular pushes over force push when possible, makes it easier to review what's changed since last review. we do squash merges so it doesn't mess up the history either way.)
I tried to automatically cherry-pick this change back to each relevant milestone, so that it is available in those older releases of Pants. ❌ 2.19.xI was unable to cherry-pick this PR to 2.19.x, likely due to merge-conflicts. Steps to Cherry-Pick locallyTo resolve:
Please note that I cannot re-run CI if a job fails. Please work with your PR approver(s) to re-run CI if necessary. ❌ 2.20.xI was unable to cherry-pick this PR to 2.20.x, likely due to merge-conflicts. Steps to Cherry-Pick locallyTo resolve:
Please note that I cannot re-run CI if a job fails. Please work with your PR approver(s) to re-run CI if necessary. ❌ 2.21.xI was unable to cherry-pick this PR to 2.21.x, likely due to merge-conflicts. Steps to Cherry-Pick locallyTo resolve:
Please note that I cannot re-run CI if a job fails. Please work with your PR approver(s) to re-run CI if necessary. When you're done manually cherry-picking, please remove the Thanks again for your contributions! |
Thank you for your patience! In the future I will keep commits stack if that make your job easier ;) |
@huonw I don't have the bandwidth currently to look into the failed cherry picks. Could be that the merge conflicts are due to changes in the parametrize.py that hasn't been picked. Not sure how urgent it is to actually get this fix picked? @isra17 are you tied down to a particular Pants version, and would prefer this fix on that release branch, or are you able to upgrade to an upcoming 2.22 dev/rc? |
If there's changes that haven't been picked, that's a possibility. Another likely candidate is the release notes addition: the 2.22 file won't exist in older versions. This is a "known issue" unfortunately, e.g. #20888 (comment) |
Ah, that could be it as well then. I thought I had some relevant changes, but I think those've been picked. |
No worry on our side, we did went with a workaround so it's not a blocker (And we also don't mind to upgrade to dev/rc) |
This fix a bug where default parametrize resolve could not get overriden.
The fix ensure that an address parameters are updated on any override, not just parametrized one.
Fixes #20933