-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
doc: improve the process for landing a PR #54564
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
doc: improve the process for landing a PR #54564
Conversation
|
Review requested:
|
8ee6287 to
63c5b97
Compare
aduh95
left a comment
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.
I’m not sure it’s worth adding this, more often than not the CQ label is added to the PR hours before it actually lands because of our wait time requirements, and checking the commits at the time won’t tell you more info than the CI already does. We already have a requirement for CI to not be older than 2 weeks, that’s the requirement we should amend if anything – and IMO we don’t need to change anything, it’s not like broken CI on main is a recurring thing
Co-authored-by: Antoine du Hamel <[email protected]>
|
I agree there is probably no need to take action since its very rare |
|
Thanks for reviewing, I agree with you. Since this is rarely going to happen and the recovery is not costly (either revert or fast track a fix), I think it is probably not worthing the extra burden to do the check. |
|
Instead, I think we should look into using GitHub's commit queue system (which I think can ensure that tests pass after applying the commits in order). |
Co-authored-by: Tobias Nießen <[email protected]>
That's not a bad suggestion! We could exclude subsystems e.g. doc, meta etc. to make things slightly faster. |
Or run tests as part of our own CQ system. I don't think this can reasonably work on GHA runners, we'd need to use a runner that can cache build results so most build take instants instead of about one hour currently, plus another hour for running the tests. |
Co-authored-by: Aviv Keller <[email protected]>
That was the original design idea for the commit queue, many years ago. The main problem is how slow and flaky our CI has been. |
| landing. If you are unsure exactly how to format the commit messages, use | ||
| the commit log as a reference. See [this commit][commit-example] as an | ||
| example. | ||
| 6. Ideally, check the recent commits on `main` to evaluate any potential |
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.
| 6. Ideally, check the recent commits on `main` to evaluate any potential | |
| 6. Ideally, check the recent commits on the base branch to evaluate any potential |
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.
main and the base branch in this context are synonym to me, I will treat this as a nit if that's ok
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.
Sure! FWIW the base branch refers to whatever branch the PR is targeting, so I think it makes more sense, as the PR could also be targeting vX.x-staging, etc.
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.
I don't think this is feasible. It's already hard to land something as is.
A full CI run would be rough, but a quick test run (on windows, macOS, Linux) hopefully would be sufficient. |
|
@jakecastelli do you still want to pursue this? There seems to be quite a few concerns with this PR:
Note that this PR is technically ready to land if you decide to ignore those concerns (there's at least one approving review, and no one is blocking it), so it's up to you. |
|
Thanks for summarising the concerns and feedback @aduh95, I have decided not to proceed with landing, I left it open for a bit just to see if there were other folks thoughts or feedback. I think I am in a position to close it as:
Appreciated all the reviews and feedback 🙏 |
Even though incident could still happen like #54554 (which was partially my fault and I learned the lesson), I wanted to share my thoughts and hope to reduce the potential breakage in the future. As I noticed the other PR in
netlanded and I should've taken a closer look, or even just re-trigger theCIwhen in doubt, both approaches would help me to catch the test failure earlier.Wording is not my expertise, happy for any suggestions 👍 or even just any thoughts on this potentially ongoing issue.