Repository navigation
fix(pr-merge): require a pr-verify pass before a lane pull request merges natively #9450
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
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
0c6e337
fix(pr-merge): require a pr-verify pass before a lane pull request me…
kyle-sexton b327760
chore(pr-merge): add changelog fragments for the native-merge verdict…
kyle-sexton 09c0c85
test(pr-merge): run the step's own jq filter and tie verdictHold's wo…
kyle-sexton e6cbfb3
Merge remote-tracking branch 'origin/main' into fix/native-merge-requ…
kyle-sexton 91e9eb4
test(pr-merge): pin enable-auto-merge's actions read and verdict read…
kyle-sexton ca7ab6e
fix(pr-merge): read the full verdict reader only on the scheduled run
kyle-sexton 818577c
Merge branch 'main' into fix/native-merge-requires-verdict
kyle-sexton 330060d
Merge remote-tracking branch 'origin/fix/native-merge-requires-verdic…
kyle-sexton b74356c
fix(pr-merge): end the verdict lookup only at a pass pr-verify uploaded
kyle-sexton 6948bfc
fix(pr-merge): arm only on the gate's reader, and disarm on each push
kyle-sexton f69d8b0
test(source-control): classify the evidence CLI as a read-only entry …
kyle-sexton f4c1dfd
Merge remote-tracking branch 'origin/main' into fix/native-merge-requ…
kyle-sexton 85eb917
fix(pr-merge): judge the reader's pass as the gate does, and fit its …
kyle-sexton 5bdd428
Merge remote-tracking branch 'origin/main' into fix/native-merge-requ…
kyle-sexton 60979e8
fix(pr-merge): warn on a failed push disarm, and pin the run-id early…
kyle-sexton 7400f94
Merge remote-tracking branch 'origin/main' into fix/native-merge-requ…
kyle-sexton ee104a6
fix(pr-merge): mark the push disarm mutation gh-read-exempt
kyle-sexton File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
.changes/pr-pipeline/fix-native-merge-requires-verdict-7c41e2a9.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| bump: patch | ||
| --- | ||
|
|
||
| ### Fixed | ||
|
|
||
| - Native auto-merge of a lanes App pull request now needs the verifier verdict pr-merge's gate needs. `enable-auto-merge.mjs` arms, and keeps armed, only when pr-merge's gate reader refuses nothing at the head it read (a pr-verify pass, no FAIL at the head, FAILs under `merge.max-verify-fails`, an unchanged trusted spec), and only on its scheduled or hand-started run; event runs never arm. `ci-status` turns an armed lanes App pull request's auto-merge off on each push to its head. In the merge queue, `ci-status` requires a pass or pass-notes artifact at the queued head from a successful pr-verify run on main; a trusted approval of the head lifts it. Pull request events read no verdict, since pr-verify runs only after a green pull request run. |
7 changes: 7 additions & 0 deletions
7
.changes/source-control/fix-native-merge-requires-verdict-3d9b06f1.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| bump: patch | ||
| --- | ||
|
|
||
| ### Added | ||
|
|
||
| - `babysit_verify_evidence.py evidence --repo R [--max-fails N] <pr> <head>` prints the gate's verifier evidence for one pull request as one JSON line, which the pr-merge lane's native auto-merge arms on. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.