tooling: add a startup UI regression matrix #3175
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!3175
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3173"
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?
@lambirou on GitHub · 2026-11-27 20:23 UTC · original
lambirou:codex/ui-regression-matrix→main· +816 −0 · 4 files · 2 commits · merged 2026-11-27 22:26 UTCChanges
Adds
tools/startup/ui_regression_matrix.py, a CTest-driven pass/skip/fail matrix for the startup UI sampler, BC7, rotated-rectangle and texture-band fixtures. A skip (77) stays separate from a pass and a failure, and an empty selection is an error.The default rows are
startup_sampler_heap_wrapped,startup_xg_bc7_draw,startup_rect_gapandstartup_ui_texture_bands, for_warpand_hardware.Validation
The synthetic check covers a full mixed matrix, a 77 capability skip, a failure, an adapter-only selection, a custom filter and empty selections. No runtime, shader or existing fixture is changed, so no GPU test was run in this PR.
Limits
The tool reports the fixtures the selected build actually registers. It does not close #3133 or #3134 by itself; the exact #3133 draw is still unreproduced, and #3155 / #3143 / #3144 need their own review and merge.
Refs #3133 #3134 #3155 #3143 #3144 #870.
Review update (2026-11-27,
7c24b8f3)pigalot's
notrunfinding is fixed. Anotrunrow is now a skip only when its CTest skipped message starts withSKIP_RETURN_CODEorSKIP_REGULAR_EXPRESSION. Missing executables, missing configurations and disabled tests are failures with the CTest message as the detail. A nonzero CTest exit with zero failed rows also returns 1.The fake CTest now covers a missing executable (
Unable to find executable, expected FAIL) and a nonzero CTest exit with every row passing (expected exit 1 with the diagnostic).startup_ui_regression_matrix_checkanddocs_links_checkpass (103 files, 593 links). CI is running on7c24b8f3.@pigalot on GitHub · 2026-11-27 21:40 UTC · original · requested changes
Independently reviewed
ec324f73integrated overmain673a9f2c(tree9b7e20fe). The merge is clean andgit diff --cached --check origin/mainis clean.What I traced.
selected_test_nameslists withctest --show-only=json-v1 -R <filter>, the adapter filter is applied by name suffix, andrun_testsreruns exactly those names with--output-junitand reads each<testcase>through_case_status:<failure>/<error>is a fail,<skipped>orstatus="notrun"is a skip,status="run"is a pass, anything else is a fail. Exit codes are 0/1/3/2 as the doc says.What I ran.
On a full
devbuild of the trial merge, warp and hardware each give 3 passed, 0 skipped, 0 failed (3 selected), exit 0:startup_ui_texture_bands,startup_sampler_heap_wrappedandstartup_xg_bc7_draw.startup_rect_gapis not registered onmain(it comes with #3144), so it is correctly left out. The check and tool are new, so there is no before state onmain.Finding: a test that never ran is counted as a skip. CTest writes
status="notrun"with a<skipped>element for more thanSKIP_RETURN_CODE. With CTest 4.3.1 and Ninja, a toy project gives:SKIP_RETURN_CODE 77notrun,<skipped message="SKIP_RETURN_CODE=77"/>COMMANDexecutable not builtnotrun,<skipped message="Unable to find executable"/>DISABLED TRUEstatus="disabled", no childunrecognized CTest result status 'disabled'fail,<failure message="Timeout"/>The same happens in this repository. With
out/build/dev/startup_ui_texture_bands_check.exerenamed away (as after a targeted--targetbuild that did not include it):CTest itself counts that row as failed (exit 8, "Not Run" in its failed list), but the matrix reports 0 failed and exit 3. The PR and
docs/experiments/startup-ui-regression-matrix.mddescribe a skip as a capability or environment result (77). A missing binary is neither, and a "1 skipped" row is exactly what a reader would discount as "no GPU here". With a multi-config generator and no-C, every row becomes SKIP withMissing Configurationin the same way.Suggested direction (unconfirmed beyond the cases above): count a
notrunrow as a skip only when its<skipped>message starts withSKIP_RETURN_CODE(and, if you want it, CTest'sSKIP_REGULAR_EXPRESSIONmessage), and count any othernotrunas a fail with its message as the detail. Add a fake-CTest row withUnable to find executableto the check as the control. Treating a nonzero CTest exit with zero counted failures as a fail would also catch cases neither of us has listed.Mutants (each applied alone to
tools/startup/ui_regression_matrix.py, check rerun, file restored from its raw bytes,git diff --quietclean afterwards):notrunclassified as pass--adapterfilter droppedstatusclassified as passThe two survivors are defensive paths the fake CTest never reaches. A fake row with an unexpected status, and a fake run that omits one selected name from the JUnit file, would pin them. These are non-blocking.
Verdict: request changes on
ec324f73for thenotrunclassification above. The rest of the tool behaves as described in my runs.Environment: NVIDIA GeForce RTX 5090 driver 32.0.16.1088, Windows 11 25H2 build 26200.9974, MSVC 19.52.37029, CTest 4.3.1, Python 3.12.10, debug layer off.
CI:
Build and test on Windows,Assemble and translate gfx1013 fixturesandRun platform-independent Python checks on Linuxpass onec324f73.This reply was AI-assisted.
@lambirou on GitHub · 2026-11-27 22:10 UTC · original
Review update (2026-11-27,
7c24b8f3)pigalot's
notrunfinding is fixed. Anotrunrow is now a skip only when its CTest skipped message starts withSKIP_RETURN_CODEorSKIP_REGULAR_EXPRESSION. Missing executables, missing configurations and disabled tests are failures with the CTest message as the detail. A nonzero CTest exit with zero failed rows also returns 1.The fake CTest now covers a missing executable (
Unable to find executable, expected FAIL) and a nonzero CTest exit with every row passing (expected exit 1 with the diagnostic).startup_ui_regression_matrix_checkanddocs_links_checkpass (103 files, 593 links). CI is running on7c24b8f3.@lambirou on GitHub · 2026-11-27 22:19 UTC · original
@pigalot the
notrunclassification and nonzero-exit controls are fixed on7c24b8f3; the fake CTest now coversUnable to find executable. Could you re-review?@pigalot on GitHub · 2026-11-27 22:25 UTC · original · approved these changes
Retested
7c24b8f3integrated overmainf6206217(treecc2ae01a). The merge is clean andgit diff --cached --check origin/mainis clean.My earlier finding (
notruncounted as a skip): addressed._case_statusnow treats anotrunrow as a skip only when its message starts withSKIP_RETURN_CODEorSKIP_REGULAR_EXPRESSION. Any othernotrunis a fail, with CTest's message as the detail. A nonzero CTest exit with no failed row also exits 1. The new fake-CTest rows cover a missing executable and exit 8 with every row passing.Real CTest, not the fake. I classified the JUnit file CTest 4.3.1 writes for a small toy project with the PR's
_case_status:SKIP_RETURN_CODE 77notrun,<skipped message="SKIP_RETURN_CODE=77">SKIP_REGULAR_EXPRESSIONmatchednotrun,<skipped message="SKIP_REGULAR_EXPRESSION_MATCHED">notrun,<skipped message="Unable to find executable">ec324f73)DISABLED TRUEdisabled, no childunrecognized CTest result status 'disabled')failrunThe repository repro from my last review.
3 passed, 0 skipped, 0 failed (3 selected)and exit 0.out/build/dev/startup_ui_texture_bands_check.exerenamed away, warp now givesCTest exit code: 8,2 passed, 0 skipped, 1 failed, and the rowstartup_ui_texture_bands_warp | FAIL | 0.000 s | Unable to find executable. It exits 1. Onec324f73the same run gave SKIP and exit 3.Mutants (each applied alone to
tools/startup/ui_regression_matrix.py, check rerun, file restored from its raw bytes,git diff --quietclean afterwards):notruncounted as a skip (theec324f73behaviour)--adapterfilter droppedSKIP_REGULAR_EXPRESSIONmarker droppedstatusclassified as passNon-blocking notes.
SKIP_REGULAR_EXPRESSIONprefix is needed: CTest writesSKIP_REGULAR_EXPRESSION_MATCHED. A fake row with that message would pin it.status="disabled", notnotrun, so it reaches the unknown-status branch. The result is the fail the docs promise. But that branch is now the one that handles disabled tests, and it is still untested. A fakedisabledrow would cover both that branch and the "unknown status as pass" survivor.docs/experiments/startup-ui-regression-matrix.mdlists disabled tests undernotrun. Saying they fail through the unrecognized-status rule would match what CTest writes.Verdict: approve on
7c24b8f3. This supersedes my changes-requested review onec324f73.Environment: NVIDIA GeForce RTX 5090 driver 32.0.16.1088, Windows 11 25H2 build 26200.9974, MSVC 19.52.37029, CTest 4.3.1, Python 3.12.10, debug layer off.
CI:
Build and test on Windows,Assemble and translate gfx1013 fixturesandRun platform-independent Python checks on Linuxpass on7c24b8f3.This reply was AI-assisted.