Scripts: report shader disassembly failures in layout checks #1079
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by broccolize on 2026-11-24T11:27:26Z.
The 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
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T14:15:35Z.
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
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T01:18:28Z.
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.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T08:38:52Z.
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!
Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-26T00:06:33Z.
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.
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:44:56Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by broccolize on 2026-11-30T11:22:16Z.
This makes the layout checker report disassembler failures and stop on the first failed input. The tested patch is awaiting maintainer review.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:47:41Z.
Triage (#1607) – head
d17e8d9#2151 also reports
xcl disasmfailures in scripts/re/check_layout.py, as part of a larger CLI rewrite: it counts the failures, keeps scanning and exits 1. This PR stops at the first failure with xcl's exit code. #1196 rewrites the same line without checking the return code.No problems found in the diff.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.