Skip to content

docs(contributing): point contributors at just check - #837

Merged
nihalpasham merged 2 commits into
NVIDIA:mainfrom
vyncint:docs/contributing-just-check
Aug 12, 2026
Merged

nihalpasham merged 2 commits into
NVIDIA:mainfrom
vyncint:docs/contributing-just-check

Conversation

@vyncint

@vyncint vyncint commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

CONTRIBUTING never mentions just — zero occurrences. So the one-command
gate that #729 and #788 exist to provide is invisible to exactly the person it
was built for.

Worse, the Formatting and Style section lists the individual commands and says of
clippy that "there is no single command covering them". That is true of that
one scope, but a reader comes away thinking hand-assembly is the only route, and
quietly skips the guards, the unit tests CI actually runs, and the docs gate.

The change

A short Running the checks section ahead of it: just check, what it needs
(a CUDA toolkit and cargo-deny; no GPU — the CUDA-linked test packages
shadow the toolkit's libcuda stub themselves), and just --list for the
individual recipes.

The hand commands below it stay. They are worth knowing when you want one scope
rather than the whole gate.

One deliberate omission

It does not restate which CI jobs stay outside just check. That list is
moving right now — #834, #835 and #836 each shift a piece in or out of it — and a
copy here would rot exactly the way the toolchain pin's copies did (#790). The
check recipe's own comment is the single place that names them, so this text
points there instead of duplicating it.

Verification

Every claim checked against the Justfile rather than remembered: check exists,
29 recipes carry the --list descriptions, the cargo-deny prerequisite and the
libcuda-stub shadowing are both real, check's comment does name the CI-only
jobs, and just --list runs.

CONTRIBUTING never mentions `just`, so the one-command gate that NVIDIA#729 and
NVIDIA#788 exist to provide is invisible to the person it was built for. The
Formatting and Style section lists the individual commands and even says of
clippy that "there is no single command covering them" -- true of that one
scope, but a reader comes away thinking hand-assembly is the only route,
and quietly skips the guards, the tests CI runs, and the docs gate.

Adds a short "Running the checks" section ahead of it: `just check`, what it
needs (a CUDA toolkit and cargo-deny, no GPU -- the CUDA-linked test
packages shadow the toolkit's libcuda stub themselves), and `just --list`
for the individual recipes.

It deliberately does not restate which CI jobs stay outside `just check`.
That list changes -- three PRs in flight move pieces in and out of it right
now -- and a copy here would rot the way the toolchain pin's copies did.
The `check` recipe's own comment is the single place that names them, so the
text points there instead. The hand commands below stay, since they are
worth knowing when you want one scope rather than the whole gate.

Verified: every claim checked against the Justfile -- `check` exists, 29
recipes carry the `--list` descriptions, the cargo-deny prerequisite and the
libcuda-stub shadowing are both real, and `check`'s comment does name the
CI-only jobs. `just --list` runs.

Signed-off-by: Vyncint Ng <[email protected]>
@nihalpasham nihalpasham added documentation Improvements or additions to documentation build-related Build scripts, toolchain discovery, or compilation setup QoL-improvement Quality-of-life improvement; not a correctness fix labels Aug 12, 2026
@nihalpasham

Copy link
Copy Markdown
Collaborator

Gist: the right pointer for contributors: just check runs the local mirror of CI (fmt-check, clippy, tests, guards, doc-check), and the section correctly defers the CI-only jobs to the Justfile comment. One omission fixed (b6b9028): the guards need python3 on PATH, which check-guards' own prerequisites comment lists but the new prose skipped.

Verified here:

  • every claim in the section checked against main's Justfile (check recipe composition, the libcuda-stub note for driverless machines, the CI-only job list);
  • the reworded sentence keeps the file's wrap style.

Landing once CI is green.

@nihalpasham
nihalpasham merged commit b0ee8ac into NVIDIA:main Aug 12, 2026
42 checks passed
nihalpasham pushed a commit that referenced this pull request Aug 13, 2026
…k` (#848)

The template asked contributors to tick `cargo test --workspace`, which is not
the gate this repo runs and quietly covers less than it looks:

  * it cannot reach crates/rustc-codegen-cuda. That crate carries its own
    [workspace] for the rustc-private dylibs, so it is not a root member --
    `cargo metadata` lists 25 packages and the backend is not among them --
    and neither `--workspace` nor `-p` from the root crosses that boundary.
    CI covers it in a separate job, and the Justfile's `test` recipe says so.
  * oxide-artifacts has `default = []`, so the default feature set skips its
    eight ELF emit/extract tests: 14 tests pass without `--features object`
    and 22 with it. Measured on the current tree.
  * on a machine with a toolkit but no driver, the CUDA-linked packages fail to
    *load* -- `libcuda.so.1` -- which reads as a broken checkout rather than a
    test failure. `just test-cuda` shadows the toolkit's stub under that name,
    as unit-tests.yml does.

`just check` handles all three, and CONTRIBUTING.md has pointed at it since
#837, so the template was the odd one out. The `cargo oxide run` line keeps its
place with the scoped smoketest as an alternative, since that is what proves an
example rather than a `cargo check` that never links.

Also updates the stale Discord invite here to the one 1b4f7e7 chose for
README.md. The other five stale references are a separate PR, so the two do not
share a file.

Signed-off-by: Vyncint Ng <[email protected]>
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 QoL-improvement Quality-of-life improvement; not a correctness fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants