Tests: isolate the default data folder per process #1872
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!1872
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1872"
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?
@mokkamokacaffe on GitHub · 2026-11-24 22:26 UTC · original
mokkamokacaffe:tests/isolate-default-data-dir→main· +104 −1 · 1 files · 1 commits · openTest processes without a boot record currently share
%TEMP%\xcl_unit_data. Parallel test binaries can write the same shader, UMA, save and PLS state, while a later run can inherit files left by an earlier one. Give each process one stable fallback directory identified by its PID and a creation-time nonce. Real title runs continue to useBoot.data_dirunchanged.What is in it
crates/xcl/src/state.rs: cache one fallback data directory per process withOnceLock.Tested
a477b388b4fe6733267ec8cc2758f13cb5d5d98f:Build and test (Windows, no GPU): passed.main:cargo test -p xcl --libreported all tests passed, 0 failed and 27 ignored.git diff --check: passed; the branch is mergeable with currentmain.Bootis installed; theSome(Boot)title path is unchanged.OpenProcess,PROCESS_QUERY_LIMITED_INFORMATION,GetLastErrorandERROR_INVALID_PARAMETERwere checked againstwindows-sys0.61.2.2876ff8built successfully on Windows 11 / Intel Arc A770. Its focused path tests passed; the full workspace run reported 951 passed, 25 failed and 45 ignored, with the GPU/e2e failures documented in the contributor report and no matched-main attribution.Regression run
Exact-head paired retail smoke from
scripts/smoke.ps1; 60 seconds, release, same title and duration. This is a regression check only: the title path does not exercise the no-boot fallback changed by this PR.main:
PR:
The PR produced 98.9% of main frames and 107.4% of main peak commit, with no crash or device removal; both are within the repository limits. One pair does not establish a memory trend.
Not tested
AI use
state::data_dirconsumer, implemented the isolated fallback and cleanup tests, identified and fixed the long-running-process cleanup risk, verified the Windows API surface, rebased the branch, reconciled exact-head test/smoke evidence, and drafted this description.@upipibi on GitHub · 2026-11-24 22:38 UTC · original
Ran it, since the description says "Not run": RTX 3070 8 GB, driver 616.56, Windows 11, debug,
eb088d2onmain689f2db.cargo test -p xcl --lib -- --skip gpu_sparse_vram --skip queue_slot_18 --test-threads=4: 925 passed, 0 failed, 25 ignored. (Those two skips are #1727 and #1487, not this PR.)One side effect: each test process leaves its folder behind. After this one run,
%TEMP%\xcl_unit_data_<pid>_<nonce>stays, at 2 KB (gamesave,pls,saves). It's small, but one accumulates per test binary run. Removing it when the process exits, or cleaningxcl_unit_data_*folders older than a day at startup, would keep%TEMP%tidy.AI-assisted (Claude Code). Synthetic tests only.
@DavidM1911 on GitHub · 2026-11-25 01:45 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!
@JJAutoCompare on GitHub · 2026-11-25 03:08 UTC · original
PR #1872 — STOR-WINLAB verification
Tested detached head
2876ff856810d5c0cb7a897ed1c46eb4f942ccea(“Tests: isolate the default data folder per process”). The diff caches a PID-and-time-nonce fallback path per process when no boot configuration exists and attempts to clean up matching directories at least 24 hours old.Tested
DoublePrecisionFloatShaderOps=0, nod3d12SDKLayers.dll).1.100.0 (0ef1bc386 2026-11-09), DXC/DXIL 1.9.2609.5, unoptimized builds with debug info disabled,XCL_ADAPTER=A770.cargo build --workspaceandcargo test --workspace --no-runboth succeeded.cargo test -p xcl default_data_folders_are_stable_per_process_and_separate_between_processes -- --nocapturehad 1 passed, 0 failed, 0 ignored, 0 skips. It checks path construction and name validation.cargo test -p xcl save_folder_async -- --nocaptureran twice, each with 1 passed, 0 failed, 0 ignored, 0 skips. File inspection found a freshxcl_unit_data_<pid>_<nonce>/saves/scid-1directory after each process. The first directory remained after the second run. Both focused tests also passed in the full suite.Full workspace suite
cargo test --workspace --no-fail-fast -- --test-threads=4ran once under the shared Arc lock and exited 101. Across 20 result summaries, libtest reported 951 passed, 25 failed, 45 ignored. The log had 22SKIPPEDlines, which do not count as coverage.CreateComputePipelineStateerror0x80070057. Four reported mismatches in fused FMA, pixel sampling LOD, f16 high-half preservation, or pixel wave reductions.RSSetDepthBiasXcheck drew blue where it expected green.Not tested
A
mainbaseline, simultaneous process stress, stale-directory eviction, retail titles or samples (XCL_SAMPLE_*unset), and other GPUs or drivers.AI use
T3 Code / Codex (
gpt-6.2-sol,reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity,gemini-4-neon) verified counts againstpr1872-suite.logand published this report.@raylitebull on GitHub · 2026-11-25 10:47 UTC · original
Code review on
a477b38:state::data_dir()toxcl_unit_data_<pid>_<nonce>with 24h dead-PID cleanup (ERROR_INVALID_PARAMETERcheck) cleanly isolates parallel test processes without removing live or access-denied directories.Remaining before merge:
Build and testfinishing green plus verification ona477b38.@Anon64 on GitHub · 2026-11-25 10:54 UTC · original
Regression run: a retail title, from
scripts/smoke.ps1as printed. 60 s, release, default settings, A pressed every 4 s from 20 s. RTX 3060 12 GB, Windows 11, Rust 1.100.0. The base is this PR's merge base withmain.base (
f5c5bdf):this PR:
No device removal or crash. Frames are 98.9 % of the base's and peak commit is 107.4 %, within the limits. Peak commit varies by a few GB between runs on this machine, so one pair doesn't show a memory change. This is a regression check only: the run uses the given game folder, so it doesn't exercise the default data folder this PR changes.
AI use: Claude Code (Claude Opus 5.5) built both commits, ran the smoke pair and wrote this comment.
@DavidM1911 on GitHub · 2026-11-26 06:41 UTC · original
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.