Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,28 @@ env:
# recompiling the vendored copy (matches the documented local build).
OPENSSL_NO_VENDOR: '1'
jobs:
gate:
name: CI/gate
runs-on: ubuntu-24.04
timeout-minutes: 5
permissions: {}
needs: [rust, dispatch-contracts, gsbot]
if: always()
steps:
- name: Require every CI job to succeed
env:
NEEDS_JSON: ${{ toJSON(needs) }}
run: |
set -euo pipefail
for job in rust dispatch-contracts gsbot; do
result=$(jq -r --arg job "$job" '.[$job].result // "missing"' <<< "$NEEDS_JSON")
if [[ "$result" != success ]]; then
echo "::error::$job did not succeed (result: $result)"
exit 1
fi
done
echo 'CI/gate passed: Rust matrix, dispatch contracts and GSBot succeeded.'

rust:
name: build · test · clippy (${{ matrix.module }})
runs-on: ubuntu-latest
Expand Down
15 changes: 15 additions & 0 deletions docs/REQUIRED-CI-GATE.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// SPDX-License-Identifier: CC-BY-SA-4.0
= Required CI gate

The Branch-Floor ruleset requires the exact check name `CI/gate`. The gate
in `rust.yml` waits for its Rust build/test/Clippy/format matrix, dispatch
contracts and GSBot build/test/dependency-audit job. All three dependency
results must be success; GitHub aggregates all Rust matrix legs into the
Rust dependency result. Failed, skipped, cancelled, missing or unexpected
results fail the gate. The gate itself requires no token permissions.

This is the primary CI aggregate, not a replacement for the separate source
attestation, E2E, governance, security or reviewer checks. It does not assert
a coverage percentage. GitHub's native coverage threshold rule requires
Code Quality and uploaded coverage data; those prerequisites need their own
evidence. No branch rule or coverage threshold is changed by this gate.
Loading