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

Open
github-bot wants to merge 1 commit from github-bot/gh-2489 into main AGit
Owner

@⁠microwave805 on GitHub · 2026-11-25 20:09 UTC · original
microwave805:tests-e2e-debug-layer-skip-format → main · +16 −1 · 1 files · 1 commits · open

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.
**@⁠microwave805** on GitHub · 2026-11-25 20:09 UTC · [original](https://github.com/xcl-dev/xcl/pull/2489) `microwave805:tests-e2e-debug-layer-skip-format` → `main` · +16 −1 · 1 files · 1 commits · open `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)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:31:58 +00:00
Author
Owner

@⁠SlopTart on GitHub · 2026-11-25 20:52 UTC · original

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.

**@⁠SlopTart** on GitHub · 2026-11-25 20:52 UTC · [original](https://github.com/xcl-dev/xcl/pull/2489#issuecomment-7174295920) `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.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 20:53 UTC · original

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

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 20:53 UTC · [original](https://github.com/xcl-dev/xcl/pull/2489#issuecomment-7174318860) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
Author
Owner

@⁠RavenCurseBurg on GitHub · 2026-11-25 23:36 UTC · original · edited 2026-11-25 23:42 UTC

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.

**@⁠RavenCurseBurg** on GitHub · 2026-11-25 23:36 UTC · [original](https://github.com/xcl-dev/xcl/pull/2489#issuecomment-7177803299) · edited 2026-11-25 23:42 UTC 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](https://github.com/RavenCurseBurg/xcl/blob/fb79813bbf36b93909ce22d0540180420f0545e7/verification/replay_debug_layer_skips.py). 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.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2489/head:github-bot/gh-2489'
git switch 'github-bot/gh-2489'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2489'
git switch 'github-bot/gh-2489'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2489'
git switch 'github-bot/gh-2489'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2489'
git switch 'main'
git merge --squash 'github-bot/gh-2489'
git switch 'main'
git merge --ff-only 'github-bot/gh-2489'
git switch 'main'
git merge 'github-bot/gh-2489'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.