Tests: verify each split worker PSO by its translated DXIL key #3219

Closed
andrewDoing wants to merge 1 commit from upstream-pr/3219 into main
andrewDoing commented 2026-11-28 21:11:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by andrewDoing on 2026-11-28T21:11:27Z.


The preparation-worker test from #3213 could pass after losing a split piece. A whole shader built with the chain root also ends in .chain.pso, and an omitted build reduces both the worker's reported total and the number of files. Matched failure control.

This test describes main’s current startup policy. #3442 changes that policy intentionally. I applied this diff on top of f1574257 and confirmed that its exact artifact assertion fails because the new worker saves only the ABI whole. The companion test for #3442 keeps exact-key coverage and exercises a warm GPU dispatch. Compatibility check and companion commit

What is in it

  • The integration test translates its own compute fixture in an isolated process with the same wave-split setting, instruction limit and window count as the worker. It derives the expected filenames from each piece's DXIL and both whole-program root signatures, checks exact set equality, requires nonempty files, and checks the worker's build summary. Only crates/xcl/tests/gpu_compute_e2e.rs changes.

Tested

  • Rebased onto main bc2cbb72. On updated head 00ea0086, the focused a_preparation_worker_also_builds_a_split_programs_whole_form integration test passed on RTX 5070 with zero skips. The full workspace counts below are from the previous matched run.

  • Ryzen 7 5700X3D, NVIDIA RTX 5070 12 GB / 616.92, Windows 11 build 26300.10075, Rust 1.100.0 MSVC, DXC 1.8.2502.11, debug profile.

  • cargo test -p xcl --test gpu_compute_e2e a_preparation_worker_also_builds_a_split_programs_whole_form -- --exact --nocapture: 1 passed, 0 skips. The stock worker produced four distinct piece keys and the two whole-program keys.

  • With a local test mutation that omits the first piece from the worker build loop, the old assertion passed and the new assertion failed. The failure named the missing file a763cc36a950bff2-a8c-0.chain.pso. The submitted branch uses the stock worker.

  • cargo build --workspace --locked --offline passed. cargo test --workspace --locked --offline --no-fail-fast -- --test-threads=4 on c13479ce: 2,590 passed, 4 failed, 49 ignored. The four failures were NVIDIA DXIL fuzz batches 0–3 (#1905). The log reported 27 skips (21 wave64, three unsupported per-lane translations, two heap-window checks and one unavailable driver-cache option).

  • A separate clean-base run on beeb81be had the same 2,590 passes, the same four named failures, 49 ignored tests and 27 reported skips. Each run used an isolated build directory and writable DXIL cache.

  • The hosted Windows CI run passed at 00ea0086. The previous PR run and exact-base run both hit the pipeline-library shared-counter flake before reaching the integration target. The synchronization fix #3221 is now on main.

Regression run

Integration-test assertions only. No runtime or retail title run.

Not tested

AMD, Intel, Wine, and retail startup or performance.

AI use

OpenAI Codex investigated the false positive, implemented the test change, ran the controls and prepared the PR. GPT-6.2 Sol refreshed the branch, ran the RTX 5070 check, and updated this report.

<!-- greyfinch-sync:ivall/xcl:issue:5544612141 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3219). Originally posted by [andrewDoing](https://github.com/andrewDoing) on 2026-11-28T21:11:27Z. --- The preparation-worker test from #3213 could pass after losing a split piece. A whole shader built with the chain root also ends in `.chain.pso`, and an omitted build reduces both the worker's reported total and the number of files. [Matched failure control](https://github.com/xcl-dev/xcl/pull/3213#issuecomment-7245615645). This test describes main’s current startup policy. #3442 changes that policy intentionally. I applied this diff on top of `f1574257` and confirmed that its exact artifact assertion fails because the new worker saves only the ABI whole. The companion test for #3442 keeps exact-key coverage and exercises a warm GPU dispatch. [Compatibility check and companion commit](https://github.com/xcl-dev/xcl/pull/3442#issuecomment-7259972622) **What is in it** - The integration test translates its own compute fixture in an isolated process with the same wave-split setting, instruction limit and window count as the worker. It derives the expected filenames from each piece's DXIL and both whole-program root signatures, checks exact set equality, requires nonempty files, and checks the worker's build summary. Only `crates/xcl/tests/gpu_compute_e2e.rs` changes. **Tested** - Rebased onto main `bc2cbb72`. On updated head `00ea0086`, the focused `a_preparation_worker_also_builds_a_split_programs_whole_form` integration test passed on RTX 5070 with zero skips. The full workspace counts below are from the previous matched run. - Ryzen 7 5700X3D, NVIDIA RTX 5070 12 GB / 616.92, Windows 11 build 26300.10075, Rust 1.100.0 MSVC, DXC 1.8.2502.11, debug profile. - `cargo test -p xcl --test gpu_compute_e2e a_preparation_worker_also_builds_a_split_programs_whole_form -- --exact --nocapture`: 1 passed, 0 skips. The stock worker produced four distinct piece keys and the two whole-program keys. - With a local test mutation that omits the first piece from the worker build loop, the old assertion passed and the new assertion failed. The failure named the missing file `a763cc36a950bff2-a8c-0.chain.pso`. The submitted branch uses the stock worker. - `cargo build --workspace --locked --offline` passed. `cargo test --workspace --locked --offline --no-fail-fast -- --test-threads=4` on `c13479ce`: 2,590 passed, 4 failed, 49 ignored. The four failures were NVIDIA DXIL fuzz batches 0–3 (#1905). The log reported 27 skips (21 wave64, three unsupported per-lane translations, two heap-window checks and one unavailable driver-cache option). - A separate clean-base run on `beeb81be` had the same 2,590 passes, the same four named failures, 49 ignored tests and 27 reported skips. Each run used an isolated build directory and writable DXIL cache. - The [hosted Windows CI run](https://github.com/xcl-dev/xcl/actions/runs/46282074223) passed at `00ea0086`. The previous [PR run](https://github.com/xcl-dev/xcl/actions/runs/46190304830) and [exact-base run](https://github.com/xcl-dev/xcl/actions/runs/46187703752) both hit the pipeline-library shared-counter flake before reaching the integration target. The synchronization fix #3221 is now on main. **Regression run** Integration-test assertions only. No runtime or retail title run. **Not tested** AMD, Intel, Wine, and retail startup or performance. **AI use** OpenAI Codex investigated the false positive, implemented the test change, ran the controls and prepared the PR. GPT-6.2 Sol refreshed the branch, ran the RTX 5070 check, and updated this report.
throny commented 2026-11-30 20:18:59 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-30T20:18:59Z.


Closing: #3442 (30122062) changed the startup policy this test checks, as you noted; main's a_preparation_worker_keeps_a_split_programs_abi_whole checks the exact DXIL keys now. Checked against current main (ff0c364b), hunk by hunk. If something here is still missing on main, say so and reopen it, or ask and I will.

AI use: Claude Code (Claude Opus 5.5) checked this; part of the duplicate sweep on #3041.

<!-- greyfinch-sync:ivall/xcl:comment:7290723768 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3219#issuecomment-7290723768). Originally posted by [throny](https://github.com/throny) on 2026-11-30T20:18:59Z. --- Closing: #3442 (30122062) changed the startup policy this test checks, as you noted; `main`'s `a_preparation_worker_keeps_a_split_programs_abi_whole` checks the exact DXIL keys now. Checked against current `main` (`ff0c364b`), hunk by hunk. If something here is still missing on `main`, say so and reopen it, or ask and I will. AI use: Claude Code (Claude Opus 5.5) checked this; part of the duplicate sweep on #3041.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!3219
No description provided.