Repository navigation
Conversation
…handling (cherry picked from commit 7cd474e)
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.
Problem
The wave64 hardware tests in
crates/victory-shader/src/emit/wave64_tests.rsuseHost::new(false)and skip witheprintln!(...); return;when no SM 6.6 device exists. A test that returns counts as a pass, so a CI or developer run requesting hardware coverage reports green while executing nothing - a silently untested shader change can look verified.Found while comparing the other forks: spk-c/victory-fork commit
7cd474e3(spk). It is not in this fork,upstream/main, the #653 batch or any open PR; this is that fix ported unchanged.Change
gpu_unavailable(stage, error): printsGPU test skipped at <stage>: <error>, or panics withGPU test unavailable at <stage>: <error>whenVICTORY_REQUIRE_GPU_TESTS=1.on_the_cardhelper) go through it; the old bareeprintln!skips are gone.Tests
cargo test -p victory-shader --lib wave64(no device here): 8 tests pass (2 pure + 6 hardware skips), as before.VICTORY_REQUIRE_GPU_TESTS=1 cargo test -p victory-shader --lib wave64: 6 hardware tests fail withGPU test unavailable at device initialization: 指定的设备接口或功能级别在此系统上不受支持。, which is the intended strict behavior - a green run can no longer mean "nothing ran".cargo clippy -p victory-shader --all-targets --locked -- -D warnings: clean.(CI note: the
checkjob on main is currently red on the asset-policy violation; #1322 fixes that, after which this can be rebased.)