Skip to content

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

Closed
andrewDoing wants to merge 1 commit into
xcl-dev:mainfrom
andrewDoing:test/worker-split-artifact-keys
Closed

andrewDoing wants to merge 1 commit into
xcl-dev:mainfrom
andrewDoing:test/worker-split-artifact-keys

Conversation

@andrewDoing

@andrewDoing andrewDoing commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

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 (DXIL GPU fuzz tests reproducibly fail with E_OUTOFMEMORY on RTX 5060 #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 Tests: serialise the pipeline tests that store into the library builder #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.

@github-actions github-actions Bot added the area:tests Unit, integration, e2e tests, or testtitle label Nov 28, 2026
@throny

throny commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

Closing: #3442 (3012206) 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.

@throny throny added the duplicate This issue or pull request already exists label Nov 30, 2026
@throny throny closed this Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:tests Unit, integration, e2e tests, or testtitle duplicate This issue or pull request already exists

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants