Repository navigation
Check the resolved head after a required base refresh #1940
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -62,6 +62,8 @@ Before the check and draft push for primary review, rebase your own commits onto | |
| Leave base merges out of a branch awaiting its delta. | ||
| For base or check-script changes after review, follow the | ||
| [Review budget](../../CONTRACT.md#review-budget). | ||
| If a reviewed branch needs a conflict refresh, confirm the review path and | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion: "conflict refresh" and "review path" are undefined; the "leave eligible heads alone" part of the acceptance is only implied The contract uses "base merges containing a conflict" and "modified merges" (CONTRACT.md:204-211). It never says "conflict refresh", and "confirm the review path" does not point the reader to the rule it means. That rule is: one more delta after an approved ordinary delta, or new review coverage after a modified merge. The acceptance criterion "Leave eligible reviewed heads alone" is also only implied by the "if … needs" condition. Consider using the contract's terms and adding a short clause such as "(per Review budget); otherwise leave an eligible reviewed head unchanged." This would also let you drop the separate Review-budget link on lines 63-64. |
||
| merge the base before starting the check for the resolved head. | ||
| Preserve the primary for the delta and the delta for post-review fixes. | ||
|
|
||
| Never bypass the sandbox, change the check list or enable `[checks].network` to pass checks. | ||
|
|
||
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.
suggestion: New conflict-refresh rule is not reconciled with "Leave base merges out of a branch awaiting its delta"
Line 62 says to leave base merges out of a branch awaiting its delta. The new sentence on lines 65-66 says a "reviewed branch" with a conflict should merge the base. A branch that has its primary review and is waiting for its delta is a reviewed branch. When that branch conflicts, the two lines give opposite instructions, and the reader has to guess that the conditional sentence overrides line 62. That kind of guessing is how a check gets scheduled on a head that is replaced afterwards, which is the problem in #1938. Smallest fix: make the exception explicit, for example "Leave base merges out of a branch awaiting its delta unless it needs a conflict refresh; then confirm…". Or put the new sentence directly after line 62 and start it with "Exception:".