VFS: fail FindFirstFile on a mount root like a native drive root (#577) #756

Merged
upipibi merged 1 commit from upstream-pr/761 into main 2026-11-30 04:06:07 +00:00
upipibi commented 2026-11-24 04:49:13 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-24T04:49:13Z.


FindFirstFile("G:\\") on a mount root returned the host's overlay and game folders as directory entries. For G:\ the relative path is empty, so collect_game_entries searched the bare folder paths and listed the folders themselves. A native drive root has no entry of its own: FindFirstFileExW("C:\\") fails with ERROR_FILE_NOT_FOUND. The mount root now fails the same way. G:\* is unchanged.

Part of #577 (item 3). Items 1 and 2 are #644 and #618. This PR touches neither path, and git merge-tree shows no conflicts with either head.

What is in it

  • crates/xcl/src/vfs_hooks.rs: collect_game_entries returns ERROR_FILE_NOT_FOUND for an empty relative path.
  • crates/xcl/src/vfs_hooks.rs: test find_first_on_mount_root_matches_native_drive_root. It calls native FindFirstFileExW on the host drive root of the temp fixture to get the reference error code. It then checks that G:\ gives the same code and that G:\* still lists data. The test uses synthetic temp folders and no game files.

Tested

  • NVIDIA GeForce RTX 3070, driver 616.56, AMD Ryzen 9 5950X, Windows 11 Pro 26100, rustc 1.100.0, debug
  • cargo test --workspace --no-fail-fast -- --test-threads=4 on ea6fcab: 702 passed, 0 failed, 41 ignored
  • SKIPPED GPU tests: gpu_geometry_wave32_prefix_count_over_a_mask (no wave64), gpu_wave32_program_in_wave64_hardware (no wave64)
  • The new test fails on main (64b3f35) without the fix (left: None, right: Some(2)) and passes with it. Its native reference assertion passed on this machine, so Win32 returns ERROR_FILE_NOT_FOUND (2) for a drive root.

Regression run
Run by @eizispark on an AMD Radeon RX 9070 XT (posted in this PR's comments; we have no retail title here).

main:

xcl-smoke v1
commit: f4ce27ceb6d1b0576d0c659b713b674778bf1968
gpu: AMD Radeon RX 9070 XT
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1667 (PresentX 1667)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14847 MB

PR:

xcl-smoke v1
commit: ea6fcabc06552e3292d576f912d0bdbf5095a075
gpu: AMD Radeon RX 9070 XT
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1663 (PresentX 1663)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14858 MB

Not tested

  • Retail titles on NVIDIA / wave32 (the smoke run above is AMD RDNA4), and gameplay past the menus.
  • A host path to the game folder itself (for example FindFirstFile("D:\\Games\\Title"), no wildcard) also classifies as the empty relative path. It now fails with ERROR_FILE_NOT_FOUND, but native Win32 would return one entry for the folder. Titles reach the game folder through G:\, so this PR follows the console-root semantics. Not checked whether any title searches the host folder this way.
  • On main and on this branch, vfs::tests::truncate_existing_validation_errors fails when run alone (cargo test -p xcl --lib truncate_existing_validation_errors: left: 127, right: 5 at vfs.rs:970). It passes in the full run: the first under_wine() call (GetProcAddress of wine_get_version) sets ERROR_PROC_NOT_FOUND (127) between CreateFileW and GetLastError, and in the full run an earlier test has already cached it. #633 fixes it; this PR does not change it.

AI use

  • AI-assisted (Claude Code, Claude Opus 5.5): wrote the fix, the test and this description, and ran the tests above.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5466274212 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/761). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-24T04:49:13Z. --- `FindFirstFile("G:\\")` on a mount root returned the host's overlay and game folders as directory entries. For `G:\` the relative path is empty, so `collect_game_entries` searched the bare folder paths and listed the folders themselves. A native drive root has no entry of its own: `FindFirstFileExW("C:\\")` fails with `ERROR_FILE_NOT_FOUND`. The mount root now fails the same way. `G:\*` is unchanged. Part of #577 (item 3). Items 1 and 2 are #644 and #618. This PR touches neither path, and `git merge-tree` shows no conflicts with either head. **What is in it** - `crates/xcl/src/vfs_hooks.rs`: `collect_game_entries` returns `ERROR_FILE_NOT_FOUND` for an empty relative path. - `crates/xcl/src/vfs_hooks.rs`: test `find_first_on_mount_root_matches_native_drive_root`. It calls native `FindFirstFileExW` on the host drive root of the temp fixture to get the reference error code. It then checks that `G:\` gives the same code and that `G:\*` still lists `data`. The test uses synthetic temp folders and no game files. **Tested** - NVIDIA GeForce RTX 3070, driver 616.56, AMD Ryzen 9 5950X, Windows 11 Pro 26100, rustc 1.100.0, debug - `cargo test --workspace --no-fail-fast -- --test-threads=4` on ea6fcab: 702 passed, 0 failed, 41 ignored - SKIPPED GPU tests: `gpu_geometry_wave32_prefix_count_over_a_mask` (no wave64), `gpu_wave32_program_in_wave64_hardware` (no wave64) - The new test fails on `main` (64b3f35) without the fix (`left: None, right: Some(2)`) and passes with it. Its native reference assertion passed on this machine, so Win32 returns `ERROR_FILE_NOT_FOUND` (2) for a drive root. **Regression run** Run by @eizispark on an AMD Radeon RX 9070 XT (posted in this PR's comments; we have no retail title here). main: ``` xcl-smoke v1 commit: f4ce27ceb6d1b0576d0c659b713b674778bf1968 gpu: AMD Radeon RX 9070 XT title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1667 (PresentX 1667) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14847 MB ``` PR: ``` xcl-smoke v1 commit: ea6fcabc06552e3292d576f912d0bdbf5095a075 gpu: AMD Radeon RX 9070 XT title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1663 (PresentX 1663) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14858 MB ``` **Not tested** - Retail titles on NVIDIA / wave32 (the smoke run above is AMD RDNA4), and gameplay past the menus. - A host path to the game folder itself (for example `FindFirstFile("D:\\Games\\Title")`, no wildcard) also classifies as the empty relative path. It now fails with `ERROR_FILE_NOT_FOUND`, but native Win32 would return one entry for the folder. Titles reach the game folder through `G:\`, so this PR follows the console-root semantics. Not checked whether any title searches the host folder this way. - On `main` and on this branch, `vfs::tests::truncate_existing_validation_errors` fails when run alone (`cargo test -p xcl --lib truncate_existing_validation_errors`: `left: 127, right: 5` at `vfs.rs:970`). It passes in the full run: the first `under_wine()` call (`GetProcAddress` of `wine_get_version`) sets `ERROR_PROC_NOT_FOUND` (127) between `CreateFileW` and `GetLastError`, and in the full run an earlier test has already cached it. #633 fixes it; this PR does not change it. **AI use** - AI-assisted (Claude Code, Claude Opus 5.5): wrote the fix, the test and this description, and ran the tests above. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
milas6669 commented 2026-11-24 07:06:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by milas6669 on 2026-11-24T05:03:34Z.


Test report on ea6fcabc06552e3292d576f912d0bdbf5095a075 (PR head, base main 64b3f35, no merge needed).

Tested

  • Intel i9-10900KF, Windows 11 Pro 10.0.26200, rustc 1.100.0 x86_64-pc-windows-msvc, debug
  • cargo test -p xcl --lib -- --test-threads=2 --skip gpu:: --skip d3d12x --skip vram (the CPU-only part of the lib tests; the GPU was busy): 278 passed, 0 failed, 2 ignored. The same command on main 64b3f35: 277 passed, 0 failed, 2 ignored, so the only difference is the new test, find_first_on_mount_root_matches_native_drive_root, which passes.
  • The new test fails without the fix: with the four-line rel.is_empty() check in collect_game_entries removed, it fails with left: None, right: Some(2).

Not tested

  • the GPU tests, the e2e tests and cargo test --workspace (not run on this machine for this report)
  • scripts/smoke.ps1: I did not run a regression run of this PR
  • wave64 / AMD hardware

AI use

  • Claude Code, Claude Sonnet 5.5, ran the commands and wrote this report. I did not review the diff beyond reading it.
<!-- greyfinch-sync:ivall/xcl:comment:7122585413 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/761#issuecomment-7122585413). Originally posted by [milas6669](https://github.com/milas6669) on 2026-11-24T05:03:34Z. --- Test report on `ea6fcabc06552e3292d576f912d0bdbf5095a075` (PR head, base `main` 64b3f35, no merge needed). **Tested** - Intel i9-10900KF, Windows 11 Pro 10.0.26200, rustc 1.100.0 `x86_64-pc-windows-msvc`, debug - `cargo test -p xcl --lib -- --test-threads=2 --skip gpu:: --skip d3d12x --skip vram` (the CPU-only part of the lib tests; the GPU was busy): **278 passed, 0 failed, 2 ignored**. The same command on `main` 64b3f35: 277 passed, 0 failed, 2 ignored, so the only difference is the new test, `find_first_on_mount_root_matches_native_drive_root`, which passes. - The new test fails without the fix: with the four-line `rel.is_empty()` check in `collect_game_entries` removed, it fails with `left: None, right: Some(2)`. **Not tested** - the GPU tests, the e2e tests and `cargo test --workspace` (not run on this machine for this report) - `scripts/smoke.ps1`: I did not run a regression run of this PR - wave64 / AMD hardware **AI use** - Claude Code, Claude Sonnet 5.5, ran the commands and wrote this report. I did not review the diff beyond reading it.
MesshM commented 2026-11-24 07:06:28 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by MesshM on 2026-11-24T05:08:42Z.


Test run of ea6fcabc06552e3292d576f912d0bdbf5095a075 on AMD RDNA4. I merged it onto current main d5442d2 locally (clean merge) and tested that tree.

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200 (native Windows), Rust 1.100.0 stable-x86_64-pc-windows-msvc, debug
  • cargo build --workspace + cargo test --workspace -- --test-threads=4 on the merge: 705 passed, 0 failed, 41 ignored, exit code 0; xcl lib tests 664 passed, 0 failed, 21 ignored
  • 0 SKIPPED; find_first_on_mount_root_matches_native_drive_root passes.

Review: Duplicate of #763 (open), same three-line fix; this one's test is the stronger of the two, since it checks against what a native drive root actually returns. Only one should land. The fix itself is right.

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 onto main.

Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.

<!-- greyfinch-sync:ivall/xcl:comment:7122665933 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/761#issuecomment-7122665933). Originally posted by [MesshM](https://github.com/MesshM) on 2026-11-24T05:08:42Z. --- Test run of `ea6fcabc06552e3292d576f912d0bdbf5095a075` on AMD RDNA4. I merged it onto current `main` `d5442d2` locally (clean merge) and tested that tree. **Tested** - AMD Radeon RX 9060 XT 16 GB (RDNA4), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200 (native Windows), Rust 1.100.0 `stable-x86_64-pc-windows-msvc`, debug - `cargo build --workspace` + `cargo test --workspace -- --test-threads=4` on the merge: **705 passed, 0 failed, 41 ignored**, exit code 0; `xcl` lib tests 664 passed, 0 failed, 21 ignored - **0 `SKIPPED`**; `find_first_on_mount_root_matches_native_drive_root` passes. **Review:** **Duplicate of #763** (open), same three-line fix; this one's test is the stronger of the two, since it checks against what a native drive root actually returns. Only one should land. The fix itself is right. **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 onto `main`. Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
pickles976 commented 2026-11-24 07:06:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by pickles976 on 2026-11-24T05:12:46Z.


You landed three minutes ahead of my #763 (now closed as duplicate — same guard; your live-native comparison is the better test). Two things worth carrying to your PR:

  1. A smoke partnership exists. #763's description was red on exactly the same xcl-smoke requirement, and @ryosen0 ran both blocks natively within nine minutes (full suite on the head: 702 passed; main vs head, same title/90 s, both exit: 0x0, 0 removals, 0 crashes) — see #763. Ask them for the pair on your head ea6fcabc and your description check goes green the same way.
  2. Your test runs under Wine too, not just real Windows — the live FindFirstFileExW("C:\\") comparison is satisfied by Wine's drive-root behavior, which means the Linux cross-build harness (#520) can run your test natively to CI parity. Verified: the sibling test on the closed duplicate passed here under Wine 9, and the smoke partner's 9800X3D box ran it on Windows as well.
<!-- greyfinch-sync:ivall/xcl:comment:7122731681 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/761#issuecomment-7122731681). Originally posted by [pickles976](https://github.com/pickles976) on 2026-11-24T05:12:46Z. --- You landed three minutes ahead of my #763 (now closed as duplicate — same guard; your live-native comparison is the better test). Two things worth carrying to your PR: 1. **A smoke partnership exists.** #763's description was red on exactly the same `xcl-smoke` requirement, and @ryosen0 ran both blocks natively within nine minutes (full suite on the head: 702 passed; main vs head, same title/90 s, both `exit: 0x0`, 0 removals, 0 crashes) — see #763. Ask them for the pair on your head `ea6fcabc` and your description check goes green the same way. 2. **Your test runs under Wine too**, not just real Windows — the live `FindFirstFileExW("C:\\")` comparison is satisfied by Wine's drive-root behavior, which means the Linux cross-build harness (#520) can run your test natively to CI parity. Verified: the sibling test on the closed duplicate passed here under Wine 9, and the smoke partner's 9800X3D box ran it on Windows as well.
upipibi commented 2026-11-24 07:06:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-24T05:18:40Z.


Thanks @pickles976, both useful. @ryosen0, if you have time, could you run the xcl-smoke pair for this PR the way you did for #763: main and head ea6fcabc06552e3292d576f912d0bdbf5095a075, same title and duration? I'll copy both blocks into Regression run with credit. We have no retail title here, so the description check can't go green without them. Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7122827455 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/761#issuecomment-7122827455). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-24T05:18:40Z. --- Thanks @pickles976, both useful. @ryosen0, if you have time, could you run the `xcl-smoke` pair for this PR the way you did for #763: `main` and head `ea6fcabc06552e3292d576f912d0bdbf5095a075`, same title and duration? I'll copy both blocks into **Regression run** with credit. We have no retail title here, so the description check can't go green without them. Thanks!
JoaoPauluu commented 2026-11-24 07:06:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JoaoPauluu on 2026-11-24T05:30:56Z.


Test report: #761 under Wine (Linux)

The new test compares XCL with the host's FindFirstFileExW on a drive root. Under Wine that host is Wine's kernel32, and it answers the same as Windows: the test passes, as do the other VFS tests.

Setup

  • CachyOS, kernel 7.3.3-1-cachyos, Intel i5-10400F, 16 GB RAM, NVIDIA GeForce RTX 3060 12 GB, driver 620.70.06
  • Proton Experimental experimental-11.0-20261112 (wine-11.0)
  • Rust 1.100.0, x86_64-pc-windows-gnu (mingw-w64-gcc 16.2.0, GNU ld), debug build of this PR's head ea6fcab

Results (lib test binary under Wine, --test-threads=1)

  • vfs_hooks::tests::find_first_on_mount_root_matches_native_drive_root: ok, in 2 of 2 runs. So Wine's FindFirstFileExW on the fixture's drive root fails with ERROR_FILE_NOT_FOUND, as the test expects from Windows. The fixture lives in the temp folder, which in a Wine prefix is under C:\; I didn't print which root it used.
  • Filter vfs: 21 passed, 0 failed, 0 ignored

Not tested

  • Windows (covered by the other reports), llvm-mingw / MSVC builds, the rest of the suite, a title run

AI use: Claude Code (Claude Opus 5.5) built the tests, ran them on the machine above and wrote this report. The counts are pasted from those runs. The account owner asked for test reports to be posted while they were away and has not reviewed this one.

<!-- greyfinch-sync:ivall/xcl:comment:7123019377 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/761#issuecomment-7123019377). Originally posted by [JoaoPauluu](https://github.com/JoaoPauluu) on 2026-11-24T05:30:56Z. --- ### Test report: #761 under Wine (Linux) The new test compares XCL with the host's `FindFirstFileExW` on a drive root. Under Wine that host is Wine's `kernel32`, and it answers the same as Windows: the test passes, as do the other VFS tests. **Setup** - CachyOS, kernel 7.3.3-1-cachyos, Intel i5-10400F, 16 GB RAM, NVIDIA GeForce RTX 3060 12 GB, driver 620.70.06 - Proton Experimental `experimental-11.0-20261112` (wine-11.0) - Rust 1.100.0, `x86_64-pc-windows-gnu` (mingw-w64-gcc 16.2.0, GNU ld), debug build of this PR's head `ea6fcab` **Results** (lib test binary under Wine, `--test-threads=1`) - `vfs_hooks::tests::find_first_on_mount_root_matches_native_drive_root`: ok, in 2 of 2 runs. So Wine's `FindFirstFileExW` on the fixture's drive root fails with `ERROR_FILE_NOT_FOUND`, as the test expects from Windows. The fixture lives in the temp folder, which in a Wine prefix is under `C:\`; I didn't print which root it used. - Filter `vfs`: 21 passed, 0 failed, 0 ignored **Not tested** - Windows (covered by the other reports), llvm-mingw / MSVC builds, the rest of the suite, a title run **AI use:** Claude Code (Claude Opus 5.5) built the tests, ran them on the machine above and wrote this report. The counts are pasted from those runs. The account owner asked for test reports to be posted while they were away and has not reviewed this one.
eizispark commented 2026-11-24 07:06:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by eizispark on 2026-11-24T05:32:22Z.


Hardware check of ea6fcabc06552e3292d576f912d0bdbf5095a075 (verified clean merge with main e50836b): pass.

Tested

  • Hardware: AMD Radeon RX 9070 XT (RDNA4, driver 32.0.32015.16001), AMD Ryzen 7 9800X3D, 32 GB RAM, Windows 11, rustc 1.100.0 (0ef1bc386 2026-11-09), release + test profile
  • cargo test --workspace -- --test-threads=4: 702 passed, 0 failed, 41 ignored (GPU tests skipped on this adapter: none)
  • cargo test -p xcl --lib vfs_hooks: 11 passed, 0 failed (including find_first_on_mount_root_matches_native_drive_root)

Regression run
main (f4ce27c):

xcl-smoke v1
commit: f4ce27ceb6d1b0576d0c659b713b674778bf1968
gpu: AMD Radeon RX 9070 XT
title: GTA6.Xbox.v1.0.2.1
seconds: 60
exit: 0x0
frames shown: 1667 (PresentX 1667)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14847 MB

PR (ea6fcab):

xcl-smoke v1
commit: ea6fcabc06552e3292d576f912d0bdbf5095a075
gpu: AMD Radeon RX 9070 XT
title: GTA6.Xbox.v1.0.2.1
seconds: 60
exit: 0x0
frames shown: 1663 (PresentX 1663)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14858 MB

Not tested

  • wave32-only GPUs (NVIDIA / Intel); gameplay past the menus

AI use

  • Antigravity (Gemini 4 Carbon) ran the build, test suite, and scripts/smoke.ps1 harness on this machine and formatted this report.
<!-- greyfinch-sync:ivall/xcl:comment:7123042129 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/761#issuecomment-7123042129). Originally posted by [eizispark](https://github.com/eizispark) on 2026-11-24T05:32:22Z. --- Hardware check of `ea6fcabc06552e3292d576f912d0bdbf5095a075` (verified clean merge with `main` `e50836b`): **pass**. **Tested** - Hardware: AMD Radeon RX 9070 XT (RDNA4, driver 32.0.32015.16001), AMD Ryzen 7 9800X3D, 32 GB RAM, Windows 11, `rustc 1.100.0 (0ef1bc386 2026-11-09)`, release + test profile - `cargo test --workspace -- --test-threads=4`: `702 passed, 0 failed, 41 ignored` (GPU tests skipped on this adapter: `none`) - `cargo test -p xcl --lib vfs_hooks`: `11 passed, 0 failed` (including `find_first_on_mount_root_matches_native_drive_root`) **Regression run** `main` (`f4ce27c`): ``` xcl-smoke v1 commit: f4ce27ceb6d1b0576d0c659b713b674778bf1968 gpu: AMD Radeon RX 9070 XT title: GTA6.Xbox.v1.0.2.1 seconds: 60 exit: 0x0 frames shown: 1667 (PresentX 1667) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14847 MB ``` PR (`ea6fcab`): ``` xcl-smoke v1 commit: ea6fcabc06552e3292d576f912d0bdbf5095a075 gpu: AMD Radeon RX 9070 XT title: GTA6.Xbox.v1.0.2.1 seconds: 60 exit: 0x0 frames shown: 1663 (PresentX 1663) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14858 MB ``` **Not tested** - wave32-only GPUs (NVIDIA / Intel); gameplay past the menus **AI use** - Antigravity (Gemini 4 Carbon) ran the build, test suite, and `scripts/smoke.ps1` harness on this machine and formatted this report.
upipibi commented 2026-11-24 07:06:36 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-24T05:34:04Z.


Thanks @eizispark: both blocks are now in Regression run, credited. Thanks also to everyone who ran the tests (@milas6669, @JoaoPauluu, @MesshM).

<!-- greyfinch-sync:ivall/xcl:comment:7123068699 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/761#issuecomment-7123068699). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-24T05:34:04Z. --- Thanks @eizispark: both blocks are now in **Regression run**, credited. Thanks also to everyone who ran the tests (@milas6669, @JoaoPauluu, @MesshM).
JJAutoCompare commented 2026-11-25 06:06:02 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T05:57:28Z.


Empirical test report (ea6fcabc)

Verified PR #761 at ea6fcabc06552e3292d576f912d0bdbf5095a075 in a clean detached checkout.

Hardware / environment

  • Windows x64, build 26200. The CPU identifier reported AMD64 Family 23 Model 113 Stepping 0, AuthenticAMD.
  • Rust 1.100.0 (0ef1bc386 2026-11-09), stable MSVC toolchain. DXC 1.9.2609.5 (01b62ad47).
  • Cargo test profile, unoptimized, with incremental compilation and debug info disabled. Both commands ran directly in PowerShell outside Invoke-ArcTest.ps1. The focused test used XCL_ADAPTER=NONE_CPU_ONLY and RUST_TEST_NOCAPTURE=1.

Commands and results

  • cargo test --workspace --no-run exited 0 and built the workspace test executables in 1m 06s.
  • cargo test -p xcl --lib vfs_hooks::tests::find_first_on_mount_root_matches_native_drive_root -- --nocapture exited 0. The captured result was 1 passed, 0 failed, 0 ignored, and 681 filtered out. The log contained 0 SKIPPED lines.

Observed behavior

  • Native FindFirstFileExW on the fixture drive root returned an invalid handle with ERROR_FILE_NOT_FOUND. Classifying G:\ and collecting its VFS entries yielded the same error.
  • A wildcard at the mount root (G:\*) still returned the fixture’s data directory. The test exercised filesystem enumeration and VFS logic on the CPU.

Not tested

  • The full GPU workspace suite and game smoke runs were omitted. No GPU coverage is claimed.

AI use

Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr761-focused.log and published.

<!-- greyfinch-sync:ivall/xcl:comment:7154299505 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/761#issuecomment-7154299505). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T05:57:28Z. --- ### Empirical test report (ea6fcabc) Verified PR #761 at `ea6fcabc06552e3292d576f912d0bdbf5095a075` in a clean detached checkout. **Hardware / environment** - Windows x64, build 26200. The CPU identifier reported `AMD64 Family 23 Model 113 Stepping 0, AuthenticAMD`. - Rust `1.100.0 (0ef1bc386 2026-11-09)`, stable MSVC toolchain. DXC `1.9.2609.5 (01b62ad47)`. - Cargo test profile, unoptimized, with incremental compilation and debug info disabled. Both commands ran directly in PowerShell outside `Invoke-ArcTest.ps1`. The focused test used `XCL_ADAPTER=NONE_CPU_ONLY` and `RUST_TEST_NOCAPTURE=1`. **Commands and results** - `cargo test --workspace --no-run` exited 0 and built the workspace test executables in 1m 06s. - `cargo test -p xcl --lib vfs_hooks::tests::find_first_on_mount_root_matches_native_drive_root -- --nocapture` exited 0. The captured result was 1 passed, 0 failed, 0 ignored, and 681 filtered out. The log contained 0 `SKIPPED` lines. **Observed behavior** - Native `FindFirstFileExW` on the fixture drive root returned an invalid handle with `ERROR_FILE_NOT_FOUND`. Classifying `G:\` and collecting its VFS entries yielded the same error. - A wildcard at the mount root (`G:\*`) still returned the fixture’s `data` directory. The test exercised filesystem enumeration and VFS logic on the CPU. **Not tested** - The full GPU workspace suite and game smoke runs were omitted. No GPU coverage is claimed. **AI use** Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against `pr761-focused.log` and published.
DavidM1911 commented 2026-11-25 12:06:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T11:16:12Z.


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!

<!-- greyfinch-sync:ivall/xcl:comment:7160822240 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/761#issuecomment-7160822240). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T11:16:12Z. --- 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!
github-actions[bot] commented 2026-11-29 07:41:33 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T07:41:33Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7252630781 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/761#issuecomment-7252630781). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T07:41:33Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
tiagonleal commented 2026-11-30 02:49:06 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by tiagonleal on 2026-11-30T02:49:06Z.


merge-check
base: cb8024684c
head: ea6fcabc06
merge: clean
build: cargo build --workspace -> ok (also cargo build --release -p xcl)
tests: cargo test --workspace --no-fail-fast -j 8 -- --test-threads=4 -> 2810 passed, 1 failed, 51 ignored; SKIPPED: 27 lines (22 no wave64, 3 f16/f32 per-lane cases refused, 2 no heap windows), the same as on the base; failing: hle::d3d12x::standin::tests::concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline, which fails the same way on the base (it came in with #2369; #3474 fixes it). Base alone on this PC: 2809 passed, 1 failed, 51 ignored.
review: whole diff read (+31/-0, vfs_hooks.rs). collect_game_entries now returns ERROR_FILE_NOT_FOUND for an empty relative path, so FindFirstFile on the bare mount root fails as it does on a native drive root. The return comes before any overlay or game-folder lookup and it is on a read path only. The new test asks the real FindFirstFileExW for the host drive root and requires the same answer, and also checks that G:\* still lists. Still needed on current main: the function around the hunk is unchanged. #763 had the same guard and was closed as a duplicate of this. Not covered by the test: the other spellings of the root (G: without the slash, \?\), which go through classify and are not changed here.
performance: none: one comparison on the enumeration path. Measured with scripts/smoke.ps1, 60 s of a retail title, release: 1688 frames and 15600 MB peak commit against 1662 and 1684 frames, 16196 and 15752 MB on the base. No device removal, no crash. Whether that title ever enumerates the mount root I did not check.
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti 16 GB (617.42, wave32), Ryzen 7 9800X3D, 32 GB, Windows 11 26300, rustc 1.100.0 / Claude Code (Claude Fable 5.2 ran the build, suite and smoke and wrote this; Claude Opus 5.5 read the diff first, and I checked its main points in the merged source)

  • Tiago
<!-- greyfinch-sync:ivall/xcl:comment:7267344151 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/761#issuecomment-7267344151). Originally posted by [tiagonleal](https://github.com/tiagonleal) on 2026-11-30T02:49:06Z. --- merge-check base: cb8024684c7babcb0569ecda2217a54b8bedafb1 head: ea6fcabc06552e3292d576f912d0bdbf5095a075 merge: clean build: cargo build --workspace -> ok (also `cargo build --release -p xcl`) tests: cargo test --workspace --no-fail-fast -j 8 -- --test-threads=4 -> 2810 passed, 1 failed, 51 ignored; SKIPPED: 27 lines (22 `no wave64`, 3 f16/f32 per-lane cases refused, 2 `no heap windows`), the same as on the base; failing: `hle::d3d12x::standin::tests::concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline`, which fails the same way on the base (it came in with #2369; #3474 fixes it). Base alone on this PC: 2809 passed, 1 failed, 51 ignored. review: whole diff read (+31/-0, `vfs_hooks.rs`). `collect_game_entries` now returns `ERROR_FILE_NOT_FOUND` for an empty relative path, so `FindFirstFile` on the bare mount root fails as it does on a native drive root. The return comes before any overlay or game-folder lookup and it is on a read path only. The new test asks the real `FindFirstFileExW` for the host drive root and requires the same answer, and also checks that `G:\*` still lists. Still needed on current `main`: the function around the hunk is unchanged. #763 had the same guard and was closed as a duplicate of this. Not covered by the test: the other spellings of the root (`G:` without the slash, `\?\`), which go through `classify` and are not changed here. performance: none: one comparison on the enumeration path. Measured with `scripts/smoke.ps1`, 60 s of a retail title, release: 1688 frames and 15600 MB peak commit against 1662 and 1684 frames, 16196 and 15752 MB on the base. No device removal, no crash. Whether that title ever enumerates the mount root I did not check. verdict: safe to merge hardware / tool and model: RTX 5070 Ti 16 GB (617.42, wave32), Ryzen 7 9800X3D, 32 GB, Windows 11 26300, rustc 1.100.0 / Claude Code (Claude Fable 5.2 ran the build, suite and smoke and wrote this; Claude Opus 5.5 read the diff first, and I checked its main points in the merged source) - Tiago
relativespace2K commented 2026-11-30 02:58:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by relativespace2K on 2026-11-30T02:58:27Z.


merge-check
base: 53e85fb1
head: ea6fcabc06
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2789 passed, 6 failed, 49 ignored; failing: gpu::dxil::compact_tests::gpu_compact_form_with_micro_blocks_and_literal_table_runs_as_the_plain_form, gpu::recomp::pso::shader_cache_tests::console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk, hle::d3d12x::standin::tests::concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline, ram_budget::tests::windows_takes_a_working_set_maximum_and_lifts_it, and two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs (in --test gpu_two_pass_cache_e2e, so 5 failing tests give 6 failures). The same five fail on base 53e85fb1 alone (2788 passed, 6 failed, 49 ignored there), so none comes from this PR; its new test passed. 13 SKIPPED lines, all environmental: no D3D12 debug layer / d3d12SDKLayers.dll, no heap windows, no GPU_UPLOAD, per-lane f16/f32 forms refused.
review: no blocking finding; one file, every hunk read. The change is a single early return: collect_game_entries with an empty relative path is a find on the mount root, which has no entry of its own, and it now fails with ERROR_FILE_NOT_FOUND where before it fell through to enumerating and returned something. The test does the two things that matter: it asks the host FindFirstFileExW for the same shape (C:\) and asserts the native answer really is ERROR_FILE_NOT_FOUND on this machine, then asserts the hook gives the same, and separately keeps * on the root enumerating (data is in the result), so the wildcard case is not caught by the new return. That also matches #577, where a title checks that a mount root behaves like a drive root. No duplicate: #1264 and #316 are the other FindFirstFile fixes and neither touches the empty-root case.
performance: none: one string check before the enumeration.
verdict: safe to merge
hardware / tool and model: AMD Radeon RX 6800 XT 16 GB (RDNA2, wave64), driver 32.0.21045.29003; Ryzen 5 5600, 32 GB RAM; Windows 10 IoT Enterprise LTSC 2024, 10.0.26100 build 26100.9974; Rust 1.100.0; DXC 1.9.2602.17; debug build. DeepSeek Harness coding agent, model DeepSeek V4.1 Flash.

<!-- greyfinch-sync:ivall/xcl:comment:7267476696 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/761#issuecomment-7267476696). Originally posted by [relativespace2K](https://github.com/relativespace2K) on 2026-11-30T02:58:27Z. --- merge-check base: 53e85fb1 head: ea6fcabc06552e3292d576f912d0bdbf5095a075 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2789 passed, 6 failed, 49 ignored; failing: gpu::dxil::compact_tests::gpu_compact_form_with_micro_blocks_and_literal_table_runs_as_the_plain_form, gpu::recomp::pso::shader_cache_tests::console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk, hle::d3d12x::standin::tests::concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline, ram_budget::tests::windows_takes_a_working_set_maximum_and_lifts_it, and two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs (in `--test gpu_two_pass_cache_e2e`, so 5 failing tests give 6 failures). The same five fail on base 53e85fb1 alone (2788 passed, 6 failed, 49 ignored there), so none comes from this PR; its new test passed. 13 SKIPPED lines, all environmental: no D3D12 debug layer / d3d12SDKLayers.dll, no heap windows, no GPU_UPLOAD, per-lane f16/f32 forms refused. review: no blocking finding; one file, every hunk read. The change is a single early return: `collect_game_entries` with an empty relative path is a find on the mount root, which has no entry of its own, and it now fails with `ERROR_FILE_NOT_FOUND` where before it fell through to enumerating and returned something. The test does the two things that matter: it asks the *host* `FindFirstFileExW` for the same shape (`C:\`) and asserts the native answer really is `ERROR_FILE_NOT_FOUND` on this machine, then asserts the hook gives the same, and separately keeps `*` on the root enumerating (`data` is in the result), so the wildcard case is not caught by the new return. That also matches #577, where a title checks that a mount root behaves like a drive root. No duplicate: #1264 and #316 are the other `FindFirstFile` fixes and neither touches the empty-root case. performance: none: one string check before the enumeration. verdict: safe to merge hardware / tool and model: AMD Radeon RX 6800 XT 16 GB (RDNA2, wave64), driver 32.0.21045.29003; Ryzen 5 5600, 32 GB RAM; Windows 10 IoT Enterprise LTSC 2024, 10.0.26100 build 26100.9974; Rust 1.100.0; DXC 1.9.2602.17; debug build. DeepSeek Harness coding agent, model DeepSeek V4.1 Flash.
sandivd commented 2026-11-30 02:59:05 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by sandivd on 2026-11-30T02:59:05Z.


merge-check claim
head: ea6fcabc06

<!-- greyfinch-sync:ivall/xcl:comment:7267485493 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/761#issuecomment-7267485493). Originally posted by [sandivd](https://github.com/sandivd) on 2026-11-30T02:59:05Z. --- merge-check claim head: ea6fcabc06552e3292d576f912d0bdbf5095a075
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!756
No description provided.