tests: ignore the shader cache revision stamp in two exact-set checks #3231

Merged
lambirou merged 2 commits from upstream-pr/3231 into main 2026-11-28 00:29:04 +00:00
lambirou commented 2026-11-28 00:06:02 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-28T00:06:02Z.


Problem

main is red in the /O2 job on native_rtv_variant_warp and startup_compute_dispatch_native_warp after the runtime started writing <X2W_SHADER_CACHE>/revision.txt with its first request. Both tests compare the cache directory contents exactly, so they report that metadata file as a published shader.

The failure predates #3142: it is also present on the #2820 merge (14d56502).

Change

Filter revision.txt from:

  • the request-set assertion in tests/native_rtv_variant_check.py;
  • the publication check in tests/startup_compute_dispatch_native_check.py.

No runtime behavior changes.

Validation

Windows 11 build 26300, MSVC 19.44.35228, WARP 10.0.26100.10068 and RX 9060 XT driver 32.0.32029.2010.

ctest --preset release --no-tests=error -j 1 -R '^(native_rtv_variant_(warp|hardware)|startup_compute_dispatch_native_(warp|hardware))$'
  • native_rtv_variant_warp: pass
  • native_rtv_variant_hardware: pass
  • startup_compute_dispatch_native_warp: capability skip (WARP has no 32-lane waves)
  • startup_compute_dispatch_native_hardware: pass

The Debug equivalents also pass, including the hardware publication check. The D3D12 debug layer was unavailable (0x887a002d), so debug-layer cleanliness is not claimed.

AI was used.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5534750252 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3231). Originally posted by [lambirou](https://github.com/lambirou) on 2026-11-28T00:06:02Z. --- ## Problem `main` is red in the `/O2` job on `native_rtv_variant_warp` and `startup_compute_dispatch_native_warp` after the runtime started writing `<X2W_SHADER_CACHE>/revision.txt` with its first request. Both tests compare the cache directory contents exactly, so they report that metadata file as a published shader. The failure predates #3142: it is also present on the #2820 merge (`14d56502`). ## Change Filter `revision.txt` from: - the request-set assertion in `tests/native_rtv_variant_check.py`; - the publication check in `tests/startup_compute_dispatch_native_check.py`. No runtime behavior changes. ## Validation Windows 11 build 26300, MSVC 19.44.35228, WARP 10.0.26100.10068 and RX 9060 XT driver 32.0.32029.2010. ```powershell ctest --preset release --no-tests=error -j 1 -R '^(native_rtv_variant_(warp|hardware)|startup_compute_dispatch_native_(warp|hardware))$' ``` - `native_rtv_variant_warp`: pass - `native_rtv_variant_hardware`: pass - `startup_compute_dispatch_native_warp`: capability skip (WARP has no 32-lane waves) - `startup_compute_dispatch_native_hardware`: pass The Debug equivalents also pass, including the hardware publication check. The D3D12 debug layer was unavailable (`0x887a002d`), so debug-layer cleanliness is not claimed. AI was used.
lambirou commented 2026-11-28 00:09:36 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-28T00:09:36Z.


CI is green on run 46086069516: Windows build/tests and the Linux Python checks pass. The /O2 job is skipped for PRs; the local Release run above covers the two affected tests on WARP and the RX 9060 XT.

AI was used.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7230693869 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3231#issuecomment-7230693869). Originally posted by [lambirou](https://github.com/lambirou) on 2026-11-28T00:09:36Z. --- CI is green on run [46086069516](https://github.com/R0Y00/Xbox2Windows/actions/runs/46086069516): Windows build/tests and the Linux Python checks pass. The `/O2` job is skipped for PRs; the local Release run above covers the two affected tests on WARP and the RX 9060 XT. AI was used.
lambirou commented 2026-11-28 00:15:59 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-28T00:15:59Z.


Merged current main and pushed deffba2d. The rerun 46086600278 is green on Windows and Linux; /O2 is still skipped for PRs. The PR is clean and mergeable.

AI was used.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7230777827 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3231#issuecomment-7230777827). Originally posted by [lambirou](https://github.com/lambirou) on 2026-11-28T00:15:59Z. --- Merged current `main` and pushed `deffba2d`. The rerun [46086600278](https://github.com/R0Y00/Xbox2Windows/actions/runs/46086600278) is green on Windows and Linux; `/O2` is still skipped for PRs. The PR is clean and mergeable. AI was used.
roansystemlabs commented 2026-11-28 00:22:52 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by roansystemlabs on 2026-11-28T00:22:52Z.


Independent receipt on NVIDIA Ampere with the D3D12 debug layer enabled, which the RX 9060 XT run in the description could not cover.

Machine: RTX 3070 (10de:2484), driver 621.01 (UMD 32.0.16.2101), WARP 10.0.26100.9818, Windows 11 25H2 build 26200.9974. main at ad306425, dev and release presets built as in the Windows CI job. This PR only changes the two check scripts, so I ran its versions (identical at c2d38573 and deffba2d) against the ad306425 binaries.

test main scripts this PR's scripts
native_rtv_variant_hardware, Debug and Release fail 3/3 each (native_rtv_variant_check.py:291, extra revision.txt) pass 2/2 each
native_rtv_variant_warp, Debug and Release fail 2/2 each pass 2/2 each
startup_compute_dispatch_native_hardware, Debug and Release fail 2/2 each (the native route left ['revision.txt'] in the cache) pass 2/2 each, all 320 words match

Every passing run printed debug layer: enabled, no error message.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7230866699 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3231#issuecomment-7230866699). Originally posted by [roansystemlabs](https://github.com/roansystemlabs) on 2026-11-28T00:22:52Z. --- Independent receipt on NVIDIA Ampere with the D3D12 debug layer enabled, which the RX 9060 XT run in the description could not cover. Machine: RTX 3070 (`10de:2484`), driver 621.01 (UMD `32.0.16.2101`), WARP `10.0.26100.9818`, Windows 11 25H2 build 26200.9974. `main` at `ad306425`, `dev` and `release` presets built as in the Windows CI job. This PR only changes the two check scripts, so I ran its versions (identical at `c2d38573` and `deffba2d`) against the `ad306425` binaries. | test | `main` scripts | this PR's scripts | |---|---|---| | `native_rtv_variant_hardware`, Debug and Release | fail 3/3 each (`native_rtv_variant_check.py:291`, extra `revision.txt`) | pass 2/2 each | | `native_rtv_variant_warp`, Debug and Release | fail 2/2 each | pass 2/2 each | | `startup_compute_dispatch_native_hardware`, Debug and Release | fail 2/2 each (`the native route left ['revision.txt'] in the cache`) | pass 2/2 each, all 320 words match | Every passing run printed `debug layer: enabled, no error message`. AI-assisted.
R0Y00 commented 2026-11-28 00:29:00 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-28T00:29:00Z.

Review: APPROVED


Reviewed deffba2d2b. Its two changed test files are byte-identical to the locally exercised candidate. Debug and Release /O2 each passed both RTV tests and native Dispatch on RTX 4060 Laptop. Microsoft WARP native Dispatch reported capability skip 77. The original assertions reproduced the failure against revision.txt, and the remaining exact-set checks are preserved.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6094611201 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3231#pullrequestreview-6094611201). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-28T00:29:00Z. **Review:** APPROVED --- Reviewed deffba2d2ba5dddcfc344bd7b762cdc22e0635c8. Its two changed test files are byte-identical to the locally exercised candidate. Debug and Release /O2 each passed both RTV tests and native Dispatch on RTX 4060 Laptop. Microsoft WARP native Dispatch reported capability skip 77. The original assertions reproduced the failure against revision.txt, and the remaining exact-set checks are preserved.
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
R0Y00/Xbox2Windows!3231
No description provided.