open-standards/.github/workflows/repo-checks.yml
dcharlot f1258784d4
All checks were successful
joule-moq-web browser client / joule-moq-web · does this change touch it (push) Successful in 9s
wai cross-architecture byte-equality / does this change touch it (push) Successful in 14s
wai-app and Create / wai-app · does this change touch it (push) Successful in 27s
wai-audit collector and player integration / does this change touch it (push) Successful in 25s
WAI operation catalogue / does this change touch it (push) Successful in 14s
joule-code conformance gate / joule-moq-relay, its own energy on a counter (macos) (push) Successful in 33s
wai-fleet service / does this change touch it (push) Successful in 11s
wai-ops integer operators / does this change touch it (push) Successful in 9s
wai-key-proxy / does this change touch it (push) Successful in 11s
wai-ledger service / does this change touch it (push) Successful in 11s
wai-quantum command line / does this change touch it (push) Successful in 6s
wai-quantum docs, course and locales / does this change touch it (push) Successful in 5s
wai-quantum editors / does this change touch it (push) Successful in 8s
wai-quantum OpenQASM reader / does this change touch it (push) Successful in 6s
wai-quantum for JavaScript / does this change touch it (push) Successful in 9s
wai-quantum resource estimation / does this change touch it (push) Successful in 10s
wai-quantum pulse and dynamics / does this change touch it (push) Successful in 6s
wai-quantum other formats / does this change touch it (push) Successful in 10s
wai-quantum contract / does this change touch it (push) Successful in 12s
wai-quantum for Python / does this change touch it (push) Successful in 6s
wai-quantum extension points / does this change touch it (push) Successful in 7s
wai-quantum service / does this change touch it (push) Successful in 8s
wai-quantum error correction and mitigation / does this change touch it (push) Successful in 10s
wai-quantum studio and desktop / does this change touch it (push) Successful in 8s
wai-quantum verdicts and repairs / does this change touch it (push) Successful in 9s
wai-quantum variational and algorithm library / does this change touch it (push) Successful in 9s
wai-quantum views in agent hosts / does this change touch it (push) Successful in 6s
wai-sink-android native sink library / does this change touch it (push) Successful in 7s
wai-sink-swift native sink package / does this change touch it (push) Successful in 7s
wai-vector vector graphics / does this change touch it (push) Successful in 7s
WAI Studio / does this change touch it (push) Successful in 8s
wai cross-architecture byte-equality / macos-arm64 (reference) (push) Successful in 39s
wai-app and Create / wai-app · tests, clippy, the line language's verifier (linux) (push) Successful in 39s
wai cross-architecture byte-equality / linux-x86_64 (push) Successful in 48s
wai-audit collector and player integration / collector, player integration and the browser end to end · macos (push) Successful in 1m24s
wai-ops integer operators / independent checker (Python) (push) Successful in 15s
wai-ops integer operators / wasm32 under Node (push) Successful in 34s
wai-ops integer operators / wasm32-wasip2 (wasmtime) (push) Successful in 1m8s
wai-ops integer operators / linux-x86_64 (push) Successful in 1m13s
wai-quantum service / service energy · linux packages (push) Successful in 1m26s
wai-fleet service / service · macos (push) Successful in 1m18s
wai-audit collector and player integration / collector · linux (push) Successful in 1m31s
wai-ops integer operators / macos-arm64 (push) Successful in 49s
joule-code conformance gate / Build + round-trip C1-C4 vectors (push) Successful in 2m37s
wai-quantum docs, course and locales / the Studio's words in every locale · linux (push) Successful in 8s
wai-fleet service / service · linux (push) Successful in 2m5s
wai-quantum command line / command line · macos (push) Successful in 1m32s
wai-quantum editors / editors · macos (push) Successful in 59s
joule-code conformance gate / joule-moq-relay, every target (push) Successful in 3m35s
wai-ledger service / service · macos (push) Successful in 1m17s
wai-quantum OpenQASM reader / corpus under wasm32-wasip2 (wasmtime) (push) Successful in 43s
wai cross-architecture byte-equality / linux-aarch64 (push) Successful in 38s
wai-ledger service / service · linux (push) Successful in 1m56s
repository checks / lockfiles, advisories, tests in CI, workflow hygiene, spec and section references, public text (push) Successful in 2m19s
wai-quantum pulse and dynamics / the same bits · macos (push) Successful in 56s
wai-quantum docs, course and locales / the course and the command line's languages · linux (push) Successful in 2m18s
wai-quantum OpenQASM reader / reader and corpus · linux (push) Successful in 2m6s
wai-ops integer operators / linux-aarch64 (push) Successful in 1m20s
wai-quantum editors / editors · linux (push) Successful in 2m23s
wai-quantum contract / the policy is linked, and the deprecations page reads (push) Successful in 5s
wai-quantum pulse and dynamics / the same bits · linux-arm64 (push) Successful in 1m38s
wai-key-proxy / proxy · linux (push) Successful in 3m26s
wai-quantum command line / command line · linux (push) Successful in 3m26s
wai-quantum resource estimation / estimation and calibration · linux, release (push) Successful in 1m39s
WAI operation catalogue / the catalogue and every door · linux (push) Successful in 4m34s
wai-quantum for Python / python · macos (push) Successful in 2m8s
wai-quantum pulse and dynamics / reader, simulator and pulse jobs under wasm32-wasip2 (wasmtime) (push) Successful in 55s
wai-quantum extension points / the registry and the example · linux-arm64 (push) Successful in 2m28s
joule-code conformance gate / joule-moq-ingest, every target (push) Successful in 6m16s
wai-quantum for JavaScript / javascript · linux (push) Successful in 2m26s
wai-quantum variational and algorithm library / parameters, gradients, optimisers, VQE, QAOA and builders · linux-arm64, release (push) Successful in 2m34s
wai-quantum pulse and dynamics / reader, simulator and pulse jobs · linux, release (push) Successful in 1m35s
wai-sink-android native sink library / the JNI layer and the platform-free half on the host JVM · linux-arm64 (push) Successful in 2m14s
wai-quantum extension points / the registry under wasm32-wasip2 (wasmtime) (push) Successful in 51s
wai-vector vector graphics / linux-aarch64 (push) Successful in 2m25s
wai-quantum service / service · macos (push) Successful in 4m8s
wai-quantum studio and desktop / desktop app · macos (push) Successful in 3m26s
wai-app and Create / wai-app · Create, browser end-to-end (macos) (push) Successful in 7m38s
wai-quantum for Python / python · linux (push) Successful in 2m42s
wai-quantum extension points / the registry and the example · linux (push) Successful in 2m20s
wai-quantum other formats / readers, writers and the set · linux (push) Successful in 3m40s
wai-quantum contract / API compatibility · linux (push) Successful in 4m15s
wai-quantum other formats / the set under wasm32-wasip2 (wasmtime) (push) Successful in 3m38s
wai-vector vector graphics / macos-arm64 (push) Successful in 2m3s
wai-quantum studio and desktop / desktop app · windows (push) Successful in 9m6s
wai-quantum error correction and mitigation / codes, decoders, texts and mitigation · linux, release (push) Successful in 2m37s
wai-quantum variational and algorithm library / parameters, gradients, optimisers, VQE, QAOA and builders · linux, release (push) Successful in 1m28s
wai-sink-android native sink library / every ABI, the AAR, and the instrumented tests in a headless emulator · macos (push) Successful in 4m56s
wai-quantum verdicts and repairs / verdicts, repairs and the intent set · linux (push) Successful in 1m51s
wai-quantum contract / schemas and the committed tool lists · linux (push) Successful in 6m17s
wai-quantum verdicts and repairs / the intent set and the verdict under wasm32-wasip2 (wasmtime) (push) Successful in 2m19s
wai-quantum studio and desktop / studio · browser (push) Successful in 3m39s
wai-quantum service / service · linux (push) Successful in 5m1s
wai-vector vector graphics / wasm32-wasip2 (wasmtime) (push) Successful in 59s
wai-vector vector graphics / wasm32 under Node (push) Successful in 52s
wai-vector vector graphics / fuzz, peak allocation, comparison count (push) Successful in 20s
wai-vector vector graphics / linux-x86_64 (push) Successful in 2m17s
WAI Studio / the catalogue's actions, the unit tests and the core · linux (push) Successful in 1m0s
wai-quantum views in agent hosts / views · the page and its engine (push) Successful in 3m6s
wai-quantum studio and desktop / desktop app · linux (push) Successful in 4m52s
wai-quantum views in agent hosts / views · a scripted host (push) Successful in 3m22s
wai-vector vector graphics / independent checker (Python) (push) Successful in 3m10s
joule-moq-web browser client / joule-moq-web · browser end-to-end (macos) (push) Successful in 16m37s
wai-vector vector graphics / wasm32 in three browser engines (push) Successful in 5m45s
WAI Studio / Studio in Chromium and Firefox · macos (push) Successful in 10m21s
wai-quantum docs, course and locales / every command and snippet in the docs · linux (push) Successful in 17m42s
wai-sink-swift native sink package / libwai slices, desktop tests, simulator tests · macos (push) Successful in 16m3s
WAI Studio / Studio in WebKit · linux (push) Successful in 23m28s
Merge pull request 'Wave A: public-name check, WebAssembly determinism in CI, decode-path reporting, and pin by default' (#616) from wai/wave-a into main
2026-11-04 20:25:41 -05:00

155 lines
7.5 KiB
YAML

# Repository checks: the script checks every change runs, in one job.
#
# Each of these is a script that reads the tree for a few seconds. They were six
# workflows and nine jobs (lockfiles, tests-in-ci, workflow-hygiene, wai-section-refs,
# spec-refs and no-vanity-metrics' four), and each job paid for a container and a
# checkout to run them. On 2026-10-14 the light checks were about half of the 119 jobs
# waiting for the linux-arm64 runner, queued behind the long standards-build legs, and
# spec-refs held a place on the one x86_64 runner. One job runs them all now, one step
# a check: every step runs even after an earlier one fails (`!cancelled()`), so a red
# job names each failing check in its own step, and the job fails if any did.
#
# The two path filters the old workflows had (public text on Markdown and wai/ sources,
# section references on the WAI documents) are gone: the checks take seconds, and a
# filter that is wrong skips a check silently.
name: repository checks
on:
push:
branches: [main]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
checks:
name: lockfiles, advisories, tests in CI, workflow hygiene, spec and section references, public text
runs-on: linux-arm64
timeout-minutes: 30
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v5
with:
python-version: '3.11'
# check-lockfiles.sh runs `cargo` against every lockfile.
- name: Install Rust 1.99.1
shell: bash
run: |
export PATH="$HOME/.cargo/bin:$PATH"
command -v rustup >/dev/null 2>&1 || \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain 1.99.1
rustup toolchain install 1.99.1 --profile minimal
rustup default 1.99.1
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
# ── Every Cargo.lock is current ──────────────────────────────────────────
- name: "lockfiles: the check fails closed (self-test)"
if: ${{ !cancelled() }}
run: ./scripts/check-lockfiles-selftest.sh
- name: "lockfiles: every Cargo.lock is current"
if: ${{ !cancelled() }}
run: ./scripts/check-lockfiles.sh
# ── No workspace carries an advisory nobody has read ─────────────────────
# cargo-audit reads the lockfile and the advisory database; it builds
# nothing. The runner is persistent, so this installs once.
- name: Install cargo-audit
if: ${{ !cancelled() }}
shell: bash
run: command -v cargo-audit >/dev/null || cargo install cargo-audit --locked
- name: "advisories: the check fails closed (self-test)"
if: ${{ !cancelled() }}
run: ./scripts/check-advisories-selftest.sh
- name: "advisories: every advisory is fixed or allowed with a reason"
if: ${{ !cancelled() }}
run: python3 -I scripts/check-advisories.py
# ── Every test file is run by a job or listed with its reason ────────────
- name: "tests in CI: the check fails closed (self-test)"
if: ${{ !cancelled() }}
run: ./scripts/check-tests-in-ci-selftest.sh
- name: "tests in CI: every test file is run or listed, and none can run empty"
if: ${{ !cancelled() }}
run: python3 -I scripts/check-tests-in-ci.py
# ── Every workflow supersedes its own queue; the path gate fails open ───
- name: "workflow hygiene: the check fails closed (self-test)"
if: ${{ !cancelled() }}
run: ./scripts/check-workflow-concurrency-selftest.sh
- name: "workflow hygiene: every workflow is grouped per ref"
if: ${{ !cancelled() }}
run: ./scripts/check-workflow-concurrency.sh
- name: "workflow hygiene: the path gate fails open (self-test)"
if: ${{ !cancelled() }}
run: ./scripts/pr-touches-paths-selftest.sh
# ── One pinned wasmtime, run with both determinism settings ─────────────
- name: "workflow hygiene: the wasmtime pin check fails closed (self-test)"
if: ${{ !cancelled() }}
run: bash scripts/check-wasmtime-pin-selftest.sh
- name: "workflow hygiene: every wasmtime is the pinned release, run with both determinism settings"
if: ${{ !cancelled() }}
run: python3 -I scripts/check-wasmtime-pin.py
# ── Code cites no section its SPEC lacks; WAI's cited sections exist ────
- name: "spec references: the check can fail (self-test)"
if: ${{ !cancelled() }}
run: bash scripts/check-spec-refs-selftest.sh
- name: "spec references: every SPEC citation resolves"
if: ${{ !cancelled() }}
run: python3 scripts/check-spec-refs.py
- name: "section references: every section WAI's documents cite exists"
if: ${{ !cancelled() }}
run: python scripts/check-wai-section-refs.py
# ── Public text: no vanity metrics, no comparison, no company names ─────
- name: "public text: no vanity metrics in committed Markdown"
if: ${{ !cancelled() }}
run: bash scripts/check-no-vanity-metrics.sh
- name: "public text: the two public-text checks fail closed (self-test)"
if: ${{ !cancelled() }}
run: bash scripts/test-public-text-checks.sh
- name: "public text: WAI's public text names no comparison"
if: ${{ !cancelled() }}
run: bash scripts/check-comparative-prose.sh
# The maintainers' product names are public, held in the script itself: this run
# reads no secret, so it checks every change, a pull request included.
- name: "public text: WAI's public text names no product of its maintainers"
if: ${{ !cancelled() }}
run: bash scripts/check-public-names.sh --maintainer-products-only
# The pattern list is a secret, never given to pull-request code: the check runs
# on the push to main.
- name: "public text: WAI's public text names no company or product (push to main)"
if: ${{ !cancelled() && github.event_name != 'pull_request' }}
env:
WAI_NAME_DENYLIST: ${{ secrets.WAI_NAME_DENYLIST }}
run: |
if [ -z "$WAI_NAME_DENYLIST" ]; then
echo "::error::WAI_NAME_DENYLIST is not set: the public-name check cannot run"
exit 1
fi
bash scripts/check-public-names.sh
# ── No library source file is unreachable from its crate root ───────────
# An orphan `.rs` (one no `mod`, `#[path]` or `include!` names) is never compiled,
# so nothing else in this repository can see it. Both directions, before trusting
# the result: a planted orphan must fail the check, and removing it must pass.
- name: "orphan sources: the check fails closed (self-test)"
if: ${{ !cancelled() }}
run: |
set -euo pipefail
probe=jcp/jcp-rs/crates/jcp-efficiency/src/_ci_orphan_probe.rs
printf 'pub fn never_compiled() -> u64 { 0 }\n' > "$probe"
if python3 scripts/check-orphan-sources.py >/dev/null 2>&1; then
rm -f "$probe"
echo "::error::the orphan check passed with a planted orphan present"
exit 1
fi
rm -f "$probe"
- name: "orphan sources: no new orphan source files"
if: ${{ !cancelled() }}
run: python3 scripts/check-orphan-sources.py