Scripts: report shader disassembly failures in layout checks #1088
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1088
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1088"
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?
@broccolize on GitHub · 2026-11-24 11:27 UTC · original
broccolize:tooling/layout-disasm-errors→main· +40 −1 · 2 files · 1 commits · openThe shader layout checker used the disassembler’s stdout even when the child failed. That could produce a successful process exit and a zero-count summary. Report the file and disassembler error and propagate the failure.
What is in it
xcl disasmbefore inspecting its output.Tested
Clean head
d17e8d946753f8bb679d2045590389fbec9a406c. Windows 11 build 26300, Intel Core i5-10300H, NVIDIA GeForce GTX 1650 driver 32.0.16.1714, Rust 1.100.0 MSVC, debug.cargo build --locked --workspacepassed.cargo test --locked --workspace -- --test-threads=4 --show-outputreported 741 passed, 0 failed, 41 ignored.python -B -m unittest discover -s scripts -p test_check_layout.pypassed.statistics_name_each_frames_origin_and_rescheduled_handles_outlive_the_clock_tick. The reported counts are from the full rerun.Not tested
Layout checks on extracted retail shaders.
AI use
Codex implemented the change, ran verification
@futurepro62 on GitHub · 2026-11-24 14:15 UTC · original
Tested exact head
d17e8d9, script tests only, since this PR has no test report yet.Tested
python -m pytest scripts/test_check_layout.pyat the head: 1 passed.930e8b4): 1 failed:test_disassembler_failure_stops_the_scan. So the new test catches the problem the PR fixes.check_layout.py(intocheck_directory()) and does not checkxcl disasm's exit code, so the two conflict (git merge-treereports a conflict) and whichever lands second needs this check carried over.Not tested
AI use
@JJAutoCompare on GitHub · 2026-11-25 01:18 UTC · original
Tested
Clean detached worktree at PR head
d17e8d946753f8bb679d2045590389fbec9a406c.git status --porcelain=v1 --untracked-files=allwas empty before and after testing. Windows 11 Enterprise Evaluation 25H2 x64 (build 26200.9974), AMD Ryzen 7 3800X, portable CPython 3.13.7 x64.python -B -m unittest discover -s scripts -p test_check_layout.py -vpassed 1 test, with 0 failed, 0 ignored, and 0 skipped.python -B L:/XclTooling/pr1088-d17e8d9/verify_cli.pyranpython -B scripts/re/check_layout.py <synthetic-dir>in a separate process for each of three fixture directories. A standalone stub at the ignoredtarget/debug/xcl.exepath supplied synthetic disassembly and recorded which files it received. All 3 cases passed, with 0 failed, 0 ignored, and 0 skipped.loads on parameter boundaries: 1, off: 0on stdout.Not tested
The real
xcl disasmexecutable, retail shaders or game assets, the Cargo workspace build and tests, GPU execution, and CI.AI use
Codex (gpt-6.2-sol) wrote the temporary fixtures and harness, ran the tests, and wrote this report.
@DavidM1911 on GitHub · 2026-11-25 08:38 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: 1038 passed, 1 failed in one parallel run; the failing test passes on a single-threaded rerun (1039/0). Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.Thanks!
@RavenCurseBurg on GitHub · 2026-11-26 00:06 UTC · original · edited 2026-11-26 00:13 UTC
On
d17e8d946753f8bb679d2045590389fbec9a406c, I compared this checker with #2151 ataa825c088e65db380f67a112e0474e56ea841b6ausing two synthetic DXBC files and a native disassembler stand-in. It returned 23 on the first file in four cases: stderr only, stdout only, both streams, and neither. This PR reported the filename and exit code, preferred stderr when both were present, relayed stdout when it was the only diagnostic, and stopped before the second file in all four cases. With two successful results it checked both loads.python -B -m unittest discover -s scripts -p "test_*.py"on this head passed 10/10.#2151 continues scanning after an error and returns an aggregate status of 1. Its current head drops a stdout-only diagnostic. This one-line follow-up and regression assertion on #2151 preserve that message while retaining batch semantics. I ran the five cases on both PRs and again on the follow-up (15 native CLI runs). Windows 11, Core i7-13700, Python 3.14.3; synthetic inputs only. No real disassembly, retail shader, or GPU run. OpenAI Codex (GPT-6) wrote the fixtures and follow-up and ran the checks.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.