Skip to content
Closed
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
17 changes: 17 additions & 0 deletions .github/workflows/status-guard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,23 @@ jobs:
- name: Verify every device call the book shows resolves
run: bash scripts/check-book-api-names.sh

# Every guard here is wired twice: a step in this file, and a line in the
# Justfile's `check-guards` recipe, which the Justfile calls a full local
# mirror of this workflow. Only CI enforces itself, so the Justfile line is
# the one that goes missing -- #1106 added check-book-catalog-stamp.sh here
# and not there, and nothing failed. This step compares the two lists.
guard-coverage:
name: guard coverage
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Clone repository
uses: actions/checkout@v4

# Reads the Justfile and this directory: no cargo, no build, no network.
- name: Verify every guard runs in CI and in `just check-guards`
run: bash scripts/check-guard-coverage.sh

# The dialect-nvvm book page prints the catalog SHA-256 and states its own
# freshness rule: if the stamp no longer matches, every count on the page
# predates the catalog being read. Nothing enforced that rule, so the page
Expand Down
2 changes: 2 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,11 @@ check-guards:
bash scripts/check-toolchain-parity.sh
bash scripts/check-cli-doc-coverage.sh
bash scripts/check-book-api-names.sh
bash scripts/check-book-catalog-stamp.sh
bash scripts/check-reserved-prefixes.sh
bash scripts/check-device-only-build.sh
bash scripts/check-test-matrix-coverage.sh
bash scripts/check-guard-coverage.sh
cargo deny --locked check
cargo deny --manifest-path crates/rustc-codegen-cuda/Cargo.toml --locked check
cargo deny --manifest-path crates/cuda-macros/tests/device-only/Cargo.toml --locked check
Expand Down
Loading