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
contrib: Request author review during backports #16484
contrib: Request author review during backports #16484
Conversation
When submitting backports, request the original author's review. Suggested-by: Paul Chaignon <paul@cilium.io> Signed-off-by: Joe Stringer <joe@cilium.io>
(Note, I tried the command manually myself against some backport files I had lying around, but I have not tried out the full script after integrating the command into the script). |
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.
Changes look good but I think certain guardrails need to be done, I think there's a limit in the number of reviewers a PR can have. Or am I mixing it up with assignees?
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.
Thanks for taking things of my TODO list! 😄
(Note, I tried the command manually myself against some backport files I had lying around, but I have not tried out the full script after integrating the command into the script).
Did you check what happens when an external contributor's review is requested? It shouldn't be possible to do that (at least not in the WebUI), but I'm guessing we'd rather the CLI ignores that reviewer or warns rather than failing hard.
If we think this could work, we can try it, but I also don't mind dropping this if we don't think it will work.
I haven't seen a lot of backport PRs with >10 reviewers. It can happen for the first few batches after a minor release is made though. I think it's worth trying.
Nope, I have not tested the end-to-end of this at all. I just checked the format of the input args, and ran the commands against the generated summary file to assemble the list of reviewers in a format that looks right. We could either convince one of the upcoming backporters to try out these changes during their next round, or we could merge & iterate from the tree (or revert if it's completely broken for some unintended reason). |
👍 to merge. |
Marking ready to merge. |
Looks like there is a drawback to this:
Immediate workaround I used was just to remove the Would be nice if there was a way to ignore these errors... haven't looked into this yet. |
I couldn't find a simple workaround either. I'm a bit worried folks will forget to update labels (the last step in the script) when they hit this. Maybe we should warn instead of failing when we hit this? |
@pchaigno The error comes from GitHub (HTTP 422), so I don't think we have control over this. Best ideas I have right now are either:
|
Yep, but it still creates the PR before erroring out. So we could issue a warning when |
Ah okay, I did not realize the PR still gets created. Sounds reasonable enough 👍 |
Something like this perhaps?
Untested; not sure whether |
When submitting backports, request the original author's review.
Suggested-by: Paul Chaignon paul@cilium.io