Description
Problem
There are guidelines regarding waiting time in PRs:
node/doc/contributing/pull-requests.md
Lines 421 to 432 in c1ccade
node/doc/contributing/collaborator-guide.md
Lines 179 to 181 in c1ccade
node/doc/contributing/pull-requests.md
Lines 344 to 352 in c1ccade
However, the time is always calculated since PR creation and not since last pushed commits (even for significant changes and/or force-pushes).
This effectively creates a situation where a single collaborator approval (and a single green CI for needs-ci
Somewhat related: nodejs/node-core-utils#677
Possible solutions
- Make it strict, always counting the 48/168 hours from last push rather than initial open date.
- Make it semi-strict, e.g. counting ~24 hours from last push if PR passes open date limit.
- Make doc-only addition to guideline, asking to wait ~24 hours if anything non-trivial was pushed.
- Keep it as is and rely on common sense.
Doc-only option looks best to me since it won't slow down landing trivial fixups, but it's also always possible to fast-track them or land manually. Maybe there are different opinions on this.
Just to clarify, this issue is not a security concern nor a loophole for potential bad actors etc. The minimum waiting time is supposed to allow anyone to provide their input (including suggestions and explicit blocks), and not having it for subsequent commits sometimes nullifies this ability.