Repository navigation
docs(github): ask bug reports for cargo oxide doctor, not four hand-collected facts - #956
Merged
Merged
Conversation
…-collected facts The template asks reporters to assemble the environment by hand: - GPU: - CUDA driver version: - `rustc --version --verbose`: - `llc --version` (or `llc-22 --version`): `cargo oxide doctor` already prints all four, and it is not mentioned anywhere outside a CI job name -- not in the template, not in CONTRIBUTING. Its output covers every field above and the ones triage asks for next: which toolchain is actually active and whether the pin took, the rustup components, the backend `.so` it would load and whether the shared cache is stale, cuda.h, libNVVM, nvJitLink, libdevice, the resolved `llc` with its path and version, clang's resource dir, and whether cuda-gdb and compute-sanitizer are present. Several of those distinguish "the compiler is broken" from "this checkout picks up a different backend than you think", which is a common enough answer to be worth having in the first message rather than the third. The four fields stay, under "if `doctor` itself is what fails" -- an environment broken enough to stop `doctor` is exactly when they are still needed. Signed-off-by: Vyncint Ng <[email protected]>
The rewritten bug template says doctor reports "the GPU and driver",
but doctor's nvidia-smi query was name,compute_cap only, so the CUDA
driver version (an old template field) silently dropped out of the
standard reporting path. Driver version matters for triage: PTX-JIT
and driver-API compatibility bugs are driver-version-specific.
Extend the query to name,compute_cap,driver_version and print it:
NVIDIA driver / GPU... ✓ NVIDIA GeForce RTX 5090
(compute capability 12.0, driver 580.173.02)
Parsing splits on the last two commas: GPU names may contain commas in
principle, compute_cap and driver_version never do.
Collaborator
|
One gap: the template says doctor reports "the GPU and driver", but doctor never printed the driver version, so that field would quietly vanish from reports. Layered one commit extending doctor instead of rewording the template:
Merging. |
nihalpasham
approved these changes
Aug 17, 2026
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.
The gap
bug_report.mdasks reporters to assemble the environment by hand:cargo oxide doctoralready prints all four — and it appears nowhere outside a CI job name: not in the template, not in CONTRIBUTING, not in the book.What it adds over the four fields
Real output from this machine:
Several of those separate "the compiler is broken" from "this checkout loads a different backend than you think" — a common enough answer to want in the first message rather than the third.
Scope
The four fields stay, under "If
doctoritself is what fails" — an environment broken enough to stopdoctoris exactly when they are still needed. The output goes in a<details>block so a long paste does not bury the reproducer.No GPU, no code change.