Repository navigation
CI reuse: a neutral run no longer blocks a passing one, and workflow_call checks clear only at the exact commit (GST-3554) - #4713
Merged
Conversation
…ler run at another commit (GST-3554) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… clears only from a caller run at the exact commit (GST-3554) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Review-Finding: p1/red-team#1 reader=red-team Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…exact commit pregate recorded (GST-3554) Review-Finding: p1/outside-voice#1 reader=outside-voice 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>
|
😎 This pull request was merged. |
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
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.
A newer CI run that concluded
neutralno 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_vetoeson 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.What changed
Details
neutralrun is passed over like askippedone, both when a passing run is reused and when the CI wait picks the commit's result. A newer failed, cancelled, timed-out, startup-failed or unfinished run still blocks reuse.workflow_calltakes its caller's run only when that run was at the recorded commit, was not a pull request run (those test GitHub's merge commit, not your commit), and that commit's files match what was recorded. A run of the check's own workflow is checked as before.Why
Details
gbrain's merges were waiving the release check by hand because a pull request run that skipped all its jobs looked like a newer failure. That case is fixed on main already, so gbrain only needs to update gstack. This change closes the two remaining gaps the same report named.
Blast radius
Details
Run reuse, and clearing a
workflow_call-only check from its caller's run. A repo that cleared such a check from a pull request run of its caller now dispatches the caller at the commit instead. gstack's own checks don't use that path.Result
Docs are current, and no edits were made. docs/pregate.md (run-evidence veto and caller-run clear) and docs/troubleshooting.md (clear refusals) already match lib/run-evidence.ts, lib/ci-carry.ts and lib/pregate/index.ts. A search of the repo found no other docs describing the skipped-run veto or caller-run clearing that are stale. The banned-terms check returned no hits.
Debt
No documentation debt. The changelog fragment's staged rename and unstaged wording change are left for the parent to commit.
Agent notes
lib/run-evidence.ts(QUIET set in verifyRun's newer-run veto),lib/ci-carry.ts(waitForRun),lib/pregate/index.ts(clearDecision caller branch:head_mismatch,merge_tested,tree_mismatch).--run-urlclears still check no head or tree (pre-existing, documented); a pre-head pregate.json record can't clear through a caller run until pregate reruns; a base-only merge needs a pregate rerun before a caller clear;neutralis trusted as a no-job conclusion; ten newer neutral runs could fill findCarry's candidate cap;merge_testedfix line for a pull_request-only caller suggests a push that refuses again;merge_testedis stricter than verifyRun's merge-tree rule.Review-loop exception: accepted by Captain GStack Minder (GSTA-36) 2026-11-22 via approval a-9fd130a181b9: A test-data registry line added after review changes no runtime behaviour; one scoped read clears it. (fix-check at b14d9e1, 0 findings)
Plan: exempt: bug fix with failing-first tests (R4, R65)