xcl run: parse XML attributes with either quote style #1120

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

@⁠anakatt on GitHub · 2026-11-24 12:02 UTC · original
anakatt:launcher/xml-attribute-quotes → main · +38 −13 · 2 files · 1 commits · open

I parse complete quoted attributes in MicrosoftGame.config instead of searching only for Name="value". Valid single-quoted attributes and whitespace around = previously lost the executable list and game identity; > inside a quoted display name also ended the search too early.

What is in it

  • launcher.rs: quote-aware attribute scanning, preserving entity decoding and ignoring attribute-like text inside other values.
  • File-backed regression for executable paths, identity and display names; README syntax note.

Tested

I ran debug tests on Windows 11 Pro ARM64 10.0.26100.1742 in UTM (4 GiB RAM, virtual virt-10.0 CPU, Red Hat VirtIO GPU DOD), using Rust 1.100.0 x86_64-pc-windows-msvc and Visual Studio 2022 Build Tools. The guest used main 47efa2ecea0a12934719ae69b81930cf02a4b1c3 with the launcher source changes committed as 2d14ae1996bb3c50f3b1a121402c6666a272aad0.

  • Before the fix, cargo test --locked -p xcl --lib launcher::tests::game_config_attributes_accept_xml_quotes_and_spacing -- --exact: 0 passed, 1 failed, 0 ignored, 719 filtered out; single-quoted attributes returned no executable or identity.
  • After the fix, cargo test --locked -p xcl --lib launcher -- --test-threads=4: 12 passed, 1 failed, 0 ignored, 707 filtered out. The new regression passed. The unchanged console_detection test failed: this VM's System32\notepad.exe has PE machine 0xAA64 (ARM64), while console_imports accepts only x64 PE files.
  • cargo test --locked -p xcl --lib manifest -- --test-threads=4: 5 passed, 0 failed, 0 ignored, 715 filtered out.

Neither run printed SKIPPED.

Not tested

I have not run the full workspace suite, native x64 Windows hardware, D3D12 GPU execution or a real game. The launcher test group is not fully passing in this ARM64 VM; I have not changed or suppressed its architecture-specific assertion.

Regression run

Not run. This remains a draft pending the required clean-head and main real-title xcl-smoke blocks with the same title and duration. Unit tests do not replace those runs.

AI use

I used omp (openai-codex/gpt-6-astra) to investigate, implement the fix and regression, run the Windows tests, and prepare this PR.

**@⁠anakatt** on GitHub · 2026-11-24 12:02 UTC · [original](https://github.com/xcl-dev/xcl/pull/1120) `anakatt:launcher/xml-attribute-quotes` → `main` · +38 −13 · 2 files · 1 commits · open I parse complete quoted attributes in `MicrosoftGame.config` instead of searching only for `Name="value"`. Valid single-quoted attributes and whitespace around `=` previously lost the executable list and game identity; `>` inside a quoted display name also ended the search too early. ## What is in it - `launcher.rs`: quote-aware attribute scanning, preserving entity decoding and ignoring attribute-like text inside other values. - File-backed regression for executable paths, identity and display names; README syntax note. ## Tested I ran debug tests on Windows 11 Pro ARM64 10.0.26100.1742 in UTM (4 GiB RAM, virtual `virt-10.0` CPU, Red Hat VirtIO GPU DOD), using Rust 1.100.0 `x86_64-pc-windows-msvc` and Visual Studio 2022 Build Tools. The guest used main `47efa2ecea0a12934719ae69b81930cf02a4b1c3` with the launcher source changes committed as `2d14ae1996bb3c50f3b1a121402c6666a272aad0`. - Before the fix, `cargo test --locked -p xcl --lib launcher::tests::game_config_attributes_accept_xml_quotes_and_spacing -- --exact`: **0 passed, 1 failed, 0 ignored**, 719 filtered out; single-quoted attributes returned no executable or identity. - After the fix, `cargo test --locked -p xcl --lib launcher -- --test-threads=4`: **12 passed, 1 failed, 0 ignored**, 707 filtered out. The new regression passed. The unchanged `console_detection` test failed: this VM's `System32\notepad.exe` has PE machine `0xAA64` (ARM64), while `console_imports` accepts only x64 PE files. - `cargo test --locked -p xcl --lib manifest -- --test-threads=4`: **5 passed, 0 failed, 0 ignored**, 715 filtered out. Neither run printed `SKIPPED`. ## Not tested I have not run the full workspace suite, native x64 Windows hardware, D3D12 GPU execution or a real game. The launcher test group is not fully passing in this ARM64 VM; I have not changed or suppressed its architecture-specific assertion. ## Regression run Not run. This remains a draft pending the required clean-head and main real-title `xcl-smoke` blocks with the same title and duration. Unit tests do not replace those runs. ## AI use I used omp (`openai-codex/gpt-6-astra`) to investigate, implement the fix and regression, run the Windows tests, and prepare this PR.
MicrosoftGame.config attributes were recognized only as Name="value"
and the first > ended a tag even inside an attribute value. Valid XML
using single quotes or whitespace around = therefore lost the game
identity and executable paths.

Scan complete quoted attributes, preserving entity decoding and ignoring
attribute-like text inside other values. Add a file-backed regression and
document the accepted syntax.

Windows 11 ARM64 VM, x64 MSVC rustc 1.100.0: the regression failed before
the fix. Afterward launcher tests reported 12 passed, 1 failed, 0 ignored;
manifest-filtered tests reported 5 passed, 0 failed, 0 ignored. The unchanged
console_detection test fails because System32/notepad.exe is ARM64
(PE machine 0xAA64), while console_imports accepts x64 PE files only.
Native x64, full GPU suite and title smoke runs remain outstanding.

Assisted-by: omp (openai-codex/gpt-6-astra)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:44:06 +00:00
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-24 14:25 UTC · original

Full-suite run, since this PR has no test report yet. Tested exact head 2d14ae1 (on its base 47efa2e).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 742 passed, 0 failed, 41 ignored. SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • The new tests ran and passed: game_config_attributes_accept_xml_quotes_and_spacing.

Not tested

  • AMD, a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-24 14:25 UTC · [original](https://github.com/xcl-dev/xcl/pull/1120#issuecomment-7134348095) Full-suite run, since this PR has no test report yet. Tested exact head `2d14ae1` (on its base `47efa2e`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4`: **742 passed, 0 failed, 41 ignored**. SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - The new tests ran and passed: `game_config_attributes_accept_xml_quotes_and_spacing`. **Not tested** - AMD, a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Author
Owner

@⁠Toons29 on GitHub · 2026-11-25 03:12 UTC · original

Regression run of 2d14ae19 on the retail title, for this PR's Regression run section. Both blocks are from scripts/smoke.ps1 as printed, not edited: main on 4178e888, this PR on its head commit with no uncommitted changes, same title and time.

xcl-smoke v1
commit: 4178e888c0b5be50a2887eda45cdb832763b68a4
gpu: AMD Radeon RX 9070
title: game.exe
seconds: 60
exit: 0x0
frames shown: 1618 (PresentX 1618)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 14831 MB
xcl-smoke v1
commit: 2d14ae1996bb3c50f3b1a121402c6666a272aad0
gpu: AMD Radeon RX 9070
title: game.exe
seconds: 60
exit: 0x0
frames shown: 1630 (PresentX 1630)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14813 MB

Against the limits in CONTRIBUTING.md: 101 % of main's frames, 100 % of its peak commit, no crash, no device removal.

AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, cargo build --release -p xcl, 60 s, XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.

AI use: Claude Code (Claude Opus 5.5) built both trees and ran scripts/smoke.ps1; I checked the blocks before posting.

**@⁠Toons29** on GitHub · 2026-11-25 03:12 UTC · [original](https://github.com/xcl-dev/xcl/pull/1120#issuecomment-7151690755) Regression run of `2d14ae19` on the retail title, for this PR's **Regression run** section. Both blocks are from `scripts/smoke.ps1` as printed, not edited: `main` on `4178e888`, this PR on its head commit with no uncommitted changes, same title and time. ``` xcl-smoke v1 commit: 4178e888c0b5be50a2887eda45cdb832763b68a4 gpu: AMD Radeon RX 9070 title: game.exe seconds: 60 exit: 0x0 frames shown: 1618 (PresentX 1618) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 14831 MB ``` ``` xcl-smoke v1 commit: 2d14ae1996bb3c50f3b1a121402c6666a272aad0 gpu: AMD Radeon RX 9070 title: game.exe seconds: 60 exit: 0x0 frames shown: 1630 (PresentX 1630) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14813 MB ``` Against the limits in CONTRIBUTING.md: 101 % of `main`'s frames, 100 % of its peak commit, no crash, no device removal. AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, `cargo build --release -p xcl`, 60 s, `XCL_NETWORK=0`. This is a regression check only: it does not show whether the run reaches the code this PR changes. AI use: Claude Code (Claude Opus 5.5) built both trees and ran `scripts/smoke.ps1`; I checked the blocks before posting.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 08:15 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 08:15 UTC · [original](https://github.com/xcl-dev/xcl/pull/1120#issuecomment-7156813126) 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!
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/1120/head:github-bot/gh-1120'
git switch 'github-bot/gh-1120'

Merge

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