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: idempotency issues when rangeStrategy=update-lockfile is used with other rangeStrategy in the same file #11328
Conversation
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
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.
Use the re-request review button when you've done all mentioned changes, so we see the PR on our review list
oh okay, sure will do that next time 👍 |
…ith update-lockfile
I added a second check when two rangeStrategy are used on a single packageFile, when one is Here is an example output with this change :
Still on the same test repository : onigoetz/renovate-loop-repro#2 (which now contains a force-push, but that's an actual dependency update) |
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
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.
It's kinda ugly but we may need to live with it. What do you think @viceice ?
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.
Don't know a better solution for now. 🤔
🎉 This PR is included in version 26.21.2 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Changes:
This change provides a fix for #10050
Since options using
postUpdateOptions
cause the behaviour of PR updates to be non-deterministic,reuseExistingBranch
is set to false when such options are discovered.This should have no noticeable impact on the number of pushes because the commit won't be made if the content is identical to the previous commit.
Context:
Closes #10050
Documentation (please check one with an [x])
How I've tested my work (please tick one)
I have verified these changes via:
The PR from the production renovate is this one : onigoetz/renovate-loop-repro#1 as you can see there are several hundreds force pushes
The PR created by this updated code is : onigoetz/renovate-loop-repro#2
I have run the script three times locally, the first time it created the branch.
the second and third time it output this
Which seem to indicate that everything works as expected now