-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Wait for PRs to be at least 24 hours old before merging #117
Comments
So, in summary:
(BTW, @CyberShadow you have a pending invitation to the dlang-bots team). |
Effectively synonymous with "Trivial" but not the same semantic meaning for reviewers. I say that we shouldn't implement this or add the label until it becomes clear that it's necessary, as anyone with push access can merge commits manually in urgent situations. Also, I don't think we should make it easy to merge PRs bypassing or in spite of broken CI. Restricting it to users with administrator access has been working OK for us (occasionally there even were situations where administrators abused their privileges to merge broken PRs which in turn broke master).
Thanks for the reminder, I've accepted it now. |
A couple of minor comments (currently on the go):
|
Nice. Playing devil's advocate for a bit - I fear that adding increasingly complex rules and regulations put more strain on all involved without solving the real underlying problem: we should improve the quality of reviews and number of solid reviewers. At Facebook quick good reviews followed by pulls do occur frequently. Complex code naturally takes longer. Putting a number on that just doesn't sound like the right way to go about it. Code reviews should not ask for overengineering the trivial. They should not hold code hostage on a matter of preference of the reviewer. The reviewers should exercise good judgment instead of rigidizing guidelines and precedents into ironclad rules. @WalterBright and myself found ourselves afraid to recommend things to do in code reviews lest things we said be taken out of context and used without proportion. (So please take it all with a grain of salt!) PRs that degrade quality of code are worse than PRs that introduce bugs because the latter are dustmite-able and easy to undo; the kind of slow degradation in quality that does not introduce bugs is much worse. I don't see many of the above getting improved by a 24-hour latency. |
@andralex At Facebook how often did you have submitters and reviewers in drastically different time zones? |
I don't understand what any of that has to do with this issue. |
Probably not often. |
FWIW at least from my feeling, this isn't really true. I don't think we revert many of the regression bugs that @CyberShadow finds. |
Mmm, don't think so, sorry. Missing a way to find a full list of PRs which included revert commits. |
I'm also on the side of leaving this to common sense, hardly had an issues with this except for the few occasions where Andrei merged huge disputable changes of his best friend Walter ;). |
Yep, but this idea is not about those cases. We have:
Right now for the last category anyone can do the review, but then they have to decide whether to merge it or leave it open in case someone else may want to look at it as well. This idea will remove the need to make that decision - anyone will be able to boldly add the "auto-merge" tag on PRs that look good overall, even if it's something that other people might have additional feedback on. |
Inspired by dlang/phobos#5529 (comment) and previous discussions.
To allow everyone from the D community to review PRs they are interested in, it's good to allow them to be open for at least 24 hours. This gives everyone from around the globe and any timezone a chance to have a look at it before it's merged.
PRs labeled as "trivial" could be exempted from this rule; if we find it necessary, a new "urgent" label could be added as well. However, manual merging once required CIs are green is still an option to all users with push access.
The text was updated successfully, but these errors were encountered: