Launcher: resolve relative XCL_DATA_ROOT before starting the host #3083

Merged
Gevroska merged 1 commit from upstream-pr/3083 into main 2026-12-02 17:39:33 +00:00
Gevroska commented 2026-11-28 00:58:12 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Gevroska on 2026-11-28T00:58:12Z.


A relative XCL_DATA_ROOT caused the launcher to write boot.json relative to its own working directory. The host starts in the game directory, so it tried to open the same relative path from there and exited before starting the guest.

What is in it

  • Resolve the per-title data directory before opening configuration or writing boot.json. The launcher and host use the same absolute directory.
  • Run the bundled end-to-end fixture from a separate launcher directory with a relative data root, and assert the absolute path stored in boot.json.
  • Document how the launcher resolves a relative XCL_DATA_ROOT.

Tested

  • Windows 11 25H2 build 26200.9457, Ryzen 7 5700X, RTX 3080 driver 32.0.16.1692, DXC 1.9.2609.5 and Rust 1.100.0 MSVC debug. Clean head 36c542ad28609c694381b0fb0d2e332281f63efb.
    Libtest totals 1465 passed, 0 failed, 47 ignored, 0 filtered out
    27 explicit runtime skip messages
    SKIPPED gpu::dxil::kernel::dispatch_chain_native_wave64_builds_whole: no wave64
    SKIPPED gpu::recomp::lower::tests::a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu: no wave64
    SKIPPED gpu::recomp::lower::tests::cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu: no wave64
    SKIPPED gpu::recomp::lower::tests::coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu: no wave64
    SKIPPED gpu::recomp::lower::tests::the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::a_per_lane_2d_or_3d_group_runs_on_the_gpu: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu: const_mask, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))
    SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 arithmetic, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))
    SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 compares, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer arithmetic, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu: f64, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu: mask_ff0_flbit, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))
    SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer carries, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 rounding, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 transcendentals, wave64: no wave64
    SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 three-source, wave64: no wave64
    SKIPPED gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64
    SKIPPED gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64
    SKIPPED shaders::tests::pso_measurement_compiles_an_exact_synthetic_record: cannot disable the driver cache (Windows Developer Mode is required): The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)
    SKIPPED heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows
    SKIPPED uploads_start_from_each_subresources_state: no D3D12 debug layer (The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D))

The native suite summary has 27 structured skip messages. The raw output also records two bundled debug-layer cases skipped because the SDK layer was unavailable. The bundled relative-path regression ran and passed.

  • The local Windows CI equivalent ran on WARP with the workflow's bundled relative-path test exclusion. It reported 1,464 passed, 0 failed, 47 ignored, 1 filtered and 353 SKIPPED lines, including repeat notices. The hardware run above exercised the excluded fixture.
  • With two working directories on one volume, stock 6089122a failed the relative-root launch with 0x07C10001 before guest entry. The fixed relative launch completed all 50 bundled guest checks and presented one frame. Both absolute-root controls completed the same 50 checks and one present.

Regression run

The matched release smoke uses the same offline title, RTX 3080, DXC and 60-second duration. Both arms start from separate copies of the same partial DXIL cache, use on-demand shader compilation with XCL_PREPARE=0, and receive no input. Full archive preparation exceeded the baseline startup allowance before guest entry.

xcl-smoke v1
commit: 6089122a1c96dff16e93b6fdf04c8ed20cfb6102
gpu: NVIDIA GeForce RTX 3080
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1201 (PresentX 1201)
presents per 2 s (last 3): 50 44 42
device removals: 0
crashes: 0
peak commit: 14796 MB
xcl-smoke v1
commit: 36c542ad28609c694381b0fb0d2e332281f63efb
gpu: NVIDIA GeForce RTX 3080
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1282 (PresentX 1283)
presents per 2 s (last 3): 60 50 61
device removals: 0
crashes: 0
peak commit: 14819 MB

Not tested

  • The real-title smoke used the harness absolute data root. The bundled regression above covers relative path handoff. Full archive preparation, cross-volume startup, later gameplay and optional game-data fixtures remain unverified.

AI use

  • Codex GPT-6.2 Sol implemented the fix, added the regression, ran the Windows checks and matched release smoke, and drafted the description. A separate Codex GPT-6.2 Sol agent independently verified the source, bundled regression and real-title smoke evidence. Codex GPT-6.1 Terra checked upstream overlap.

I checked, reviewed, and approved this PR myself.

<!-- greyfinch-sync:ivall/xcl:issue:5535150171 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3083). Originally posted by [Gevroska](https://github.com/Gevroska) on 2026-11-28T00:58:12Z. --- A relative `XCL_DATA_ROOT` caused the launcher to write `boot.json` relative to its own working directory. The host starts in the game directory, so it tried to open the same relative path from there and exited before starting the guest. **What is in it** - Resolve the per-title data directory before opening configuration or writing `boot.json`. The launcher and host use the same absolute directory. - Run the bundled end-to-end fixture from a separate launcher directory with a relative data root, and assert the absolute path stored in `boot.json`. - Document how the launcher resolves a relative `XCL_DATA_ROOT`. **Tested** - Windows 11 25H2 build 26200.9457, Ryzen 7 5700X, RTX 3080 driver 32.0.16.1692, DXC 1.9.2609.5 and Rust 1.100.0 MSVC debug. Clean head `36c542ad28609c694381b0fb0d2e332281f63efb`. Libtest totals 1465 passed, 0 failed, 47 ignored, 0 filtered out 27 explicit runtime skip messages SKIPPED gpu::dxil::kernel::dispatch_chain_native_wave64_builds_whole: no wave64 SKIPPED gpu::recomp::lower::tests::a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower::tests::cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower::tests::coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower::tests::the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::a_per_lane_2d_or_3d_group_runs_on_the_gpu: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu: const_mask, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's)) SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 arithmetic, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's)) SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 compares, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer arithmetic, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu: f64, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu: mask_ff0_flbit, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's)) SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer carries, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 rounding, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 transcendentals, wave64: no wave64 SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 three-source, wave64: no wave64 SKIPPED gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64 SKIPPED gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64 SKIPPED shaders::tests::pso_measurement_compiles_an_exact_synthetic_record: cannot disable the driver cache (Windows Developer Mode is required): The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D) SKIPPED heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows SKIPPED uploads_start_from_each_subresources_state: no D3D12 debug layer (The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)) The native suite summary has 27 structured skip messages. The raw output also records two bundled debug-layer cases skipped because the SDK layer was unavailable. The bundled relative-path regression ran and passed. - The local Windows CI equivalent ran on WARP with the workflow's bundled relative-path test exclusion. It reported 1,464 passed, 0 failed, 47 ignored, 1 filtered and 353 `SKIPPED` lines, including repeat notices. The hardware run above exercised the excluded fixture. - With two working directories on one volume, stock `6089122a` failed the relative-root launch with `0x07C10001` before guest entry. The fixed relative launch completed all 50 bundled guest checks and presented one frame. Both absolute-root controls completed the same 50 checks and one present. **Regression run** The matched release smoke uses the same offline title, RTX 3080, DXC and 60-second duration. Both arms start from separate copies of the same partial DXIL cache, use on-demand shader compilation with `XCL_PREPARE=0`, and receive no input. Full archive preparation exceeded the baseline startup allowance before guest entry. ``` xcl-smoke v1 commit: 6089122a1c96dff16e93b6fdf04c8ed20cfb6102 gpu: NVIDIA GeForce RTX 3080 title: 21222967 seconds: 60 exit: 0x0 frames shown: 1201 (PresentX 1201) presents per 2 s (last 3): 50 44 42 device removals: 0 crashes: 0 peak commit: 14796 MB ``` ``` xcl-smoke v1 commit: 36c542ad28609c694381b0fb0d2e332281f63efb gpu: NVIDIA GeForce RTX 3080 title: 21222967 seconds: 60 exit: 0x0 frames shown: 1282 (PresentX 1283) presents per 2 s (last 3): 60 50 61 device removals: 0 crashes: 0 peak commit: 14819 MB ``` **Not tested** - The real-title smoke used the harness absolute data root. The bundled regression above covers relative path handoff. Full archive preparation, cross-volume startup, later gameplay and optional game-data fixtures remain unverified. **AI use** - Codex GPT-6.2 Sol implemented the fix, added the regression, ran the Windows checks and matched release smoke, and drafted the description. A separate Codex GPT-6.2 Sol agent independently verified the source, bundled regression and real-title smoke evidence. Codex GPT-6.1 Terra checked upstream overlap. I checked, reviewed, and approved this PR myself.
JJAutoCompare commented 2026-11-28 02:08:03 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-28T02:08:03Z.


Tested

Clean 36c542ad28609c694381b0fb0d2e332281f63efb on Windows 11 25H2 build 26200.9974, Ryzen 7 3800X, Intel Arc A770 (PCI 8086:56a0, driver 32.0.101.9175), Rust 1.100.1 MSVC debug, and DXC/DXIL 1.9.2602.17.

I reran the pinned stock launcher and bundled test title with xcl.exe run L:\<fixture-game> -- --hello, XCL_ADAPTER=A770, and XCL_DUMP_SHADERS=1. Both runs started from fresh launcher working directories on C:, with the fixture on a separate NTFS volume (L:). The first used XCL_DATA_ROOT=data. The control set it to an absolute C: path. The shared Arc lock covered both runs, and the launcher/host, guest executable, fixture DLL, and wrapper hashes matched before, during and after the lock.

  • In both runs, boot.json contained the expected absolute C: data directory and L: game and executable paths. The host initialized the physical Arc A770 before loading the bundled DLL, and the guest reached its final summary. The L: fixture tree was unchanged.
  • Each run had 49 guest checks passed, 1 failed, and 0 explicit guest skip markers. Audio voice subchecks were skipped after CreateMasteringVoice returned 0x80070490. Both runs failed the same RSSetDepthBiasX readback, with a blue top-right pixel where the fixture expected green. Host and launcher each returned 1, and neither report recorded a crash. The wrapper exited 0 after collecting both native statuses.
  • The guest's frame-clock/PresentX check passed in both runs. The Session 0 host logged CreateSwapChainForHwnd error 0x887A0022 and recorded 0 actual presents in each run.

Not tested

Base revision, retail titles, interactive display or audio output, performance, and the full workspace suite.

AI use

T3 Code through the Codex harness (gpt-6.2-sol) verified fixture provenance, ran the cross-volume checks, and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7232153698 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3083#issuecomment-7232153698). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-28T02:08:03Z. --- **Tested** Clean `36c542ad28609c694381b0fb0d2e332281f63efb` on Windows 11 25H2 build 26200.9974, Ryzen 7 3800X, Intel Arc A770 (PCI `8086:56a0`, driver `32.0.101.9175`), Rust 1.100.1 MSVC debug, and DXC/DXIL 1.9.2602.17. I reran the pinned stock launcher and bundled test title with `xcl.exe run L:\<fixture-game> -- --hello`, `XCL_ADAPTER=A770`, and `XCL_DUMP_SHADERS=1`. Both runs started from fresh launcher working directories on C:, with the fixture on a separate NTFS volume (L:). The first used `XCL_DATA_ROOT=data`. The control set it to an absolute C: path. The shared Arc lock covered both runs, and the launcher/host, guest executable, fixture DLL, and wrapper hashes matched before, during and after the lock. - In both runs, `boot.json` contained the expected absolute C: data directory and L: game and executable paths. The host initialized the physical Arc A770 before loading the bundled DLL, and the guest reached its final summary. The L: fixture tree was unchanged. - Each run had **49 guest checks passed, 1 failed, and 0 explicit guest skip markers**. Audio voice subchecks were skipped after `CreateMasteringVoice` returned `0x80070490`. Both runs failed the same `RSSetDepthBiasX` readback, with a blue top-right pixel where the fixture expected green. Host and launcher each returned 1, and neither report recorded a crash. The wrapper exited 0 after collecting both native statuses. - The guest's frame-clock/PresentX check passed in both runs. The Session 0 host logged `CreateSwapChainForHwnd` error `0x887A0022` and recorded **0 actual presents** in each run. **Not tested** Base revision, retail titles, interactive display or audio output, performance, and the full workspace suite. **AI use** T3 Code through the Codex harness (`gpt-6.2-sol`) verified fixture provenance, ran the cross-volume checks, and wrote this report.
Foniass commented 2026-12-01 09:28:12 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T09:28:12Z.


Triage (#1607) – head 36c542a

No open or merged PR resolves a relative XCL_DATA_ROOT (#1173 is about dot-only title names). launcher.rs:run_with_ui makes data_dir absolute before the host starts in the game directory, and the e2e test now runs with a relative XCL_DATA_ROOT and checks boot.json's data_dir, so it fails without the fix. 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:7306746177 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3083#issuecomment-7306746177). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T09:28:12Z. --- **Triage (#1607)** – head 36c542a No open or merged PR resolves a relative `XCL_DATA_ROOT` (#1173 is about dot-only title names). `launcher.rs:run_with_ui` makes `data_dir` absolute before the host starts in the game directory, and the e2e test now runs with a relative `XCL_DATA_ROOT` and checks `boot.json`'s `data_dir`, so it fails without the fix. 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.
Foniass commented 2026-12-01 12:24:42 +00:00 (Migrated from github.com)

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


merge-check
base: 493dbd3dd0
head: 36c542ad28
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2900 passed, 0 failed, 51 ignored; SKIPPED: 28 (20 no wave64, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 no heap windows, 1 cannot disable the driver cache, 3 others; the same set as on main); failing: none
review: read the whole diff (+16/-3). The bug is real: data_root() (launcher.rs ~11) returns XCL_DATA_ROOT as given, the boot.json path built from it reaches the host through XCL_HOST, and the host starts with the game folder as its working directory (spawn_host(cmdline, &root, ...)), so a relative path resolves there instead. std::path::absolute (~305-315) is the right tool: a plain drive path with no \\?\ prefix, and the folder doesn't have to exist, unlike canonicalize. Only the launcher reads the variable (shaders.rs ~69 just keeps it out of a hash). Findings (minor): the regression test (e2e.rs ~141-142, ~177) runs inside test_title_runs_and_game_folder_is_untouched, which CI skips (ci.yml ~54), so only GPU machines run it; it ran in the suite here. Fine: it resolves before xcl.toml and boot.json are used, and the README line matches. smoke.ps1 passes an absolute path, so no smoke run.
performance: no smoke run (the default path doesn't reach this change); not measured. Launcher-only, and smoke.ps1 passes an absolute data root. Its regression test runs inside test_title_runs_and_game_folder_is_untouched, which passed here (CI skips it). The first run of this merge lost the lib test binary to the known uma_driver coherent-window abort; this is the rerun.
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5

AI-written and posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7311092578 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3083#issuecomment-7311092578). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T12:24:42Z. --- merge-check base: 493dbd3dd0cd50b4c3e8d28f73ab9b504fcd8158 head: 36c542ad28609c694381b0fb0d2e332281f63efb merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2900 passed, 0 failed, 51 ignored; SKIPPED: 28 (20 no wave64, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 no heap windows, 1 cannot disable the driver cache, 3 others; the same set as on main); failing: none review: read the whole diff (+16/-3). The bug is real: `data_root()` (`launcher.rs` ~11) returns `XCL_DATA_ROOT` as given, the `boot.json` path built from it reaches the host through `XCL_HOST`, and the host starts with the game folder as its working directory (`spawn_host(cmdline, &root, ...)`), so a relative path resolves there instead. `std::path::absolute` (~305-315) is the right tool: a plain drive path with no `\\?\` prefix, and the folder doesn't have to exist, unlike `canonicalize`. Only the launcher reads the variable (`shaders.rs` ~69 just keeps it out of a hash). Findings (minor): the regression test (`e2e.rs` ~141-142, ~177) runs inside `test_title_runs_and_game_folder_is_untouched`, which CI skips (`ci.yml` ~54), so only GPU machines run it; it ran in the suite here. Fine: it resolves before `xcl.toml` and `boot.json` are used, and the README line matches. `smoke.ps1` passes an absolute path, so no smoke run. performance: no smoke run (the default path doesn't reach this change); not measured. Launcher-only, and `smoke.ps1` passes an absolute data root. Its regression test runs inside `test_title_runs_and_game_folder_is_untouched`, which passed here (CI skips it). The first run of this merge lost the lib test binary to the known `uma_driver` coherent-window abort; this is the rerun. verdict: safe to merge hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5 AI-written and posted by Foniass without a human check of each point.
fromthemoonx commented 2026-12-01 17:25:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-12-01T17:25:38Z.


merge-check
base: 6bfb5c5153
head: 36c542ad28
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2904 passed, 0 failed, 51 ignored (base: 2904 passed, 0 failed, 51 ignored); SKIPPED: 25 (22 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps), the same set as base; failing: none
review: read the whole diff (3 files, +16 -3). No findings.

  • run_with_ui makes a relative data_root().join(title) absolute with std::path::absolute before it opens xcl.toml or writes boot.json. The host, started in the game folder, then gets an absolute data_dir.
  • The other callers of data_root() (main.rs:117,133,137: last-game.txt, last-console.txt) run in the launcher's own working directory, so a relative root is right there. No other code reads XCL_DATA_ROOT: shaders.rs:69 only leaves it out of the warm-settings hash.
  • Mutation: main's launcher.rs with this PR's e2e change makes e2e::test_title_runs_and_game_folder_is_untouched fail. The host prints cannot read data\XCL.TestTitle\cache\boot.json: The system cannot find the path specified. (os error 3), which is the bug the PR describes. With the fix it passes, in the suite above. Good.
  • README line added for the relative-root behaviour.
    performance: none: one path resolution at launch.
    verdict: safe to merge
    hardware / tool and model: RTX 3060 12 GB (610.88), Ryzen 7 5700X, Windows 11 Pro 26300 / Claude Code (Claude Opus 5.5)
<!-- greyfinch-sync:ivall/xcl:comment:7319280475 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3083#issuecomment-7319280475). Originally posted by [fromthemoonx](https://github.com/fromthemoonx) on 2026-12-01T17:25:38Z. --- merge-check base: 6bfb5c5153ccc23517daf30aa1071ddb0fadb53c head: 36c542ad28609c694381b0fb0d2e332281f63efb merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2904 passed, 0 failed, 51 ignored (base: 2904 passed, 0 failed, 51 ignored); SKIPPED: 25 (22 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps), the same set as base; failing: none review: read the whole diff (3 files, +16 -3). No findings. - `run_with_ui` makes a relative `data_root().join(title)` absolute with `std::path::absolute` before it opens `xcl.toml` or writes `boot.json`. The host, started in the game folder, then gets an absolute `data_dir`. - The other callers of `data_root()` (`main.rs:117,133,137`: `last-game.txt`, `last-console.txt`) run in the launcher's own working directory, so a relative root is right there. No other code reads `XCL_DATA_ROOT`: `shaders.rs:69` only leaves it out of the warm-settings hash. - Mutation: main's `launcher.rs` with this PR's e2e change makes `e2e::test_title_runs_and_game_folder_is_untouched` fail. The host prints `cannot read data\XCL.TestTitle\cache\boot.json: The system cannot find the path specified. (os error 3)`, which is the bug the PR describes. With the fix it passes, in the suite above. Good. - README line added for the relative-root behaviour. performance: none: one path resolution at launch. verdict: safe to merge hardware / tool and model: RTX 3060 12 GB (610.88), Ryzen 7 5700X, Windows 11 Pro 26300 / Claude Code (Claude Opus 5.5)
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!3083
No description provided.