VFS: a search on the bare mount root lists no entries #758
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/763"
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?
Imported from ivall/xcl. Originally posted by pickles976 on 2026-11-24T04:50:40Z.
VFS: a search on the bare mount root lists no entries
What is in it
collect_game_entriesran the search on the host folders whenrelwas empty:FindFirstFileW("G:\\")classified asGame { rel: "" }, the empty pattern madejoinreturn the bare overlay/game directory paths, and the title saw the host directories as entries of its own root — the third case of #577.rel.is_empty()→ERROR_FILE_NOT_FOUND, what Windows returns for a bare drive root, which has no entries.search_on_the_bare_mount_root_finds_nothingnext to the othercollect_game_entriestests.CREATE_ALWAYSon a directory) — verified by diff and by cross-running the repros in #577; the three cases are disjoint.Tested
x86_64-pc-windows-gnucross-build (llvm-mingw linker), run under Wine 9 + Mesa (debug profile):vfs_hooks::tests::search_on_the_bare_mount_root_finds_nothing— passedcargo test -p xcl --lib vfs_hooks::tests -- --test-threads=1(2 skips): 10 passed, 0 failed — the two skipped tests (whiteouts_survive_game_copy_file_over_mount_root,failed_copy_and_move_do_not_resurrect_whiteouts) abort the Wine process withunimplemented function KERNEL32.dll.CopyFile2on Wine 9; environment, not code (see #175 — current Wine implements it inkernelbase, where XCL looks for it)cargo test -p xcl --lib -- --test-threads=1(4 skips: the two above, plus the host-dependentcreate_list_reset_and_clear_state_track_initial_pso_on_d3d12— vkd3d host difference noted in #175 — andmapped_frame_dump_distinguishes_dark_bright_and_undecoded_content, which fails identically on the unmodified base commit in this environment): 284 passed, 0 failed — the process then died on an X-display teardown, not a test.Regression run
rel == "", i.e.FindFirstFileon a bare mount root — no other title-visible path changes. On Windows the behavior matches the OS error forFindFirstFileW("D:\\").Not tested
G:/T:(same code path, one call site).AI use
Imported from ivall/xcl. Originally posted by pickles976 on 2026-11-24T04:52:50Z.
The one red check is the smoke-block requirement, and I can't produce those blocks from this environment — documenting it rather than leaving it implicit:
scripts/smoke.ps1needs Windows and a title; neither exists here.rel == ""(FindFirstFileon a bare mount root). No existing title-visible path changes; the unit test exercises exactly that branch, and the two sibling cases of #577 (#618, #644) cross-run green against this head.test-onlylabel (the workflow's own exemption, and arguably apt: the runtime change is one guard line whose only reachable path the new unit test covers), or for a smoke partner on Windows — runscripts/smoke.ps1on heade17f6f9and on a main commit, same title/time, and paste bothxcl-smoke v1blocks here; I'll fold them into the description. Same partnership offer the author of #494/#495 is making; this is the first PR from the Linux side of #520, so the friction is new territory for both of us.Imported from ivall/xcl. Originally posted by ryosen0 on 2026-11-24T05:05:38Z.
Windows smoke partner for
e17f6f9, as offered — both blocks verbatim, same title and duration, RTX 3060 Ti 8 GB / Ryzen 7 9800X3D / driver 32.0.16.1742, Windows 11, release builds, no uncommitted changes.Full suite on the head first:
cargo test --workspace --no-fail-fast -- --test-threads=1— 702 passed, 0 failed, 41 ignored (2 GPU SKIPPED:no wave64on this adapter; the count includes your new bare-mount-root unit test).Main (
f4ce27c, this PR's merge-base):Head (
e17f6f9):Both reach the title's menus at a steady 60 presents / 2 s with no device removal; the frame-count difference (2336 vs 2422) is within the run-to-run variance we see between identical builds. The retail title does not hit the bare-mount-root path in this window, so this is a no-regression check on top of your unit test, not a repro of the branch itself — say so in the description if you fold these in.
AI use: GPT-6.2 Astra (API model selector) in DSH ran the build, suite and both smokes and drafted this comment; the human contributor reviewed the numbers before posting.
Imported from ivall/xcl. Originally posted by MesshM on 2026-11-24T05:08:41Z.
Test run of
e17f6f9b47d2c7d86ebcf694d95f156c7775aa59on AMD RDNA4. I merged it onto currentmaind5442d2locally (clean merge) and tested that tree.Tested
stable-x86_64-pc-windows-msvc, debugcargo build --workspace+cargo test --workspace -- --test-threads=4on the merge: 705 passed, 0 failed, 41 ignored, exit code 0;xcllib tests 664 passed, 0 failed, 21 ignoredSKIPPED;search_on_the_bare_mount_root_finds_nothingpasses.Review: Duplicate of #761 (open): both add the same three lines (
if rel.is_empty() { return Err(vfs::ERROR_FILE_NOT_FOUND) }) tocollect_game_entries; only the tests differ, and #761's compares against a native drive root (FindFirstFileExW("C:\\")), which pins the behaviour to Windows'. Only one should land.Not tested: no retail title or regression run (I have no unpacked game), no
XCL_SAMPLE_*tests, release build; the PR's head on its old base was not run, only its merge ontomain.Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
Imported from ivall/xcl. Originally posted by pickles976 on 2026-11-24T05:12:23Z.
Closing this as a duplicate of #761 — checked after MesshM's review: upipibi's head has the same guard (
rel.is_empty()→ERROR_FILE_NOT_FOUND) and its test pins the behavior against the live nativeFindFirstFileExW("C:\\")instead of my hard-coded expectation, which is the better contract. Three minutes and a cleaner test; that's how it should sort.Carrying forward what this PR gathered, for #761's benefit:
xcl-smoke v1blocks (mainf4ce27cvs head, RTX 3060 Ti, 90 s, bothexit: 0x0, 0 device removals, 0 crashes, 60/60/60 presents) — blocks are verbatim above; they need re-running on #761's head, but the harness just proved itself.Thanks to @ryosen0 and @MesshM — first PR, first smoke partnership, first dignified dedup, all within eleven minutes.
Imported from ivall/xcl. Originally posted by pickles976 on 2026-11-24T05:12:24Z.
Superseded by #761 (same guard, stronger test). Keeping the smoke-block precedent and the #577 matrix link here for #761's regression section.
xcl pipelines) #750upstream-sync referenced this pull request2026-11-24 23:06:49 +00:00
Pull request closed