Skip to content

Tests: format debug-layer SKIPPED lines in e2e.rs for scripts/test.ps1 - #2489

Open
microwave805 wants to merge 1 commit into
xcl-dev:mainfrom
microwave805:tests-e2e-debug-layer-skip-format
Open

microwave805 wants to merge 1 commit into
xcl-dev:mainfrom
microwave805:tests-e2e-debug-layer-skip-format

Conversation

@microwave805

Copy link
Copy Markdown

scripts/test.ps1 counts skipped tests using ^SKIPPED \S+: (.+)$, which requires a single non-whitespace token before : (matching runner::skip_test and texture_states.rs). In crates/xcl/tests/e2e.rs, title_under_the_debug_layer printed SKIPPED the title under the debug layer (dred: {dred}): no {dll}, whose spaces before : caused scripts/test.ps1 to silently drop those skips from its summary on machines without d3d12SDKLayers.dll or xgameruntime.dll.

What is in it

  • Updates crates/xcl/tests/e2e.rs (title_under_the_debug_layer) to emit SKIPPED <test>: no <dll> using the current test thread name (falling back to title_under_the_debug_layer), matching runner::skip_test and scripts/test.ps1.
  • Adds a regression test debug_layer_skip_line_matches_test_ps1_pattern verifying the SKIPPED \S+: <reason> format.

Tested

  • Hardware / toolchain: Windows 11 Pro (build 22631), AMD Ryzen 5 5600X, NVIDIA GeForce RTX 3070 (Ampere, 8 GB, driver 32.0.16.1742, wave32 + SM 6.6, no native wave64), DXC 1.9.2602.17 (Windows SDK 10.0.26100.0), Rust 1.100.0 (stable-x86_64-pc-windows-msvc), debug profile, tested on commit 9a85479b74c6.
  • cargo test -p xcl --test e2e -- --nocapture: 5 passed, 0 failed, 0 ignored.
  • .\scripts\test.ps1 (with XCL_DXIL_CACHE=%TEMP%\xcl-test-dxil-cache): 1418 passed, 0 failed, 46 ignored (26 SKIPPED lines on this adapter: 21 no wave64, 3 per-lane wave32 unsupported-op skips, 1 no heap windows, 1 cannot disable the driver cache (Windows Developer Mode is required)).

Regression run
Not needed: test-only change under crates/xcl/tests/ (no runtime files modified).

Not tested

  • Live skip execution on a Windows host lacking d3d12SDKLayers.dll or xgameruntime.dll (both DLLs are installed on this host, so both debug-layer e2e tests ran to completion; the skip formatting helper is verified by debug_layer_skip_line_matches_test_ps1_pattern).
  • XCL_SAMPLE_* game-data tests (no unpacked Xbox Series game files available).

AI use

  • Tool and model: Antigravity (Gemini 4 Neon).
  • What it did: authored the fix and regression test in crates/xcl/tests/e2e.rs, ran the targeted and full workspace test suites on commit 9a85479b74c6, and drafted this PR description.

`scripts/test.ps1` counts skipped tests with `^SKIPPED \S+: (.+)$`,
expecting a single non-whitespace test identifier before `: ` (as
`runner::skip_test` and `texture_states.rs` emit).

`crates/xcl/tests/e2e.rs` printed
`SKIPPED the title under the debug layer (dred: {dred}): no {dll}` when
`d3d12SDKLayers.dll` or `xgameruntime.dll` was absent, which contains
spaces before `:` and was silently missed by `scripts/test.ps1`'s
skipped-test summary.

Use the current test thread name (matching `runner::skip_test`) in
`SKIPPED <test>: no <dll>` and add a regression test for the format.

Assisted-by: Antigravity (Gemini 4 Neon)
@SlopTart

Copy link
Copy Markdown

gpu_ suite (cold cache): 164 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR.

@DavidM1911

Copy link
Copy Markdown
Contributor

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

Thanks!

@throny throny added the off-goal Does not bear on the current goal (world loading); waits until it is reached label Nov 25, 2026
@RavenCurseBurg

RavenCurseBurg commented Nov 25, 2026 •

Copy link
Copy Markdown

I replayed the parent and PR message formats through the actual scripts/test.ps1 from 9a85479b74c66dd1b8b241dbee79630c49d6246f. A native Cargo stand-in wrote to stderr using the two test-thread names and DLL names taken from e2e.rs. Each replay included a fallback thread name and an unrelated no wave64 message as a control.

Input format Skip summary in both Windows shells
Parent 6d051da Only 1 (no wave64)
PR 9a85479 3 (no d3d12SDKLayers.dll), 2 (no xgameruntime.dll), 1 (no wave64)

All six input lines appeared in the raw log in both cases. Both summaries were identical for child exit 0 and 101, and the runner returned the original exit code in all eight runs. Standalone replay script. From a checkout containing this PR and its parent, run python -B verification/replay_debug_layer_skips.py from that fork commit.

Windows 11, Core i7-13700, Windows PowerShell 5.1 and PowerShell 7.6.9, Python 3.14.3. The test replays the formatted Rust messages. It does not execute the Rust e2e binary or remove either system DLL. OpenAI Codex (GPT-6) prepared the script and ran it.

rootw0rm pushed a commit to rootw0rm/xcl that referenced this pull request Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

off-goal Does not bear on the current goal (world loading); waits until it is reached

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants