Skip to content

ci: fail CI Gate on cancelled jobs nested in build-project (#1793) - #1893

Merged
zackees merged 2 commits into
masterfrom
fix/1793-gate-cancelled
Oct 23, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/1793-gate-cancelled

Conversation

@zackees

@zackees zackees commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Fixes #1793.

needs.*.result only sees CI Gate's direct needs. In run 39677084695, both macOS jobs inside the reusable build-project call were never acquired by a hosted runner and ended cancelled. The call still reported success, so the gate passed.

CI Gate now also runs ci/gate_jobs.py on every event. The script lists every job of the current run attempt through the API (the gate already has actions: read). It fails on any finished job that concluded failure, cancelled, timed_out, startup_failure or action_required. Scope skips still pass. ci-pre's sweep, the end-of-queue Cache Janitor and the gate itself are exempt, matching ci/test_merge_queue.py. The checkout and uv steps now run on every event, not only merge_group.

  • RED f0cdbf8: ci/test_gate_jobs.py against a stub, with run 39677084695's jobs as an inline fixture: 3 of 6 tests fail.
  • GREEN: all 29 gate, merge-queue, queue-report and ci-pre tests pass, and ./lint is clean.
  • Live replay: against run 39677084695 the script exits 1 and names both macOS jobs. Against the 4 latest successful ci.yml runs it exits 0.

Focused CI fix: local RED evidence, pushed together per coordination.md §4.

@zackees
zackees added this pull request to the merge queue Oct 23, 2026
Merged via the queue into master with commit 362a6cf Oct 23, 2026
30 checks passed
@zackees
zackees deleted the fix/1793-gate-cancelled branch October 26, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

bug: CI: required gate passes despite selected runner-acquisition failures

1 participant