Helm values updates are ignored during successive runs when bumpVersion is enabled #8919
Closed
1 of 5 tasks
Labels
priority-3-medium
Default priority, "should be done" but isn't prioritised ahead of others
type:bug
Bug fix of existing functionality
What Renovate type, platform and version are you using?
Renovate GitHub App.
Describe the bug
If bumpVersion is enabled and the helm-values manager attempts to update an image version in values.yaml and additionally tries to bump the Chart.yaml when updating a helm chart, there seems to be an ordering issue where sometimes both files are correctly updated and sometimes just the Chart.yaml version bump is applied.
For example, in my helm chart repo there are currently 2 PRs open which update helm-values. Renovate is configured to bumpVersion in the Chart.yaml as well: https://github.com/chgl/charts/pulls.
https://github.com/chgl/charts/pull/40/files
incorrectly just bumps the Chart.yaml:
https://github.com/chgl/charts/pull/45/files
correctly updates both Chart.yaml and values.yaml:
However, I noticed that renovate tries to constantly update both PRs and everytime it does, the "correctness" of the PR is swapped, ie. the next time renovate will run, chgl/charts#40 will be corrected to update both files and chgl/charts#45 will only update the Chart.yaml ( - which just happened as I was typing).
Note that this is definitely a result of something I messed up in #8240. We could revert 662a60a for now to fix it. I can't quite figure out what I did wrong, but at least I can reproduce it to some extent.
Relevant debug logs
renovate-logs-310092033.txt
Have you created a minimal reproduction repository?
In https://github.com/chgl/charts/pulls the two PRs 40 and 45 flip-flop between being correctly updated and missing the values.yaml update.
Please read the minimal reproductions documentation to learn how to make a good minimal reproduction repository.
Additional context
I think it's something I didn't consider in
renovate/lib/workers/branch/get-updated.ts
Line 118 in 98d5539
The text was updated successfully, but these errors were encountered: