-
Notifications
You must be signed in to change notification settings - Fork 116
fix: treat fast-track
with not enough approvals as non-fatal
#676
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
Conversation
Can you update the tests? |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #676 +/- ##
==========================================
+ Coverage 83.41% 83.43% +0.02%
==========================================
Files 37 37
Lines 4136 4142 +6
==========================================
+ Hits 3450 3456 +6
Misses 686 686
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
12352af
to
3cc326a
Compare
Can we add a more precise error message when there's not enough approval, similar to what was done in node-core-utils/lib/pr_checker.js Lines 225 to 227 in 3cc326a
Something like |
Maybe we could have the CQ remove the https://github.com/nodejs/node/labels/fast-track label on PRs that have been opened for more than 48h, so we can make statistics on how many PRs were actually fast-tracked (but AFAIK no one is doing any statistics, so it wouldn't be a big deal if we would simply ignore it). |
Why not, if it's not too difficult. I'd go even further with this fix and not warn at all. After 48 hours, the fast-track request isn't relevant anymore. |
The combination of warning for fast-track and error for time was for the same thing. Does updated message look better?
AFAICT it's not relevant for PRs with 2 or more approvals, but still might make sense for 7 days if there's only one? I think, ideally CQ should "wait" for fast-tracked PRs to have enough approves rather than exiting with error. |
That's not really practical, as the CQ can't discriminate with a simple request a ready fast-tracked PR from one who lacks approvals. So if we don't remove the
No, as fast-tracked PR needs at least two approving reviews to land – and once it has two, it doesn't need to be fast-tracked anymore. (Refs: https://github.com/nodejs/node/blob/6831e2fb8814b3c1d7430471fc08dcb8543d4509/doc/contributing/collaborator-guide.md#L194-L196) |
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 think we need to fix the grammar here, even if it makes the code uglier.
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.
Could we add a test where there is only one approving review, and the fast-track request has only one or 0 👍? Non-blocking question, this PR can also land without it.
If a PR has
fast-track
with not enough approvals, instead of exiting with error we can proceed to see if it meets regular time requirements.This also makes error more informative, showing these requirements.