Tests: keep the launcher tests' data out of the user's XCL folder #2331
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2331
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2331/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Convicts42 on GitHub · 2026-11-25 14:57 UTC · original
tests/launcher-data-root→main· +19 −16 · 1 files · 1 commits · closed without mergingThree of the launcher integration tests (#1963) run
xcl run <folder>withoutXCL_DATA_ROOT. The launcher writes the title'sxcl.tomlbefore it looks for an executable, so every run of the suite leaves three folders (xcl-no-exe-*,xcl-multi-exe-*,xcl-self-copy-*) in the user's%LOCALAPPDATA%\XCL, next to their real titles. 20 runs had left 60 on this machine.What is in it
crates/xcl/tests/launcher_e2e.rs: the three tests runxclthrough one helper that setsXCL_DATA_ROOTto a folder next to the test's game folder, removed with it. The helper asserts that the title'sxcl.tomlis there, so a test that loses its data root fails. The other three tests exit before anything is written and are unchanged.Tested
main06c9f55cargo test -p xcl --test launcher_e2e -- --test-threads=4, withLOCALAPPDATApointed at an empty folder: before, 6 passed and 3 folders left inXCL; with this PR, 6 passed in 5 of 5 runs and nothing left. With the.env("XCL_DATA_ROOT", …)line removed from the helper: 3 passed, 3 failedcargo test --workspace --no-fail-fast -- --test-threads=4: 1261 passed, 4 failed, 46 ignored, the same asmain06c9f55here. The 4 arefuzz_validate_and_gpu_0to_3(#1905, fixed by #1919)V_MUL_F16,V_PK_MUL_F16,V_CVT_F16_F32), 1 no heap windows, 1 driver cache without Windows Developer ModeRegression run
crates/xcl/srcNot tested
launcher_e2e.rsof its own and already conflicts withmain; it setsXCL_DATA_ROOTitselfAI use
🤖 Generated with Claude Code
@nnonno91 on GitHub · 2026-11-25 15:06 UTC · original
Independent Windows check of
7419c2610495bd56c236b02d1aa4d4f2b500e36awith an inherited XCL profile containing an existing title.Tested
XCL_DATA_ROOTto a temporary directory containing an existing title folder and a sentinelxcl.toml. Rancargo test --locked -p xcl --test launcher_e2e -- --nocapture --test-threads=4three times. Each run gave 6 passed, 0 failed, 0 ignored and no skips.Not tested
The unset-
XCL_DATA_ROOTpath separately, the parent, retail titles and the full workspace suite.AI use
OpenAI Codex (GPT-6.2 Sol) ran the checks and wrote this report.
@DavidM1911 on GitHub · 2026-11-25 18:04 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!
Pull request closed