tests: fail when a configured shader sample cannot be read #135
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/137"
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 Nik3310 on 2026-11-23T14:48:53Z.
When
XCL_SAMPLE_RPFis set to a missing or unreadable path,gpu_pso_e2e::setupcurrently discards the read error and reports "XCL_SAMPLE_RPF not set – skipping", so the retail pipeline tests appear to pass. Keep skipping when the variable is absent, but fail with the configured path and the I/O error when reading an explicitly supplied sample fails. Read the variable withvar_osso a native path is not mistaken for an unset variable.Adds a regression test that launches one existing retail pipeline test in separate processes with the variable unset, pointing at a missing file, and pointing at a directory. This exercises the actual setup path without shared environment mutations or
OnceLockreuse and needs no GPU, DXC, or game data.Validation
484dd5799077a5297e58027f4a67a2c5e1c6b14b: it failed because the configured missing file returned success with the misleading skip message.cargo test --locked --offline --release -p xcl --test gpu_pso_e2e sample_pack_read_errors_fail_instead_of_skipping -- --exact --nocapturepasses.cargo build --locked --offline --release --workspacesucceeds.cargo test --locked --offline --release --workspace --no-fail-fast -- --test-threads=4: 561 passed, 0 failed, 39 ignored, including 2 explicit native-wave64 skips and tests that return early without external samples. AllXCL_SAMPLE_*variables were unset for the full run; no retail pack was tested.git diff --checkpasses.Windows 11 Pro build 26200, RTX 4060 driver 617.42, Rust 1.93.1 MSVC, SDK DXC 1.8.2502.11.
Related to the test-reporting discussion in #42. AI-assisted implementation and validation.
Imported from ivall/xcl. Originally posted by ivall on 2026-11-23T20:52:38Z.
Merged (main
2abc562) in place of #140 (same goal, smaller change). Checked on an RX 9070 (RDNA4) with the 11 PRs merged together on main38b05b7:cargo build --workspace && cargo test --workspace -- --test-threads=4- 547 unit tests passed, 0 failed (19 ignored); the integration and e2e tests passed too.