Repository navigation
ci: require every SPIR-V bridge WARP test in the result check - #1560
Merged
Merged
Conversation
tests/spirv_window/require_warp_results.py fails a Windows CI job unless each listed SPIR-V bridge WARP test is in the CTest JUnit report and passed. Its list named 10 tests, while the bridge loop in CMakeLists.txt registers 14: the atomic, signed, float and vec4 address-window tests were added to the loop without joining the list. If one of those four dropped out of the report, the step still printed "all 10 ... ran and passed". Add the four names, and add require_warp_results_check.py, which reads the bridge names from the CMake loop and fails when the list differs in either direction. It also runs the result check on synthetic JUnit reports: all passed, and each required test absent, skipped or failed. The new check runs as its own step in the Ubuntu fixture job, next to the other standalone Python checks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 (423c2e0, 4daa4a8, b27f4ee, 7ea035c) without joining the list; the qword bridge added the same day (3f8a40b) 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/mainef39d41. 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.main)cpu_aot_jump_tablesprpreset)100% tests passed out of 25Per 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 from d20fef6 onwards.spirv_address_window_vec4_warpPassed in the three job logs from 7b0d795 onwards (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/main8f43802, which already contains shader: lower gfx1030 non-comparison 2D gathers #1513, shader: lower gfx1030 explicit-gradient pixel sampling #1507 and gfx2hlsl: lower 2D depth-comparison image sampling (image_sample_c, image_sample_c_lz) #1471. ci: cache pip/sccache and parallelize pixel-binary checks #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. ci: run the platform-independent Python checks in parallel #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() }}). ci: run the full Windows suites with CTest in parallel #1173 proposes running CTest in parallel.AI-assisted.