Tests: show when shader differential checks are skipped #1144

Open
EatCodeSleep2 wants to merge 1 commit from upstream-pr/1144 into main
EatCodeSleep2 commented 2026-11-24 16:13:29 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by EatCodeSleep2 on 2026-11-24T16:13:29Z.


Summary

  • Print a named SKIP line when a shader differential test cannot start because a compiler or a Shader Model 6.6 device is unavailable.
  • Write the marker directly to stderr so it is visible with Cargo's default capture. The standard harness still counts an early return as a pass.

Addresses the silent skips reported in #1140. The change is confined to the test harness.

Verification

  • With VICTORY_CONSOLE_DXC unset, ran cargo test --locked -p victory-shader --lib emit::diff_tests -- --test-threads=1. Upstream printed zero skip markers. The patched run printed four distinct named markers.
  • cargo clippy --locked -p victory-shader --all-targets -- -D warnings passed.

The console compiler was unavailable, so this run verified reporting only. AI-assisted. No game data.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6586225099 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1144). Originally posted by [EatCodeSleep2](https://github.com/EatCodeSleep2) on 2026-11-24T16:13:29Z. --- ## Summary - Print a named `SKIP` line when a shader differential test cannot start because a compiler or a Shader Model 6.6 device is unavailable. - Write the marker directly to stderr so it is visible with Cargo's default capture. The standard harness still counts an early return as a pass. Addresses the silent skips reported in #1140. The change is confined to the test harness. ## Verification - With `VICTORY_CONSOLE_DXC` unset, ran `cargo test --locked -p victory-shader --lib emit::diff_tests -- --test-threads=1`. Upstream printed zero skip markers. The patched run printed four distinct named markers. - `cargo clippy --locked -p victory-shader --all-targets -- -D warnings` passed. The console compiler was unavailable, so this run verified reporting only. AI-assisted. No game data.
Zipettte commented 2026-11-24 18:06:14 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T18:01:20Z.


Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at 4878152: cargo test -p victory-shader passes, 120 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).

Tested with AI assistance (Claude).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7140042626 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1144#issuecomment-7140042626). Originally posted by [Zipettte](https://github.com/Zipettte) on 2026-11-24T18:01:20Z. --- Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at 4878152: `cargo test -p victory-shader` passes, 120 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed). _Tested with AI assistance (Claude)._
Marvisak commented 2026-11-25 02:05:50 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:17:36Z.


Automated triage for the maintainers.

Needs rebase. This pull request conflicts with main (conflicting: crates/victory-shader/src/emit/diff_tests.rs). It will be reviewed once it is rebased onto the current main.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7149399279 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1144#issuecomment-7149399279). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T01:17:36Z. --- <!-- victory-triage v1 head=48781527f53f033e8863527132902b60eb835560 verdict=needs-rebase at=2026-11-25T01:17:35Z --> Automated triage for the maintainers. **Needs rebase.** This pull request conflicts with `main` (conflicting: `crates/victory-shader/src/emit/diff_tests.rs`). It will be reviewed once it is rebased onto the current `main`. --- _Generated by [Claude Code](https://claude.ai/code)_
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1144:upstream-pr/1144'
git switch 'upstream-pr/1144'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1144'
git switch 'upstream-pr/1144'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1144'
git switch 'upstream-pr/1144'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1144'
git switch 'main'
git merge --squash 'upstream-pr/1144'
git switch 'main'
git merge --ff-only 'upstream-pr/1144'
git switch 'main'
git merge 'upstream-pr/1144'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!1144
No description provided.