-
Notifications
You must be signed in to change notification settings - Fork 91
Auto-nominate for backport a pull request fixing a regression #2092
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
base: master
Are you sure you want to change the base?
Conversation
7a37ed9
to
9167286
Compare
2484587
to
eb5b382
Compare
dc9450f
to
4f7b659
Compare
4f7b659
to
9682868
Compare
18cd1ce
to
71d50d8
Compare
Modulo the last nit, this looks good to me. Thanks for putting it through my reviews. Next step (preferably before merging) will be to open a PR against the forge to add documentation for this feature, with a description of what it does, it's currently limitations, how to activate it, ... (take inspiration from the current pages). Regarding deployment, do you want to go straight to "prod" in rust-lang/rust or do you want to use this repo as a small playground before using it rust-lang/rust? |
Started this some time ago. I will look at it again and un-draft it
I did some tests in my "playground". Testing this PR here implies adding a whole bunch of labels that we don't use here (T-, regression-, *-backport). Unless I undo all the setup, it would be just dirt in the repository. I don't know. If anyone feels strongly about it, I will do it :) |
71d50d8
to
1ec7a03
Compare
Great. I'm find going to rust-lang/rust then. Will merge the PR after you format the code (to fix CI). |
Oh, I didn't notice the CI rustfmt failure. In this repo we have a config file that tells rustfmt to use edition 2018 but I think the CI is using the 2024 edition formatting options:
Hmm is there a discrepancy between the |
(I'm not at a computer to verify this, so I may be wrong). I think cargo is overridding the edition in I think the |
Co-authored-by: mibac138 <5672750+mibac138@users.noreply.github.com>
1ec7a03
to
2556583
Compare
From #1184:
We should nominate PRs for backport if any of the following are true:
This patch implements point (1) and adds a check when a new PR is opened. The new
backport.rs
handler tries to figure to out if a PR should be nominated for backport.This handler is enabled by adding a new
[backport]
config item. The format allows multiple instances of the config so teams can handle backports as they wish.The workflow that models the decision to add the backport label is:
#123
, with a t-label (ex. "T-compiler")#456
, adds comment "Fixes#123
"3a. checks if PR has the required team labels (reads from
required_pr_labels
), loads the appropriate config3b. checks if issue has a
regression-from-*
label (reads fromrequired_issue_labels
)3c. checks the P-label of the regression, discard P-low and P-medium regressions
prioritize
command #456 (reads fromadd_labels
)TODOs
Situations not yet handled where this handler should trigger as well:
This work supersedes #1380 (Important: before merge this commit should be Co-authored1)
r?
Footnotes
Not doing now to avoid spamming the original author with multiple forced git push 🙂 ↩