Skip to content

build(just): check-guards runs the naming guard too, and says it does not - #957

Merged
nihalpasham merged 2 commits into
NVIDIA:mainfrom
vyncint:build/just-check-names-naming-guard
Aug 17, 2026
Merged

nihalpasham merged 2 commits into
NVIDIA:mainfrom
vyncint:build/just-check-names-naming-guard

Conversation

@vyncint

@vyncint vyncint commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

The drift

check-guards has run scripts/check-reserved-prefixes.sh since #835, but both descriptions of its scope name only two workflows:

# Run the status-guard and cargo-deny CI jobs (needs cargo-deny, python3)
# `check-guards` covers the status-guard and cargo-deny workflows in full

That script is naming-guard.yml's reserved-symbols-guard job, not a status-guard one.

The recipe is correct; the description undersells it, which is the direction that costs a round trip — a contributor touching a cuda_oxide_* literal reads this, concludes the reserved-prefix guard is CI-only, and finds out after pushing.

After

The mapping now checks out job for job:

workflow jobs mirrored by
status-guard.yml 7 7 scripts
naming-guard.yml 1 check-reserved-prefixes.sh
cargo-deny.yml 4 2 cargo deny runs + 2 scripts

= the eleven scripts and two cargo deny invocations check-guards runs.

Comment-only; just --list and just -n check-guards are unchanged apart from the wording. No GPU.

vyncint and others added 2 commits August 17, 2026 06:27
… not

`check-guards` has run `scripts/check-reserved-prefixes.sh` since NVIDIA#835, but
both places that describe its scope name only two workflows:

  # Run the status-guard and cargo-deny CI jobs (needs cargo-deny, python3)
  # `check-guards` covers the status-guard and cargo-deny workflows in full

That script is naming-guard.yml's `reserved-symbols-guard` job, not a
status-guard one. The recipe is correct; the description undersells it, which is
the direction that costs someone a redundant CI round trip -- a contributor
touching a `cuda_oxide_*` literal reads this, concludes the reserved-prefix
guard is CI-only, and finds out after pushing.

Names all three workflows in both places. The mapping now checks out job for
job: status-guard's seven, naming-guard's one, and cargo-deny's four are the
eleven scripts plus two `cargo deny` invocations this recipe runs.

Comment-only; `just --list` and `just -n check-guards` are unchanged apart from
the wording.

Signed-off-by: Vyncint Ng <[email protected]>
The paragraph above the recipe still described coverage as status-guard
plus "all three cargo-deny jobs": it listed five of status-guard's
seven jobs (book-api-names and device-only-build were missing), the
cargo-deny workflow has four jobs (the SPDX source-headers job was
missing), and the naming-guard's reserved-prefix search went unnamed,
which is the same undersell this PR exists to remove. Also widen "either
workflow" to all three and rewrap the over-long merged line in the
check header comment.
@nihalpasham nihalpasham added documentation Improvements or additions to documentation build-related Build scripts, toolchain discovery, or compilation setup labels Aug 17, 2026
@nihalpasham

Copy link
Copy Markdown
Collaborator

Verified the recipe against the workflows - it really does mirror all three, job for job.

Layered one commit, because there was a third stale description:

  • the detail paragraph above the recipe still said "all three cargo-deny jobs" (there are four) and listed 5 of status-guard's 7 jobs, with no mention of the naming guard,
  • repaired it against the real job lists and rewrapped the one over-long line,
  • just -n check-guards confirms the recipe itself is untouched.

Merging.

@nihalpasham
nihalpasham merged commit ba4f454 into NVIDIA:main Aug 17, 2026
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build-related Build scripts, toolchain discovery, or compilation setup documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants