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

Manually merged
github merged 2 commits from github-bot/gh-3231 into gh-pr/3231/base 2026-11-28 00:33:02 +00:00 AGit
Owner

@⁠lambirou on GitHub · 2026-11-28 00:06 UTC · original
lambirou:tests/ignore-cache-revision → main · +5 −2 · 2 files · 2 commits · merged 2026-11-28 00:29 UTC

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 #3144: 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.

**@⁠lambirou** on GitHub · 2026-11-28 00:06 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3231) `lambirou:tests/ignore-cache-revision` → `main` · +5 −2 · 2 files · 2 commits · merged 2026-11-28 00:29 UTC ## 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 #3144: 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.
The runtime writes <cache>/revision.txt with its first request. Two native-path
checks still compare the whole cache directory, so a release build that reaches
that write reports the metadata file as a published shader.

Filter revision.txt from the request-set assertion and from the publication
check. The other native checks already do this.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 00:07:13 +00:00
Author
Owner

@⁠lambirou on GitHub · 2026-11-28 00:09 UTC · original

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.

**@⁠lambirou** on GitHub · 2026-11-28 00:09 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3231#issuecomment-7230693869) 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.
Author
Owner

@⁠lambirou on GitHub · 2026-11-28 00:15 UTC · original

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.

**@⁠lambirou** on GitHub · 2026-11-28 00:15 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3231#issuecomment-7230777827) 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.
Author
Owner

@⁠roansystemlabs on GitHub · 2026-11-28 00:22 UTC · original

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.

**@⁠roansystemlabs** on GitHub · 2026-11-28 00:22 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3231#issuecomment-7230866699) 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.
github-bot changed target branch from main to gh-pr/3231/base 2026-11-28 00:33:01 +00:00
github manually merged commit deffba2d2b into gh-pr/3231/base 2026-11-28 00:33:02 +00:00
Author
Owner

@⁠R0Y00 on GitHub · 2026-11-28 00:29 UTC · original · approved these changes

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.

**@⁠R0Y00** on GitHub · 2026-11-28 00:29 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3231#pullrequestreview-6094611201) · **approved these changes** 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.
This discussion has been locked. Commenting is limited to contributors.
No description provided.