-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Simplify contrib/backport
#27520
Simplify contrib/backport
#27520
Conversation
- Always delete the backport branch so that script is idempotent in this regard - Remove the push functionality, it's best done by the user - Remove reading docs/config.yaml, it no longer exists - Remove version detection, version is now a required argument - Clean up the console logging
Co-authored-by: delvh <[email protected]>
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.
Good to keep things simple
This will break the |
Yes, that parameter was removed. |
It did look for a aborted cherry-pick, but I think given that the script now deletes the backport branch every time, it likely will never encounter the situation again. I think it's good that this script becomes idempotent (it isn't so far because it stays on the backport branch after execution, but that's kind of a necessity because we now require the user to push). Also, the command logging and error printing should be improved with a single shell execution wrapper function. |
The goal is to get this script into a state where the backporter bot can use it, so we can replace most of this code. |
It already was in a state that the backporter tool could use. By removing the
Instead of simply removing things you should have just read or improved the documentation explaining what it was doing. |
I don't mind if you want to restore, but I thought this script should be idempotent and a |
* giteaofficial/main: Respect SSH.KeygenPath option when calculating ssh key fingerprints (go-gitea#27536) Remove max-width and add hide text overflow (go-gitea#27359) Fix `environment-to-ini` inherited key bug (go-gitea#27543) Improve docs about register/run as a service (go-gitea#27461) api: GetPullRequestCommits: return file list (go-gitea#27483) switch to using official AWS step in release nightly (go-gitea#27532) Improve file history UI and fix URL escaping bug (go-gitea#27531) Improve dropdown's behavior when there is a search input in menu (go-gitea#27526) Simplify `contrib/backport` (go-gitea#27520) Add docs section for sub-paths with the container registry (go-gitea#27505) Document our new labeling strategy (go-gitea#27523) [skip ci] Updated translations via Crowdin Restore warning commit status (go-gitea#27504) Update labeler to match new labeling system (go-gitea#27525) Apply to become a maintainer (go-gitea#27522) Remove unnecessary desc for openssh key cron task (go-gitea#27515) Tweak labeler config (go-gitea#27502) Add hover background to wiki list page (go-gitea#27507) [FIX] missing ctx in new_form (go-gitea#27514)
It cannot be idempotent. It was not intended to idempotent it was supposed to assist with performing backports especially when those backports failed. |
Your simplification has now broken the specific help information that gitea-backport tells maintainers. e.g. #27511 (comment) It said how to use the script, if it wasn't clear you should have improved the message instead of simply destroying things. |
Right, so let's restore |
This reverts go-gitea#27520 commit 79e8865 which breaks `--continue` functionality.
* giteaofficial/main: [skip ci] Updated translations via Crowdin Keep filter when showing unfiltered results on explore page (go-gitea#27192) Don't show Link to TOTP if not set up (go-gitea#27585) Fix data-race bug when accessing task.LastRun (go-gitea#27584) Fix template bug (go-gitea#27581) Replace ajax with fetch, improve image diff (go-gitea#27267) Replace assert.Fail with assert.FailNow (go-gitea#27578) Fix the robots.txt path show manual cron run's last time (go-gitea#27544) fully replace drone with actions (go-gitea#27556) Revert "Simplify `contrib/backport` (go-gitea#27520)" (go-gitea#27566) Align ISSUE_TEMPLATE with the new label system (go-gitea#27573) Penultimate round of `db.DefaultContext` refactor (go-gitea#27414)
This script was trying to be too smart, make it more straightforward and less error-prone so that i could be used by the backport bot too ideally.
Example run: