e2e: under Wine, stage the test title under the target directory's drive path #2414
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!2414
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2414"
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?
@vakaobr on GitHub · 2026-11-25 18:09 UTC · original
vakaobr:tests/e2e-wine-dos-paths→main· +37 −2 · 1 files · 1 commits · draftWhen the tests are built for Windows on macOS or Linux and run under Wine,
CARGO_TARGET_TMPDIRis the host's path (/Users/...). In the Windows test process a path starting with/is a folder of the current drive: from a shell in the home folder (Y:in CrossOver),/Users/me/...isY:\Users\me\..., the home folder's ownUsers. So the e2e test's game and data folders landed outside the target directory and were never removed, and the drives XCL mounts from the data path did not resolve.test_title_runs_and_game_folder_is_untouchedthen failed the test title'sstorage: save folder + persistent local storage(pls dir S:\) andXPersistentLocalStorage: a drive rootchecks. This asks Wine for the drive path of a/-path (wine_get_dos_file_name). On Windows kernel32 has no such export and the path is used as before. Test-only: it changes nothing incrates/xcl/src. Part of #258.What is in it
crates/xcl/tests/e2e.rs:target_tmpdir()andwine_dos_path(), used bytemp_dir().Tested
x86_64-pc-windows-gnu, debug, onmain68a284awith and without this commit.cargo build --workspace, thene2e --exact test_title_runs_and_game_folder_is_untouched --test-threads=1in the CrossOver bottle:storage: save folder + persistent local storageandXPersistentLocalStorage: a drive rootfail, and the run's folder is left in~/Users/<me>/code/<target>/…/tmp/;mainunder CrossOver either way: the title crashes at its first D3D12.X pipeline check (#750 fixes that), which runs after the storage checks.Regression run
crates/xcl/srcchanges.Not tested
wine_get_dos_file_name), Wine on Linux.launcher_uses_configured_exe_in_an_ambiguous_folder, the debug-layer ones), which use the sametemp_dir().AI use
@DavidM1911 on GitHub · 2026-11-25 19:36 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: 1 real failure, deterministic (also fails--test-threads=1, 1219/1):The lowered program is missing an expected group barrier (or emits one where none is expected). Needs a fix before merge.
— Devin
@pablogonz12 on GitHub · 2026-11-25 19:47 UTC · original
Test report from Linux + Wine (RADV), which the "Not tested" section asks for. Prepared with AI assistance: DeepSeek V4.1 Flash in OpenCode; the commands below were run by it and the output is pasted verbatim.
Setup
RADV GFX1201), AMD Radeon RX 9070 XT 16 GB, Ryzen 9 9900X.WINEDLLOVERRIDES="d3d12,d3d12core,dxgi,d3d11,d3d10core=n,b",VKD3D_CONFIG=ignore_shared_fence,WINEDEBUG=-all, DXC 1.9.2609.5.RUSTFLAGS="-C target-feature=+crt-static" cargo xwin test --workspace --release --target x86_64-pc-windows-msvc --no-run, thenwine <e2e exe> --test-threads=1.main2898511with this PR merged on top (clean merge, only this PR differs), head = 6779e20.What the change does here
cargo buildoutput, base run:same line on this PR:
So the Wine drive path is resolved as described, and the run's folder now sits under the target directory.
Result,
e2eintegration test2898511e2etest_title_runs_and_game_folder_is_untouchedis still red in both, at the same assertion (fails.is_empty()), and the test title prints the same 48[PASS]lines and the same two[FAIL]lines on base and on this PR:Neither is caused by this PR: the XMA2 one is what #2410 changes, and the window-cloak one is a host gap (Wine's DWM does not cloak) that this PR does not touch. The storage / persistent-local-storage checks the description mentions now pass under Wine, which is the point of the change.
The two debug-layer e2e tests are
SKIPPED ...: no d3d12SDKLayers.dllhere (GPU line:GPU: AMD Radeon RX 9070 XT (RADV GFX1201) (16304 MiB VRAM)).Not tested
AI use
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.