Repository navigation
A skipped CI run no longer blocks reusing a passing run on the same commit (GST-3514) - #4695
Merged
Merged
Conversation
…ommit (GST-3514) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
gstack-ci-carry wait and ship-release accept picked the newest run on the head, so a same-second pull_request run with every job skipped read as red even though verifyRun now accepts the green dispatch beside it. The wait now takes the newest run that was not skipped; a lone skipped run is still red. Review-Finding: p1/specialist-batched#1 reader=red-team Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
capy-ai Bot
added a commit
that referenced
this pull request
Nov 22, 2026
…call checks clear only at the exact commit (GST-3554) (#4713) A newer CI run that concluded `neutral` no longer blocks reusing a passing run on the same commit, and a check that only runs inside another workflow (`workflow_call`) now clears only from a run that tested your exact commit. Why: gbrain kept hitting `newer_run_vetoes` on passing runs (#9827, #10058, #10021), and a calling workflow's green run from any commit could clear such a check. Nothing to do: gbrain's skipped-run case was already fixed on main by #4695; this adds `neutral`, the exact-commit rule and regression tests built from gbrain's real runs. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/red-team#1 reader=red-team Review-Finding: p1/outside-voice#1 reader=outside-voice
Merged
3 tasks done
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
When one commit gets two runs of the same workflow and the newer one skipped every job, the passing run can now be reused, and the CI wait no longer reports that commit red.
gbrain hit this when a pull request run that skipped all its jobs, created in the same second as a passing manual run, blocked that passing run.
Nothing to do: a newer failed, cancelled or still-running run still blocks reuse exactly as before.
What changed
verifyRun(lib/run-evidence.ts) now ignores a newer run whose conclusion isskipped, just as it already ignored a newer green run. A skipped run ran no job, so it says nothing about the commit's tree.waitForRun(lib/ci-carry.ts), whichgstack-ci-carry waitandgstack-ship-release acceptuse, now passes over a newer skipped run and waits on the run before it. When every run on the commit was skipped, it still reports red, as before.Why
A run that never ran a job isn't evidence against the tree, but it was treated like a failure. A newer red or running run of any event still blocks reuse, including the documented case where a red pull request run blocks reusing a manual run (docs/pregate.md, the CI tree reuse section).
Blast radius
Only the CI reuse check and the CI wait read the change. Both still refuse a commit whose newer run failed, was cancelled or is still running, so a red run can't be reused.
Pre-Landing Review
One review pass on the whole change: a combined specialist reader (testing, security, state machines, red team) and a second adversarial reader. The specialist reader found that the CI wait still read a newer skipped run as red, so
acceptwould have stopped in the same case this PR fixes. That is fixed with a test that failed first, and a second read of just the fix found nothing. The adversarial reader found nothing blocking; its three notes are below.Review notes
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
lib/ci-carry.ts:179When every run on the head is skipped, waitForRun still returns red with an empty failing list (pre-existing; the fallback keeps it).docs/pregate.md:907The docs and changelog describe only verifyRun's veto; the wait now passes over a skipped newest run to an older run, which they don't mention.lib/ci-carry.ts:78findCarry cuts HEAD's runs to CANDIDATES before skipped runs are dropped, so a burst of skipped runs could push the green run out of the window (pre-existing).Documentation
Scope: base
0b4f0ceeeto head0fbc61d89on branchci-reuse-skipped-run-no-veto(3 commits, 6 files), with no staged, unstaged or untracked changes. I ran Steps 1, 1.5, 2–4 and 6. The banned-terms check returnednonebecause main keeps no list.Result: the docs are current and I made no edits. The branch stops a newer skipped run from triggering
newer_run_vetoesinlib/run-evidence.ts, andwaitForRuninlib/ci-carry.tsnow passes over completed skipped runs when it picks the newest run.docs/pregate.md§run evidence (~l.907) already says newer skipped runs don't veto, which matches the code.newer_runtext at l.1752 belongs to the flaky-exception check inlib/pregate/flaky-exception.ts, which the branch doesn't touch, so it isn't stale.docs/TESTING_INTERNALS.mddescribes a different mechanism and isn't affected.Debt: none found.
Tests
newer_run_vetoesbefore the fix.Agent notes
Refs GST-3514. Reported from GBRA-742 (gbrain run 44996312498 vetoed by skipped run 44996312697). The second clause of the issue, about a run whose event the profile doesn't accept never blocking reuse, was dropped by GStack Minder's ruling, because it would undo the documented red pull_request veto in scripts/ci-tree-reuse.ts.
Approvals
No approvals recorded for branch ci-reuse-skipped-run-no-veto.
Plan: exempt: bug fix with a failing-first test (GST-3514)
Plan check: exempt bug fix
REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=3 fixed=1 scope=frozen ledgers_read=4 fix_checks=1 dispatches=1