Skip to content

verify names the job that stopped the run, in full, and not the jobs it stopped - #2763

Merged
davidmckayv merged 1 commit into
mainfrom
ci/verify-names-stopping-job
Dec 2, 2026
Merged

davidmckayv merged 1 commit into
mainfrom
ci/verify-names-stopping-job

Conversation

@davidmckayv

Copy link
Copy Markdown
Contributor

What this changes

A pull request's run stops at its first failure (.github/actions/stop-on-failure), and GitHub records the job that stopped it as cancelled, like every job it stopped. On #2706 a lint failure stopped the run three times, and it read as cancelled from outside. verify said Failed: format, lint, types, tests: it split the job's name at its commas, and listed tests, which failed only because its shards were cancelled.

verify now prints one line per job, with the step that failed, on its own job and at the top of the run's summary:

  • Stopped the run: format, lint, types failed at "Run bun run lint". Its log shows why; the jobs it stopped are marked cancelled. The job that stopped the run is the first cancelled job with a failed step.
  • Also failed: … for any other job that failed before the stop.
  • Left out: jobs that started after the stop (only always() jobs start on a cancelled run), and tests when a shard did not pass.
  • A run that went to the end lists Failed: <job> failed at "<step>". for each failed job, first failure first.
  • A run cancelled with no failed job says No job failed: the run was cancelled from outside it, by a newer push, the merge queue or a person.

The rule is a jq program in verify's env (NAME_FAILURES), so verify still needs no checkout.

Where it runs

CI only. Nothing in the product changes.

  • New state that outlives a request? None.
  • What happens on the second replica? Not applicable.
  • Anything serialised? None.
  • Anything fanned out to a browser? None.
  • New listener, port, or schedule? None.

Boundary and audit

  • Every acting call still goes through the gateway: resolve, decide, audit, then act.
  • New refusals and new failures each write a row.
  • Nothing new is trusted from the client that the server can resolve itself.

API and database

  • This changes nothing under api/, no app's requests, no database change and no release-policy.json.

Changelog

None.

Proof

  • scripts/verify-failures.test.ts runs verify's own step, as ci.yml writes it, on the job lists GitHub returned for four real runs. gh answers from the fixture.
  • It also covers a passing run and a jobs read that fails.
  • It fails on main's verify (4 of 7 red) and passes here.
  • stop-on-failure.test.ts, ci-changes.test.ts, test-floor.test.ts and ci-runners.test.ts pass.
  • actionlint (with shellcheck) and zizmor are clean on ci.yml. Local actionlint 1.7.12 doesn't know the existing $/ local-action refs, which are unchanged here.

…it stopped

A pull request's run stops at its first failure, and GitHub records the job that stopped it as
cancelled, like every job it stopped. On #2706 a lint failure stopped the run three times and it
read as cancelled from outside: verify split "format, lint, types" at its commas and listed `tests`,
which failed only because its shards were cancelled.

verify now prints one line per job, with the step that failed: "Stopped the run: format, lint,
types failed at "Run bun run lint"", then any other job that failed before the stop. Jobs that
started after the stop, and `tests` when a shard did not pass, are left out. A run cancelled with no
failed job says so. The lines go on verify's job and at the top of the run's summary.

Tested by running verify's own step on the job lists GitHub returned for four real runs.
@davidmckayv
davidmckayv added this pull request to the merge queue Dec 2, 2026
Merged via the queue into main with commit 2243c7b Dec 2, 2026
37 checks passed
@davidmckayv
davidmckayv deleted the ci/verify-names-stopping-job branch December 2, 2026 04:08
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.

2 participants