Skip to content

chore: read the merge queue's Linux check instead of re-running the tests at a cut - #1986

Draft
REPPL wants to merge 2 commits into
mainfrom
lab8-verify
Draft

REPPL wants to merge 2 commits into
mainfrom
lab8-verify

Conversation

@REPPL

@REPPL REPPL commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator
  • chore: read the merge queue's Linux check instead of re-running the tests at a cut
  • fix: bind the release gate's check run to a job of the queue's run

Resolves: iss-2612031238180751
Assisted-by: abcd:dev
Assisted-by: Claude:claude-opus-5-5

REPPL added 2 commits December 3, 2026 13:23
…ests at a cut

release.yml's verify job re-ran build, vet, the plain and race passes and
smoke on a commit the merge queue had already tested: 55 to 85 Linux
minutes a release attempt, and every verify failure in the last month was a
flaky test on a tree the queue had passed (lab 8, R2).

verify now opens with one GraphQL read, under the job token's checks: read
and actions: read, and admits the released commit only when a check run
named check (ubuntu-latest) completed with success in its latest attempt,
made by GitHub Actions, in a check suite of this repository at that commit,
owned by a merge_group run of .github/workflows/ci.yml. Anything else
refuses before checkout, a commit that never went through the queue
included. The rest of verify is the release-specific gates, its ceiling
drops from 125 to 20 minutes, and the macOS suite and its gate are
unchanged. auto-release's caller job grants the two read scopes, since a
called job cannot ask for more than its caller holds.

The workflow is rendered from the scaffold template's abcd profile; every
managed-repository profile renders byte-identical to before. The runbook,
the lockstep floor and the launch page follow.

Resolves: iss-2612031238180751
Assisted-by: Claude:claude-opus-5-5
The gate admitted a check (ubuntu-latest) success found in the merge_group
suite of ci.yml without tying it to a job of that run. Any token holding
checks: write, which a workflow pushed on a branch can grant itself, can
create a check run of that name and outcome on the commit, and GitHub may
file it in that suite.

The gate now also reads that run's latest jobs, inside the actions: read it
already holds, and admits only when a job named check (ubuntu-latest), on
the released commit and in that run, completed with success and is the
admitted check run itself: its id and its check-run address match. A read
that fails refuses. The comment that leaned on no workflow granting
checks: write now says what the gate relies on, and the runbook names that
smoke on the released commit rests on the ruleset's required checks and
that a commit with more than 100 suites is refused.

Resolves: iss-2612031238180751
Assisted-by: Claude:claude-opus-5-5

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant