Clarify offline validation vs live module-loading validate_all.sh in CONTRIBUTING.md

This commit is contained in:
morebrackets
2026-12-02 15:59:04 -08:00
parent 2d36d483e7
commit c00279d93f

View File

@ -23,7 +23,7 @@ Thank you for contributing to `nvdriver` (`nvidia_rs.ko`)! This guide outlines o
## Local Validation Gate
Before opening a pull request, run the offline validation suite (or `sh tools/validate_all.sh` when testing on an isolated machine):
Before opening a pull request, run the offline build and test commands (these do not require `sudo` or load any kernel module):
```sh
cargo fmt --all -- --check
@ -32,10 +32,16 @@ cargo test --workspace
make modules
make -C src/nvidia audit-codegen
python3 tools/check_native_codegen.py
python3 tests/kernel-module-gate/test_gate_cases.py
NV_RS_KERNEL_IBT=1 python3 -m unittest tests/kernel-module-gate/test_gate_cases.py
python3 tests/kernel-module-gate/test_kernel_archive.py
```
On a dedicated/disposable test machine where loading experimental kernel modules is acceptable, you can run the full validation suite including live `sudo insmod`/`rmmod` of `nvidia_rs.ko` and `/dev/nvidia-rsctl` smoke tests:
```sh
sh tools/validate_all.sh
```
When modifying kernel C adapters (`kernel-open/`), DMA/IOMMU paths, or PCI/owner lifecycle code, also run the software QEMU EDU guest tests (no physical GPU required):
```sh