Tests: report missing XCL_SAMPLE_* data as SKIPPED instead of silently passing #1172
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by LANgmas on 2026-11-24T12:54:13Z.
Follow-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.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T13:11:29Z.
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.
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T08:00:22Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:01:00Z.
Triage (#1607) – head
98ca092No open or merged PR makes the same change (#2489 only reformats the debug-layer SKIPPED lines in
e2e.rs). Theskippedhelper writes straight tostd::io::stderr(), which libtest does not capture, the same waytexture_states.rsdoes on main, andscripts/test.ps1countsno XCL_SAMPLE_*skips apart from GPU skips.Minor:
gpu_pso_e2e.rs::setupnow prints both the oldprintln!line and the new SKIPPED line; the helper is copied into five files. The branch conflicts with main (scripts/test.ps1changed there).Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.