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

Open
microwave805 wants to merge 1 commit from upstream-pr/2489 into main
microwave805 commented 2026-11-25 20:09:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by microwave805 on 2026-11-25T20:09:14Z.


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.
<!-- greyfinch-sync:ivall/xcl:issue:5498367199 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2489). Originally posted by [microwave805](https://github.com/microwave805) on 2026-11-25T20:09:14Z. --- `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.
SlopTart commented 2026-11-25 21:05:25 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-25T20:52:04Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7174295920 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2489#issuecomment-7174295920). Originally posted by [SlopTart](https://github.com/SlopTart) on 2026-11-25T20:52:04Z. --- `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 commented 2026-11-25 21:05:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T20:53:04Z.


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!

<!-- greyfinch-sync:ivall/xcl:comment:7174318860 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2489#issuecomment-7174318860). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T20:53:04Z. --- 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!
RavenCurseBurg commented 2026-11-26 00:05:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-25T23:36:39Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7177803299 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2489#issuecomment-7177803299). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T23:36:39Z. --- 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.
github-actions[bot] commented 2026-11-29 20:44:52 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:44:52Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7262325680 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2489#issuecomment-7262325680). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T20:44:52Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 08:10:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:10:48Z.


Triage (#1607) – head 9a85479

On main, title_under_the_debug_layer prints SKIPPED the title under the debug layer (dred: ...): no <dll>. That line does not match scripts/test.ps1's ^SKIPPED \S+: (.+)$ (there is a space before the colon), so the skip is never counted. This PR prints SKIPPED <test name>: no <dll>, which matches. The new test checks debug_layer_skip_line and not the call site's thread-name lookup. No other open PR changes this line.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7304977524 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2489#issuecomment-7304977524). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:10:48Z. --- **Triage (#1607)** – head 9a85479 On main, `title_under_the_debug_layer` prints `SKIPPED the title under the debug layer (dred: ...): no <dll>`. That line does not match `scripts/test.ps1`'s `^SKIPPED \S+: (.+)$` (there is a space before the colon), so the skip is never counted. This PR prints `SKIPPED <test name>: no <dll>`, which matches. The new test checks `debug_layer_skip_line` and not the call site's thread-name lookup. No other open PR changes this line. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2489:upstream-pr/2489'
git switch 'upstream-pr/2489'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/2489'
git switch 'upstream-pr/2489'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2489'
git switch 'upstream-pr/2489'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2489'
git switch 'main'
git merge --squash 'upstream-pr/2489'
git switch 'main'
git merge --ff-only 'upstream-pr/2489'
git switch 'main'
git merge 'upstream-pr/2489'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2479
No description provided.