Improve version bump flexibility and automate AWS and sequel deps to minor automatically#19118
Conversation
…r version level (minor, major)
🤖 GitHub commentsJust comment with:
|
3c7a074 to
c357e5e
Compare
|
do you have any example workflow runs or outputs/diffs to point to seeing how this works in action? Dynamically generating sets of gems with the |
1d740df to
fcae407
Compare
|
@donoghuc Yes! here's the job eun and the resulting PR. As I avoided creating and maintaining a separate list/file with the list of dependencies, I'm not really agains it, but I think would be easier using |
c357e5e to
3947da9
Compare
42666bf to
c18ee2d
Compare
c18ee2d to
3947da9
Compare
|
@donoghuc I sent back this PR to its first version where just AWS gems were automatically updated to minor and 2 new input parameters to select specific gems and provide more flexibility, following the comment in the 8.19 PR. It is described in the PR description with an example run and PR. The thing I've doubts about is the backport, it looks like the workflow has diverged a lot between 8.19 and 9.x branches, that are almost up to date with |
Unfortunately no. The reason is that the lockfile has a ruby version component to it, so you must run the workflow from the branch that you are doing the update for. For example if you try to run the workflow from SO, with the current architecture we must do backports to all branches so that the workflow we run corresponds to the branch it is operating on. |
1aef042 to
80acc66
Compare
|
@Mergifyio backport 9.4 9.3 8.19 |
✅ Backports have been createdDetails
Cherry-pick of f71e27b has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
Release notes
[rn:skip]
What does this PR do?
Automates AWS minor updates on lock file patch bumps and adds 2 config parameters, allowing selected gems to be updated to minor or major automatically, improving workflow flexibility.
Why is it important/What is the impact to the user?
It allows to select gems where a desired feature/fix has been shipped as minor/major release and also keeps up to date gemps that don't ship patch releases (AWS).
Related issues
Tests
Example job run and the resulting PR. Some gems were manually downgraded at target branch befor the workflow execution.
elasticsearchandrubocopchose as selected minor gems input param, and redis as major.