Skip to content

Commit d3bd6eb

Browse files
HoTT-stuffclaude
andcommitted
fix(ci): add the gate job the main ruleset requires as CI/gate
The Branch-Floor ruleset on main requires the status check CI/gate (since 2026-11-16), but no CI job was named gate, so the check never reported and no PR into main could merge. The new gate job needs every CI job and fails unless each one succeeded or was skipped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0136P7Zo5h4xmXVEeSeQEDvw
1 parent d98edf6 commit d3bd6eb

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,3 +415,26 @@ jobs:
415415
( cd tools/vendor/tree-sitter-rescript \
416416
&& tree-sitter parse --quiet "${fixture_abs}" > /dev/null )
417417
echo "smoke-parsed: ${fixtures[0]}"
418+
419+
# Single required check. The `Branch-Floor` ruleset on main requires the
420+
# status `CI/gate`; it passes only when every job above succeeded (a skipped
421+
# job counts as passing, a failed or cancelled one does not). Add any new CI
422+
# job to `needs:` here, or the ruleset will not wait for it.
423+
gate:
424+
name: gate
425+
if: always()
426+
needs: [build, lint, bench-visibility, coverage-visibility, vscode-smoke, migration-assistant]
427+
runs-on: ubuntu-latest
428+
timeout-minutes: 5
429+
steps:
430+
- name: All CI jobs passed
431+
env:
432+
RESULTS: ${{ join(needs.*.result, ' ') }}
433+
run: |
434+
echo "CI job results: $RESULTS"
435+
for r in $RESULTS; do
436+
case "$r" in
437+
success|skipped) ;;
438+
*) echo "::error::a required CI job ended as '$r'"; exit 1 ;;
439+
esac
440+
done

‎CHANGELOG.adoc‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ governance check 4 (`tools/ci/check-actions-lock.sh`) fails on any drift
168168
`bisect_ppx` needs OCaml < 5.0. `tools/ci/setup-ocaml.sh` uses the runner
169169
OCaml only when it is 4.14.x and otherwise builds a pinned
170170
`ocaml-base-compiler.4.14.2`
171+
* fix(ci): no PR could merge into main after the `Branch-Floor` ruleset
172+
started requiring the status `CI/gate` (16 Nov), because no CI job was
173+
named `gate`. A `gate` job now needs every CI job and passes only when
174+
all of them succeed
171175
* ci(migration-assistant): fix smoke-parse for tree-sitter-cli 0.25
172176
(#342)
173177
* ci: bump github/codeql-action from 4.32.6 to 4.36.0 (#323)

0 commit comments

Comments
 (0)