Skip to content

docs(github): point the PR template's testing checklist at just check - #848

Merged
nihalpasham merged 1 commit into
NVIDIA:mainfrom
vyncint:docs/pr-template-testing-checklist
Aug 13, 2026
Merged

nihalpasham merged 1 commit into
NVIDIA:mainfrom
vyncint:docs/pr-template-testing-checklist

Conversation

@vyncint

@vyncint vyncint commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

The defect

The PR template asks contributors to tick:

- [ ] `cargo test --workspace` passes

That is not the gate this repo runs, and it quietly covers less than it looks:

  1. 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 in a comment.
  2. It skips eight tests. oxide-artifacts has default = []; measured on the current tree, cargo test -p oxide-artifacts --all-targets runs 14 tests, and --features object runs 22 — the ELF emit/extract set.
  3. On a driverless machine the CUDA-linked packages fail to load with 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 change

The checklist now names just check, and keeps cargo oxide run <example> with the scoped smoketest as an alternative, since that is what actually proves an example (a cargo check never links, and a plain cargo build in an example dir dies on the artifact anchor).

Also updates the stale Discord invite on the template's last line to the one 1b4f7e7d chose for README.md. The other five stale references are a separate PR, deliberately scoped so the two do not share a file.

No GPU needed.

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
NVIDIA#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]>
@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 13, 2026
@nihalpasham

Copy link
Copy Markdown
Collaborator

Gist: the template asked contributors to run less than CI does; just check is the one command that mirrors the gates, and the smoketest line now shows the anchored single-example form.

Verified here:

  • Justfile check recipe mirrors the CI workflows per its own comments (fmt-check, clippy, test, test-cuda, check-guards, doc-check);
  • scripts/smoketest.sh -o '^<example>$' matches the exact-match idiom at smoketest.sh:188;
  • invite swap consistent with docs: propagate the Discord invite update past README.md #847, no overlap (this file is the fifth of five).

Landing once CI is green.

@nihalpasham
nihalpasham merged commit 6764e51 into NVIDIA:main Aug 13, 2026
42 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 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