Tests: report missing XCL_SAMPLE_* data as SKIPPED instead of silently passing #1181
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!1181
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1181"
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?
@LANgmas on GitHub · 2026-11-24 12:54 UTC · original
LANgmas:sample-data-skip-reporting→main· +59 −5 · 6 files · 1 commits · openFollow-up to the skip-visibility discussion in #42, complementary to the GPU-capability reporting implemented by #51.
Sample-data-gated tests in
crates/xcl/tests/can return before exercising their intended checks when the correspondingXCL_SAMPLE_*variable is unset. On the tested RTX 3050 configuration, 29 such tests were counted asokwithout exercising their sample-data paths or producing visible per-test SKIPPED annotations.This change:
SKIPPED <test>: no XCL_SAMPLE_*directly to stderr for each missing-data gate.OnceLock-cached setup helpers.scripts/test.ps1, keeping these skips distinct from GPU-capability skips.XCL_REQUIRE_GPUbehavior: missing sample data is not a GPU capability failure.This is reporting, not native libtest skip status: the Rust test harness still reports normally returning tests as
ok; the stderr annotations and PowerShell summary make the unexecuted sample-data paths explicit.Tested
Windows 11 build 26300, NVIDIA RTX 3050 Laptop (driver 617.14), DXC 1.9.2602.17.
cargo build --workspace: PASS.scripts/test.ps1: exit code 0.XCL_SAMPLE_BCPACKinput entered the real decode path and failed meaningfully.Not tested
AI use
Implemented with Devin using SWE-2 Max as the AI coding model. Build and test commands were executed on the contributor's Windows machine, and the results were reviewed against the local logs.
@DavidM1911 on GitHub · 2026-11-24 13:11 UTC · original
Independent verification on current
main384f7f7(branch already contains it — clean).Machine: Windows 11, Ryzen 9 7900X; Rust stable MSVC, debug.
cargo test -p xcl --test xg_oracle: 6 passed, 0 failed, 12 ignored — the sample-gatedprint_*/texel_*tests now emitSKIPPED <test>: no XCL_SAMPLE_XGon stderr (visible in the run output) instead of silently passing;scripts/test.ps1already summarizes those lines.skipped()helper is applied consistently acrossbcpack_parity,console_dlls_e2e,console_shadersandgpu_pso_e2e.AI use: test runs by Devin (Cognition, SWE-2); no code changes.
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.