CLI: report shader worker initialization failures #1402
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1403"
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 Marvisak/VIctory. Originally posted by Luizbc2 on 2026-11-24T17:46:38Z.
Summary
When
victory translate --validateor--pipelinespasses its initial check but a worker fails to initialize its checker, that worker can silently skip the requested check. The command still exits successfully and prints a tally that looks complete.Keep the initial checker for the first worker, initialize additional checkers as needed, and reuse them across input files. If initialization fails, return the worker number and underlying DXIL or D3D12 error before printing the final tally.
Reproduction
Windows 11 x64 (build 26200), Rust 1.98.1, base
ffe310e. The fixture generates two no-op compute shaders and builds a stand-in DXIL validator that succeeds once and returnsE_FAILon later initialization attempts. Save the two sources below in a scratch directory and run from the repository root.ffe310estarting shader worker 2andDxcCreateInstance(validator) failed: 0x80004005. No final tally was printed.Synthetic fixture sources
Testing
dxil.dllandVICTORY_WARP=1, ran both generated compute files with--validate --pipelines. Both--jobs 1and--jobs 2emitted 4 shaders, validated all 4, and created all 4 pipelines.--jobs 2initialized exactly two validators total across both files.cargo test --workspace --locked --offline --no-fail-fastreturned 341 passed, 6 ignored, and one pre-existing failure inv_med3_f32_matches_rdna2_with_nanon Intel Iris Xe (driver 31.0.101.5333). The same test fails on the base revision and passes with the shader change from #110. With that change temporarily applied, the workspace suite returned 342 passed and 6 ignored.rustfmt --checkfor the changed file andgit diff --checkpassed.All shader inputs were generated for these tests. AI-assisted with Codex.
Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-24T17:56:57Z.
Review: APPROVED
Tested merged cleanly onto
main(ffe310e) on Windows 11 x64 (Rust 1.98.1 MSVC):cargo test -p victory: 1 passed, 0 failedcargo clippy -p victory --all-targets: 0 warningscargo xtask policy: okClean error reporting for shader worker initialization failures. Approving.
AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:25:48Z.
Automated triage for the maintainers.
Needs rebase. This pull request conflicts with
main(conflicting:apps/victory/src/translate.rs). It will be reviewed once it is rebased onto the currentmain.Generated by Claude Code
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.