ci: require every SPIR-V bridge WARP test in the result check #1553
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1560"
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 RenzoWit35 on 2026-11-24T14:00:11Z.
Change
tests/spirv_window/require_warp_results.pyruns after CTest in both Windows jobs. Its docstring says it fails "unless every SPIR-V bridge WARP test ran and passed" and that a test missing from the report fails the check. ItsREQUIREDlist named 10 tests, while theforeach(bridge IN ITEMS ...)loop inCMakeLists.txtregisters 14. Not required werespirv_address_window_atomic_warp,spirv_address_window_signed_warp,spirv_address_window_float_warpandspirv_address_window_vec4_warp. Those bridges joined the loop on 2026-11-24 (423c2e0a,4daa4a81,b27f4eed,7ea035ce) without joining the list; the qword bridge added the same day (3f8a40bb) did join it.CTest already fails on a failed test, and
X2W_REQUIRE_SPIRV_TOOLS=1already turns a skip into a failure. The gap is a test that is absent from the report (dropped from the loop, renamed, or no longer matched by theprpreset filter): for those four, the step still printedall 10 SPIR-V bridge WARP tests ran and passed.REQUIREDnow names all 14 tests. Nothing else in the script changes; the printed count follows the list.tests/spirv_window/require_warp_results_check.py(standard library only). It reads thename:driveritems of the bridge loop inCMakeLists.txtand fails, naming the missing and the unregistered tests, unlessREQUIREDis exactlyspirv_<name>_warpfor every bridge. It exits with an error if the loop is not found exactly once, is empty or holds an item that is notname:driver, so it cannot pass on nothing. It then runs the result check on synthetic CTest JUnit reports: every required test passed (exit 0), and each required test in turn absent, skipped or failed (exit 1 with that test named)..github/workflows/windows.yml: the new check is its own step in the Ubuntu fixture job (pixel-binary), directly after thedev.ps1compiler-cache check and in the same form. That job runs on pull requests.A later change that adds a bridge to the CMake loop now has to add its name to
REQUIRED, or the new step fails.Verification
Environment: Windows 11, Python 3.14.5 (
out/pe-env), CMake and CTest 4.3.1, commit f5004a76 onorigin/mainef39d41e. The SPIR-V tools are not installed on this machine.New check, negative control (script as on
origin/main, only the new check file added):New check, with the fix:
The script itself, before and after.
out/ten-passed.xmlis a synthetic JUnit report holding the ten originally required tests asstatus="run"and none of the four others.Registered names, from a fresh configure without a build:
cmake --preset dev -B out/build/dev -DINTAKE_PYTHON=<venv python>thenctest --test-dir out/build/dev -N -R "spirv_.*_warp":Total Tests: 14. The names arespirv_address_window_warp,spirv_address_window_atomic_warp,spirv_address_window_signed_warp,spirv_address_window_float_warp,spirv_address_window_vec4_warp,spirv_address_window_qword_warp,spirv_sampler_views_warp,spirv_ballot_extract_warp,spirv_compaction_warp,spirv_compare_sampler_warp,spirv_minlod_warp,spirv_minlod_exact_warp,spirv_minlod_levels_warp,spirv_minlod_fractional_warp: the same set as the newREQUIRED.ctest --test-dir out/build/dev -R "^(spirv_address_window_warp|docs_links)$" --output-junit <file>gave a real report with one pass (status="run") and one skip (status="notrun"with<skipped message="SKIP_RETURN_CODE=77"/>). The synthetic reports in the new check use the same shape. The fixed script exits 1 on that report (spirv_address_window_warp: skipped, the other 13not in the report).Hosted CI, read from the run logs. A push run uses
ctest --preset dev -E '_hardware$'and a pull request run usesctest --preset pr, whose filter inCMakePresets.jsoncontainsspirv_.*_warp; both select all 14. The /O2 job does not run on pull requests.e3193607, run succeeded (latest successful run onmain)d20fef65, run failed oncpu_aot_jump_tablesd21e3d6emerged into7b0d7954, run succeededprpreset)100% tests passed out of 2590fbe417, both Windows jobs stopped by the 20-minute job limitPer test:
spirv_address_window_atomic_warpandspirv_address_window_signed_warpPassed in all seven job logs above.spirv_address_window_float_warpPassed in the five job logs fromd20fef65onwards.spirv_address_window_vec4_warpPassed in the three job logs from7b0d7954onwards (debug on a pull request, debug and /O2 onmain). The ten tests that were already required Passed in all seven. None of the 14 was skipped or failed in any of these logs.Further checks:
not registered ['spirv_address_window_vec4_warp']), a bridge added to it (missing ['spirv_new_one_warp']), the loop renamed (found 0), the loop emptied, an item without a driver, a duplicate entry inREQUIRED, and astatuses()that counts skips, failures or absent tests as passes or rejects everything.out/pe-env/Scripts/python.exe -B tests/docs_links_check.py:Checked 16 Markdown files and 339 links., exit 0.out/pe-env/Scripts/python.exe -B tests/bidi_controls_check.py:Checked 1235 tracked source, script and build/CI files: no bidirectional controls., exit 0.Bun.YAML.parse, Bun 1.3.14; PyYAML is not installed here). Thepixel-binaryjob lists the new step between thedev.ps1check andCheck machine-code inputs with LLVM 15.ast.parse(source, feature_version=(3, 10))accepts the new check; the Ubuntu 22.04 job runs it with the systempython3.Rebased onto
origin/mainata3633d4dbefore opening this pull request and re-run there: the bridge loop still registers the same 14 tests and the new check exits 0.Not run: the new workflow step and the stricter require step were not executed on the hosted CI image. The new check was run with Python 3.14.5 only, not with Python 3.10 (grammar check only). The SPIR-V bridge tests were not run locally because the SPIR-V tools are not installed (they report skip 77 here). Nothing was built, and no other tests were run.
Evidence and follow-up
tests/spirv_window/, so none adds a bridge to the CMake loop or edits the result check..github/workflows/windows.yml, in other places. A trial merge of this commit with each PR head (git merge-tree --write-tree) was clean, and so was one withorigin/main8f438025, which already contains #1513, #1507 and #1471. #1520 rewrites the longrun: |block of the same job; the new step sits above that block as a separate step.python-linuxlist or to the list inAGENTS.md. #1502 rewrites that workflow list, so adding a line there would only create a conflict. The neighbouringtests/dev_ps1_sccache_check.pyis registered the same way: one step in this job, no CMake test, not in those lists. It can join the lists once they settle.mainhit the 20-minute job limit before CTest finished. A cancelled job does not run the require step (if: ${{ !cancelled() }}). #1173 proposes running CTest in parallel.AI-assisted.