tests: name the host GPU adapter and make skipped shader tests explicit #43
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/uiliannn--VItoriaBr!43
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/43/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@LouisRiverstone on GitHub · 2026-11-25 20:16 UTC · original
LouisRiverstone:test/explicit-skips-and-adapter-log→main· +105 −30 · 10 files · 1 commits · merged 2026-11-25 20:33 UTCCloses #32
Why
Host GPU tests passed without saying which adapter ran them (card or WARP), and tests missing a compiler or device returned early, so the harness reported
okfor runs that checked nothing.What changed
emit::host::Hostgets anadapterfield (name (vendor 0x....)) and logsVICTORY HOST GPU: ...once per adapter per process.emit::test_skip::skip(reason): printsVICTORY TEST SKIPPED: <reason>for every skip. WithVICTORY_STRICT_TESTS=1it panics instead, for machines where the compilers and devices are expected.eprintln!("... skipped")/"... not run"site in the shader emit tests (diff, valu, intersect, waterfall, wave64, rect, mod, shader) goes through it, as do the previously silentHost::newfallbacks.Behavior without
VICTORY_STRICT_TESTSis unchanged: same early returns, louder output.Strict mode fails on any skip, including a missing hardware adapter in the tests that also try WARP, so use it only where a card is present.
Verify
cargo clippy -p victory-shader --tests --target x86_64-pc-windows-msvcis clean.cfg(windows)) and did not run them. Please runcargo test -p victory-shaderon Windows, with and withoutVICTORY_STRICT_TESTS=1.🤖 Generated with Claude Code