xcl run: keep dot-only title names below the data root #1164

Open
anakatt wants to merge 1 commit from upstream-pr/1173 into main
anakatt commented 2026-11-24 12:51:07 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by anakatt on 2026-11-24T12:51:07Z.


I send dot-only title names through the existing title fallback. The sanitizer previously preserved . and .., allowing the launcher to use the data root or its parent instead of a per-title subdirectory when creating configuration.

What is in it

  • launcher.rs: treat empty and dot-only sanitized names as the fallback case.
  • launcher_e2e.rs: run the actual CLI with isolated XCL_DATA_ROOT directories and check where xcl.toml is written. A deliberately missing executable stops each run before a game host starts.
  • README note explaining the title subfolder and fallback.

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), with Rust 1.100.0 x86_64-pc-windows-msvc and Visual Studio 2022 Build Tools. The guest used main 47efa2ecea0a12934719ae69b81930cf02a4b1c3 plus the Rust source changes committed as 107fd42a42ae61170b41a9c49b1aa425225fd45e.

cargo test --locked -p xcl --test launcher_e2e -- --test-threads=4:

  • Before the fix: 0 passed, 1 failed, 0 ignored, 0 filtered out; . wrote configuration directly in the data root.
  • After the fix: 1 passed, 0 failed, 0 ignored, 0 filtered out; no SKIPPED output. The regression covers normal, empty, ., .. and ... identities and preserves the normal package-identity folder.

Not tested

I have not run the full workspace suite, native x64 Windows hardware, D3D12 GPU execution or a real game. The CLI test verifies launcher filesystem effects before host startup; it is not a game-launch smoke run.

Regression run

Not run. This remains a draft pending the required real-title xcl-smoke blocks from main and this PR's clean head, with the same title and duration.

AI use

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

<!-- greyfinch-sync:ivall/xcl:issue:5472487228 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1173). Originally posted by [anakatt](https://github.com/anakatt) on 2026-11-24T12:51:07Z. --- I send dot-only title names through the existing `title` fallback. The sanitizer previously preserved `.` and `..`, allowing the launcher to use the data root or its parent instead of a per-title subdirectory when creating configuration. ## What is in it - `launcher.rs`: treat empty and dot-only sanitized names as the fallback case. - `launcher_e2e.rs`: run the actual CLI with isolated `XCL_DATA_ROOT` directories and check where `xcl.toml` is written. A deliberately missing executable stops each run before a game host starts. - README note explaining the title subfolder and fallback. ## 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), with Rust 1.100.0 `x86_64-pc-windows-msvc` and Visual Studio 2022 Build Tools. The guest used main `47efa2ecea0a12934719ae69b81930cf02a4b1c3` plus the Rust source changes committed as `107fd42a42ae61170b41a9c49b1aa425225fd45e`. `cargo test --locked -p xcl --test launcher_e2e -- --test-threads=4`: - Before the fix: **0 passed, 1 failed, 0 ignored**, 0 filtered out; `.` wrote configuration directly in the data root. - After the fix: **1 passed, 0 failed, 0 ignored**, 0 filtered out; no `SKIPPED` output. The regression covers normal, empty, `.`, `..` and `...` identities and preserves the normal package-identity folder. ## Not tested I have not run the full workspace suite, native x64 Windows hardware, D3D12 GPU execution or a real game. The CLI test verifies launcher filesystem effects before host startup; it is not a game-launch smoke run. ## Regression run Not run. This remains a draft pending the required real-title `xcl-smoke` blocks from main and this PR's clean head, with the same title and duration. ## AI use I used omp (`openai-codex/gpt-6-astra`) to investigate, implement the fix and CLI regression, run the Windows tests, and prepare this PR.
futurepro62 commented 2026-11-24 15:05:54 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T14:30:19Z.


Full-suite run, since this PR has no test report yet. Tested exact head 107fd42 (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: dot_only_identities_keep_configuration_in_a_title_subdirectory.

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.
<!-- greyfinch-sync:ivall/xcl:comment:7134483471 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1173#issuecomment-7134483471). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-24T14:30:19Z. --- Full-suite run, since this PR has no test report yet. Tested exact head `107fd42` (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: `dot_only_identities_keep_configuration_in_a_title_subdirectory`. **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.
Toons29 commented 2026-11-25 04:10:19 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Toons29 on 2026-11-25T03:13:26Z.


Regression run of 107fd42a 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: 107fd42a42ae61170b41a9c49b1aa425225fd45e
gpu: AMD Radeon RX 9070
title: game.exe
seconds: 60
exit: 0x0
frames shown: 1634 (PresentX 1634)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14680 MB

Against the limits in CONTRIBUTING.md: 101 % of main's frames, 99 % 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.

<!-- greyfinch-sync:ivall/xcl:comment:7151709483 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1173#issuecomment-7151709483). Originally posted by [Toons29](https://github.com/Toons29) on 2026-11-25T03:13:26Z. --- Regression run of `107fd42a` 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: 107fd42a42ae61170b41a9c49b1aa425225fd45e gpu: AMD Radeon RX 9070 title: game.exe seconds: 60 exit: 0x0 frames shown: 1634 (PresentX 1634) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14680 MB ``` Against the limits in CONTRIBUTING.md: 101 % of `main`'s frames, 99 % 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.
DavidM1911 commented 2026-11-25 08:08:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T07:46:42Z.


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:7156241494 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1173#issuecomment-7156241494). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T07:46:42Z. --- 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:14 +00:00 (Migrated from github.com)

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


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:7245199236 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1173#issuecomment-7245199236). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T20:19:14Z. --- 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:59:24 +00:00 (Migrated from github.com)

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


Triage (#1607) – head 107fd42

No open or merged PR makes the same change; launcher.rs:sanitize on main still turns an identity of . or .. into a title folder that resolves to the data root or its parent.
No problems found in the diff; the integration test covers empty, ., .. and ... identities. The PR description check fails.
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:7301308939 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1173#issuecomment-7301308939). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T04:59:24Z. --- **Triage (#1607)** – head 107fd42 No open or merged PR makes the same change; `launcher.rs:sanitize` on main still turns an identity of `.` or `..` into a title folder that resolves to the data root or its parent. No problems found in the diff; the integration test covers empty, `.`, `..` and `...` identities. The `PR description` check fails. 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/1173:upstream-pr/1173'
git switch 'upstream-pr/1173'

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