Skip to content

Tests: VFS path classification without touching the file system - #862

Open
mastrr9 wants to merge 1 commit into
xcl-dev:mainfrom
mastrr9:tests/vfs-classify
Open

mastrr9 wants to merge 1 commit into
xcl-dev:mainfrom
mastrr9:tests/vfs-classify

Conversation

@mastrr9

@mastrr9 mastrr9 commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Adds a test-only suite (crates/xcl/tests/vfs_classify.rs) covering pure VFS path normalization, drive-letter routing, mount classification, relative/NT/verbatim path forms, and edge cases without mutating the host filesystem.

Tested

  • Hardware/OS: NVIDIA RTX 5080 (driver 617.42 / 32.0.16.1742), Windows 11 Pro 25H2 (26200.9974), rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC debug, DXC Windows SDK 10.0.26100.0, d3d12SDKLayers.dll installed
  • Commit tested: 80d283d06c7f8046f1f3ac2560d6e056eef65d01
  • cargo build --workspace: clean (no new warnings; only pre-existing fetch_update deprecation warning)
  • cargo test --workspace -- --test-threads=4: 726 passed, 0 failed, 41 ignored (vfs_classify: 13 passed, 0 failed, 0 ignored)
  • SKIPPED GPU tests: gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64, gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64

Not tested

  • Test-only diff (crates/xcl/tests/vfs_classify.rs); no runtime code changed and no retail title run performed.

AI use

  • Authored with Claude Code (Claude Opus 5.5); reviewed, audited (removed #[ignore] tests to comply with CONTRIBUTING.md), and verified on native Windows/RTX 5080 hardware with Antigravity (Gemini 4 Neon + Claude Sonnet 5.5).

Drive classify_with with an absolutizer written in the test, so the
results hold on any PC: mount spellings and prefixes, the game root,
verbatim and NT prefixes, devices and shares, the PC's C: as a console
drive, and seeded paths checked against an independent model.

mount's folder, lowercase or NT-form verbatim UNC paths are not
treated as shares, and a Unicode case mapping of another length can
mis-slice or panic in the game-root match.

Assisted-by: Claude Code (Claude Opus 5.5)
@SlopTart

Copy link
Copy Markdown

Linux / AMD RDNA3 datapoint.

Merged state: head 80d283d onto main 1ec4c98, clean merge.

Full suite, cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 718 passed, 10 failed, 41 ignored. Failures = the known Wine-lane set from my #42 rows plus #718 trio members and a hit of gpu_mirror_upload_follows_cpu_writes_and_later_mapping_changes (new flake, see #718 addendum). VFS path-classification tests green (suite total up to 718 - many new pure-CPU tests).

Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.

Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross x86_64-pc-windows-gnu, XCL_NETWORK=0, release profile, --test-threads=4. My Linux rows: #42 / #718.

AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.

@JJAutoCompare

Copy link
Copy Markdown

Empirical test report (9851183)

Verified xcl-dev/xcl PR #862 at 9851183ee17aa410cf510ea7b28ca77123d19ba9.

Hardware / environment

  • Windows x64, OS build 26200. AMD64 Family 23 Model 113 Stepping 0 with 12 logical processors visible.
  • Rust 1.100.0 (0ef1bc386 2026-11-09) and DXC 1.9.2609.5 (01b62ad47). Cargo used the unoptimized test profile with debug info and incremental compilation disabled.
  • Both commands ran outside Invoke-ArcTest.ps1 without acquiring the Arc GPU mutex. The focused run used XCL_ADAPTER=NONE_CPU_ONLY and RUST_TEST_NOCAPTURE=1.

Commands and results

  • cargo test --workspace --no-run exited 0 and compiled the workspace test binaries.
  • cargo test -p xcl --test vfs_classify -- --nocapture exited 0 with 13 passed, 0 failed, 0 ignored, 0 filtered out and 0 SKIPPED lines. The test harness reported 0.10 s.
  • Both commands emitted a deprecation warning for AtomicU32::fetch_update in XGameRuntime.

Observed behavior

The integration tests exercised console mount translation and component boundaries, PC game-root and own-folder handling, verbatim and NT prefixes, device and UNC pass-through, and path joins. The seeded model test classified 3,000 generated paths and checked that game-relative paths joined back to the original game root. The tests used an injected absolutizer for classification, and the data directory probed by VFS initialization was absent. The focused run emitted VFS diagnostics for unmounted drive paths.

Not tested

The full GPU workspace suite and game smoke runs were omitted. Execution coverage is limited to the vfs_classify integration target.

AI use

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

@DavidM1911

Copy link
Copy Markdown
Contributor

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

Thanks!

@github-actions

Copy link
Copy Markdown

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.

@github-actions github-actions Bot added the stale No activity for 3 days; closed 4 days later unless something happens label Nov 28, 2026
@Foniass

Foniass commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Triage (#1607) – head 9851183

No open or merged PR makes the same change. #2425 tests the VFS overlay, whiteouts and open decisions on a real folder, and touches classify in only one case. This PR covers Vfs::classify_with with an injected absolutiser and no file system access. Test-only. No problems found in the diff.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

off-goal Does not bear on the current goal (world loading); waits until it is reached stale No activity for 3 days; closed 4 days later unless something happens

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants