tests: report and count missing sample skips separately #140
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!140
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/140/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:58 UTC · original
Nik3310:fix/report-sample-skips→main· +128 −9 · 13 files · 1 commits · closed without mergingA no-sample test run reports green even though 28 tests return early for missing external data, including silent returns in
console_dlls_e2e,console_shadersandxg_oracle. Make those skips visible and count them separately from GPU capability skips.runner::skip_sample, which writesSKIPPED_SAMPLE <test>: <variable> not setdirectly to stderr so it survives libtest capture. It does not applyXCL_REQUIRE_GPU: requiring a GPU must not require game files.Noneresults in the console DLL/XG helpers report on each caller, not just the first test to initialize the cache. Existing captured messages are retained.scripts/test.ps1, grouped by missing variable, and state that they remain included in libtest passed totals. Update the README.Validation
On unmodified upstream base
484dd5799077a5297e58027f4a67a2c5e1c6b14bplus this patch, Windows 11 Pro 26200 / RTX 4060 driver 617.42 / Rust 1.93.1 MSVC / SDK DXC 1.8.2502.11:scripts/test.ps1run (debug, default capture, four test threads): 561 passed, 0 failed, 40 ignored, exit 0. The ignored count includes one new deliberately ignored subprocess fixture. AllXCL_SAMPLE_*variables unset; no retail files used.sample_skipsintegration test checks that the marker is visible without--nocaptureand still succeeds withXCL_REQUIRE_GPU=wave64,mesh.scripts/test-reporting.tests.ps1passes all four scenarios on PowerShell 7.6.9 and Windows PowerShell 5.1: separate counts, preserved test-failure exit code, early stop on build failure, and no summary when there are no markers. It uses fake Cargo output and needs no GPU or build.git diff --checkpasses.The real runner ends with:
Related to #42. This reports missing samples; the separate configured-path read-error fix is #137. The two branches merge cleanly with
git merge-tree. AI-assisted implementation and validation.@YeetSkillet on GitHub · 2026-11-23 19:12 UTC · original
Tested
3faff378on Windows 10 22H2. All four cases inscripts/test-reporting.tests.ps1passed in both Windows PowerShell 5.1 and PowerShell 7.6.9.I found a case where neither skip summary appears. I ran
& .\scripts\test.ps1 *> test.logwith a nativecargo.exestand-in that writes a build progress line to stderr and returns 0. Windows PowerShell 5.1 raisedNativeCommandErrorand exited 1 before invokingcargo test. PowerShell 7.6.9 reached the tests. The PR fixture uses a PowerShell function for Cargo, so it doesn't exercise native stderr redirection.I verified this change in
scripts/test.ps1.I removed the later duplicate preference assignment and used
& $cargofor the existing test pipeline as well. Both shells then printed both summaries on success and preserved exit codes0(success),17(build failure) and101(test failure). A missing Cargo exited1. These checks used synthetic Cargo output. Tested with Codex.@ivall on GitHub · 2026-11-23 20:52 UTC · original
Closing in favour of #137 (merged), which has the same goal with a smaller change. The PowerShell 5.1 issue is fixed by #185 (merged). Thanks!
Pull request closed