-
Notifications
You must be signed in to change notification settings - Fork 16
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
Automation: improve quality of update-charts automation #389
Comments
I am sorry to hear your pain points.
They are two different open issues that could solve your pain point, one to improve the yaml plugin to allow multiple yamlpath queries suggested by @jvanz updatecli/updatecli#1056. It would reduce the number of target needed and therefor the number of commit as commit title are generated by Updatecli target name. And the second one related to updatecli/updatecli#465 which would move all the git operation to a separated action that would allow more customization like either one commit per target or one commit per group of target. The first approach suggested by Jose would definitely be easier to implement. The second one is part of a larger refactoring which we struggle to work on the side so we move slowly bits by bits 😞
They are two problems, one on Updatecli side, I have an issue here updatecli/updatecli#1747 and another one on GitHub side (I don't find anymore the GitHub issue tracking that problem :D ). When this happen, I close the pullrequest and delete the branch so Updatecli can reopen another one from the correct base branch I think the GitHub issues should disappear or at least be mitigated once I implement the merge/rebase functionality. Adding merge/rebase is pretty high on my priority list, I missing some feature in the go-git library so it's not trivial to fix but to me it's probably the most annoying bug on Updatecli today.
I've been scratching my head around that problem too but it's a lot more difficult to handle in Updatecli because Updatecli can update a lot of different type of information. For example this pullrequest related to Kubernetes on CIVO contains more than one type of changes civo/kubernetes-marketplace#685 updatecli/updatecli#1363 and updatecli/updatecli#1364 This problem prevents me to make progress on the Udash project. |
@olblak thanks for the detailed explanation. I get the feeling that, until a better solution is available, the easiest workaround for us would be to:
In this way we would have PRs that are easier to review. What do the other @kubewarden/kubewarden-developers think about that? If you agree with this workaround, then we need to update this GH action to expose a manual trigger |
Not actionable, we're waiting for updatecli to implement the fixes mentioned by @olblak |
For info I just released v0.75.0 which address pain point 2 :) |
The PRs produce by the
update-charts
automation are not useful.These are the main pain points:
main
branch. When looking at the diff the comparison is not made between the current main branch and the PR branch. On the left side of the diff there's the commit that used to be HEAD inside of themain
branch.-rcX
to-rcX+1
in Update chart job #222 to keep track of that)I just cleaned up a PR created by the bot, I had to go through a 24 commits rebase with lots of conflicts that needed to be solved manually. It would have been easier - and quicker - to just create a new PR by hand, from scratch 😞
How should we tackle that
Let's just ignore the 3rd pain point, for which we have a dedicated issue.
The 2nd pain point seems to be a limitation of the GitHub API (or something like that, @olblak gave me an explanation sometimes ago, but I forgot 😅).
I've seen other bots, like dependabot, using the following approach:
123
that bumps componentfoo
to versionx.y.z
foo
is created, but PR123
is still open124
that bumps componentfoo
to versionx.y.(z+1)
123
Maybe we could do something like that? This could also reduce the number of commits inside of these PRs (the 1st point)
The text was updated successfully, but these errors were encountered: