Tests: xcl inspect reads the test title's console imports #906

Open
Koro4e wants to merge 1 commit from upstream-pr/912 into main
Koro4e commented 2026-11-24 08:07:05 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Koro4e on 2026-11-24T08:07:05Z.


xcl inspect had no end-to-end coverage. This runs it on the fake console title the repo already builds (xcl_testtitle.exe + testgame_mw.dll, same fixture as the xcl run e2e tests): a real x64 PE whose import table mixes console DLLs and Windows ones, with the game's DLL beside it for the game-DLL status.

Tests only - no code touched.

What is in it

  • crates/xcl/tests/e2e.rs: inspect_reports_the_fake_titles_console_imports - --json reports is_dll: false and the imports with their sources (one STUB, HLE (kernelx.dll) and HLE (xgameruntime.dll) entries present); the plain text mode recognizes the file as a console title ("Console game: yes (imports kernelx.dll, xgameruntime.dll)")

Tested

  • cargo test -p xcl --test e2e inspect_reports: 1 passed, 0 failed (the three existing tests in this file are untouched; this PR only appends a test)
  • the whole suite was not rerun on this PR: the GPU is busy with another process on this machine and this file's other tests draw through it. The last full-suite run on this machine, on main earlier today: cargo test --workspace --no-fail-fast -- --test-threads=1: 708 passed, 5 failed, 41 ignored, 17 test binaries; the 5 failures are the GPU tests' VRM/device-removed cascade on this 12 GiB RTX 3060 (driver 617.14), each passes when run on its own. Environmental, unrelated to this change.
  • Windows 11 build 26200, Rust 1.100.0 (stable-x86_64-pc-windows-msvc)

Regression run

  • not needed: no change to crates/xcl/src (the test calls the shipped xcl inspect through a fresh debug build)

Not tested

  • AMD GPUs; the retail title

AI use

  • AI-assisted: yes. Written with an AI agent (DeepAI Code) with GLM 5.3 Flash (Z.ai): found the gap, wrote the test and this description.
<!-- greyfinch-sync:ivall/xcl:issue:5468421093 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/912). Originally posted by [Koro4e](https://github.com/Koro4e) on 2026-11-24T08:07:05Z. --- `xcl inspect` had no end-to-end coverage. This runs it on the fake console title the repo already builds (`xcl_testtitle.exe` + `testgame_mw.dll`, same fixture as the `xcl run` e2e tests): a real x64 PE whose import table mixes console DLLs and Windows ones, with the game's DLL beside it for the game-DLL status. Tests only - no code touched. **What is in it** - crates/xcl/tests/e2e.rs: `inspect_reports_the_fake_titles_console_imports` - `--json` reports `is_dll: false` and the imports with their sources (one `STUB`, `HLE (kernelx.dll)` and `HLE (xgameruntime.dll)` entries present); the plain text mode recognizes the file as a console title ("Console game: yes (imports kernelx.dll, xgameruntime.dll)") **Tested** - `cargo test -p xcl --test e2e inspect_reports`: 1 passed, 0 failed (the three existing tests in this file are untouched; this PR only appends a test) - the whole suite was not rerun on this PR: the GPU is busy with another process on this machine and this file's other tests draw through it. The last full-suite run on this machine, on main earlier today: `cargo test --workspace --no-fail-fast -- --test-threads=1`: 708 passed, 5 failed, 41 ignored, 17 test binaries; the 5 failures are the GPU tests' VRM/device-removed cascade on this 12 GiB RTX 3060 (driver 617.14), each passes when run on its own. Environmental, unrelated to this change. - Windows 11 build 26200, Rust 1.100.0 (`stable-x86_64-pc-windows-msvc`) **Regression run** - not needed: no change to `crates/xcl/src` (the test calls the shipped `xcl inspect` through a fresh debug build) **Not tested** - AMD GPUs; the retail title **AI use** - AI-assisted: yes. Written with an AI agent (DeepAI Code) with GLM 5.3 Flash (Z.ai): found the gap, wrote the test and this description.
SlopTart commented 2026-11-24 10:04:47 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-24T09:34:44Z.


Linux / AMD RDNA3 datapoint.

Merged state: head fae817f onto main 09940bb, clean merge.

Full suite, cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 710 passed, 7 failed, 41 ignored; failures are the known Wine-lane set from my #42 rows. inspect console-imports tests green.

Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.

Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross x86_64-pc-windows-gnu, XCL_NETWORK=0, release profile, --test-threads=4. My Linux rows: #42 / #718.

AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7127606534 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/912#issuecomment-7127606534). Originally posted by [SlopTart](https://github.com/SlopTart) on 2026-11-24T09:34:44Z. --- Linux / AMD RDNA3 datapoint. **Merged state:** head `fae817f` onto main `09940bb`, clean merge. **Full suite, `cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4`:** **710 passed, 7 failed, 41 ignored**; failures are the known Wine-lane set from my #42 rows. inspect console-imports tests green. **Not tested:** retail titles (none here), Windows, RDNA4. Counts only, no game data. **Machine:** RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross `x86_64-pc-windows-gnu`, `XCL_NETWORK=0`, release profile, `--test-threads=4`. My Linux rows: #42 / #718. AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
DavidM1911 commented 2026-11-25 10:10:31 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T09:31:05Z.


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:7158437500 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/912#issuecomment-7158437500). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T09:31:05Z. --- 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!
github-actions[bot] commented 2026-11-28 20:19:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T20:19:21Z.


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:7245200843 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/912#issuecomment-7245200843). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T20:19:21Z. --- 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 04:29:17 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:29:17Z.


Triage (#1607) – head fae817f

No open or merged PR makes the same change. main's crates/xcl/tests/inspect_e2e.rs (#2211) and #1735 run xcl inspect on xcl.exe itself; this test is the only one that inspects the test title and checks the HLE (kernelx / xgameruntime) and STUB import statuses and the 'Console game: yes' line. No problems found in the diff.

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:7300783987 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/912#issuecomment-7300783987). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T04:29:17Z. --- **Triage (#1607)** – head fae817f No open or merged PR makes the same change. main's crates/xcl/tests/inspect_e2e.rs (#2211) and #1735 run `xcl inspect` on xcl.exe itself; this test is the only one that inspects the test title and checks the HLE (kernelx / xgameruntime) and STUB import statuses and the 'Console game: yes' line. No problems found in the diff. 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/912:upstream-pr/912'
git switch 'upstream-pr/912'

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/912'
git switch 'upstream-pr/912'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/912'
git switch 'upstream-pr/912'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/912'
git switch 'main'
git merge --squash 'upstream-pr/912'
git switch 'main'
git merge --ff-only 'upstream-pr/912'
git switch 'main'
git merge 'upstream-pr/912'
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!906
No description provided.