tests: fail when a configured shader sample cannot be read #137
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!137
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/137/head"
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?
@Nik3310 on GitHub · 2026-11-23 14:48 UTC · original
Nik3310:fix/sample-rpf-read-errors→main· +48 −1 · 1 files · 1 commits · merged 2026-11-23 20:51 UTCWhen
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.
@ivall on GitHub · 2026-11-23 20:52 UTC · original
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.