Tests: verify worker whole-form cache artifacts #3213
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3213"
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 bmjask on 2026-11-28T20:26:34Z.
Mandatory launch preparation builds split pieces and the whole form directly, so it bypasses the older split-program status counter. The e2e test now verifies the persisted
.chain.psopiece blobs and the single whole.psoblob instead of parsing that counter's output.What is in it
crates/xcl/tests/gpu_compute_e2e.rs: verify worker whole-form preparation from driver-cache artifacts.Tested
cargo build --workspace: passed.cargo test -p xcl --test gpu_compute_e2e a_preparation_worker_also_builds_a_split_programs_whole_form -- --exact --test-threads=1: 1 passed, 0 failed, 0 ignored.cargo test --workspace -- --test-threads=4: 2,594 passed, 0 failed, 49 ignored; 28 GPU capability skips reported (wave64, dxil.dll, heap windows, GPU_UPLOAD heaps, and unsupported per-lane instructions).Not tested
AI use
Imported from ivall/xcl. Originally posted by andrewDoing on 2026-11-28T20:53:14Z.
The merged test passes on RTX 5070, but its artifact count can also pass when the worker omits a required split piece. I checked
mainatbeeb81bewith the stock test's own synthetic input, a fresh directory per invocation, on Windows 11 / Ryzen 7 5700X3D / RTX 5070, driver 616.92.46f6c4fe8742e464-944-0.pso(ordinary root) and46f6c4fe8742e464-944-0.chain.pso(chain root). The current suffix check counts the latter as a fifth piece.prepare_compiled_computewithchain.pieces.iter().skip(1). The required filea763cc36a950bff2-a8c-0.chain.psodisappeared. The worker produced five files and the existing assertions still passed, 1/1 with zero skips, because the reported total and the on-disk count both decreased by one. The unmodified run also passed 1/1.driver_cache::name_forto eachdispatch_chain.piecesentry. The other three piece hashes were83c5cef1f9880963,327808a3ed55e91e, and87972b44e38c4c21.A regression assertion can compare the actual filename set against the expected piece keys plus both whole-program root variants. That would catch a missing piece even when the worker's own total agrees with the files it created. This is a test-coverage finding; the unmodified worker emitted every expected artifact. No retail workload or timing measurement.
AI assistance: OpenAI Codex (GPT-6) prepared the isolated controls, ran them, and wrote this report.