Skip to content

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

Merged
R0Y00 merged 2 commits into
R0Y00:mainfrom
lambirou:tests/ignore-cache-revision
Nov 28, 2026
Merged

R0Y00 merged 2 commits into
R0Y00:mainfrom
lambirou:tests/ignore-cache-revision

Conversation

@lambirou

Copy link
Copy Markdown
Contributor

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.

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.
@lambirou

Copy link
Copy Markdown
Contributor Author

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

Copy link
Copy Markdown
Contributor Author

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.

@roansystemlabs

Copy link
Copy Markdown
Contributor

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 R0Y00 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed deffba2. 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
R0Y00 merged commit 38129ba into R0Y00:main Nov 28, 2026
5 checks passed
Not-Saii added a commit to Not-Saii/Xbox2Windows that referenced this pull request Nov 28, 2026
… texture-output cases

Since R0Y00#2820 the stand-in writes revision.txt into the shader cache with the
first request. R0Y00#3231 allowed it in step 1 of
startup_compute_dispatch_native_check.py; the two exact-set assertions that
close table_views and texture_outputs need the same exception, or the check
fails after its last Dispatch.

Refs R0Y00#3149

AI-assisted.

Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants