ci: run the SPIR-V bridge WARP tests on both Windows jobs #720
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/726"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by rwZephyr on 2026-11-22T23:18:29Z.
Fixes #720, following R0Y00's spec in https://github.com/R0Y00/Xbox2Windows/issues/720#issuecomment-7087209496 (pinned source revisions, a cache keyed by revisions and toolchain, only the three CLIs, skip 77 locally, failure in hosted CI, physical GPU stays manual).
Problem
spirv_{address_window,sampler_views,ballot_extract,compare_sampler}_{hardware,warp}were registered only when CMake foundspirv-as,spirv-valandspirv-cross. Thewindows-2025runners have none of them, so the tests never existed in CI, and a missing toolchain anywhere showed up as an absent test rather than a skip.What changes
tools/setup-spirv-tools.ps1builds exactlyspirv-as,spirv-valandspirv-crossfrom pinned sources intoout/tools/spirv/bin, with the static CRT:v2025.5=262bdab48146c937467f826699a40da0fdfc0f1ab824a462d4256d720bebb40e78b9eb8f78bbb305(the revision SPIRV-Tools'DEPSnames for that release)57e4efcc84112abcd426dc5ec248b5339bee04f2(as used by the bridge fixtures)Each checkout is verified against its pin. A
revisions.txtstamp makes reruns a no-op. It follows the pattern oftools/setup-xbdepends.ps1.CMake looks in
out/tools/spirv/binfirst, thenPATHand$env:VULKAN_SDK\Bin, and registers all eightspirv_*tests unconditionally throughtests/spirv_window/run_bridge_test.py:X2W_REQUIRE_SPIRV_TOOLS=1: a missing tool, or a 77 from the test itself (for example a WARP capability skip), fails instead.Both Windows jobs (
devandrelease/O2):out/tools/spirv/binwithactions/cache(v5.0.5, pinned by SHA), keyed byrunner.os, the MSVC toolset andhashFiles('tools/setup-spirv-tools.ps1'), which holds the revisions;X2W_REQUIRE_SPIRV_TOOLS=1.A dedicated step in each job,
tests/spirv_window/require_warp_results.py, reads the CTest JUnit report and fails unless all fourspirv_*_warptests are present and passed. It runs even when CTest fails, so the reason is named. The release job now also writes a JUnit report._hardwaretests stay excluded in CI and remain manual evidence.docs/experiments.mddescribes the setup script, the skip and the CI behaviour.Local evidence
Commit
87d3677d828715bd775131d17b0ba68c321898c2on121fdc3, clean tree. Windows 11 25H2 build 26200.9974, MSVC 19.44.35230, CMake 3.31.12, Python 3.12.10, DXC 1.8.2502.8. WARP 10.0.26100.9818, RX 9070 XT driver 32.0.32029.2010, debug layer unavailable.Tool build:
This produced
SPIRV-Tools v2025.5 262bdab…and SPIRV-Cross57e4efc. A clean build took 42 s on a 16-thread machine with sources already fetched. A rerun found the stamp and finished in 0.4 s.Both presets, CI mode:
devrelease(/O2)spirv_*_hardwareon the RX 9070 XT,dev, not strict: 4/4 passed.Tool-less local case. I hid
out/tools/spirv/bin(no tools onPATH, noVULKAN_SDK) and configured a separate build directory:SPIRV_WINDOW_{AS,VAL,CROSS}-NOTFOUNDctest -N -R '^spirv_'Total Tests: 8(still registered)Skipped, CTest exit 0require_warp_results.pyon that reportskippedX2W_REQUIRE_SPIRV_TOOLS=1Failed, CTest exit 8Wrapper paths with stub drivers:
X2W_REQUIRE_SPIRV_TOOLS=1spirv-astests/docs_links_check.pyandtests/bidi_controls_check.pypass.Not verified locally
windows-2025runner and the runner's WARP. If that WARP lacks a capability one of the four fixtures needs, the strict step fails by design, and I'll report which one.AI-assisted; all local commands were run on the machine above.
🤖 Generated with Claude Code