Repository navigation
docs(contributing): point contributors at just check - #837
Merged
Merged
Conversation
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]>
Signed-off-by: nihalpasham <[email protected]>
Collaborator
|
Gist: the right pointer for contributors: Verified here:
Landing once CI is green. |
nihalpasham
approved these changes
Aug 12, 2026
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CONTRIBUTING never mentions
just— zero occurrences. So the one-commandgate 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 packagesshadow the toolkit's
libcudastub themselves), andjust --listfor theindividual 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 ismoving 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
checkrecipe's own comment is the single place that names them, so this textpoints there instead of duplicating it.
Verification
Every claim checked against the Justfile rather than remembered:
checkexists,29 recipes carry the
--listdescriptions, thecargo-denyprerequisite and thelibcuda-stub shadowing are both real,
check's comment does name the CI-onlyjobs, and
just --listruns.