Tests: expand pls_quota integration tests for disk free space and file attributes hooks #2187

Merged
heditrigui merged 1 commit from upstream-pr/2197 into main 2026-11-30 03:04:26 +00:00
heditrigui commented 2026-11-25 08:58:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by heditrigui on 2026-11-25T08:58:45Z.


Summary

Expands native hook integration coverage in crates/xcl/tests/pls_quota.rs:

  • Validates that GetDiskFreeSpaceW and GetDiskFreeSpaceA on mounted volume aliases (P:\) succeed, return non-zero cluster dimensions, and maintain parity across wide and ANSI calls.
  • Validates that GetFileAttributesW and GetFileAttributesA correctly resolve mounted files (P:\existing.bin) and non-ASCII paths (s:/世界/nested.bin), returning matching valid attributes.
  • Validates that GetFileAttributesW on nonexistent paths (P:\missing.bin) returns INVALID_FILE_ATTRIBUTES and sets ERROR_FILE_NOT_FOUND.
  • Validates that GetFileAttributesExW with GetFileExInfoStandard retrieves accurate 64-bit file sizes for mounted files (existing.bin = 123 B, nested.bin = 456 B) and reports ERROR_FILE_NOT_FOUND on missing files.

Tested

  • python -m pytest scripts/ (25 passed in 0.48s).
  • Validated with scripts/pr_check.py --local.

Not tested

  • Retail game smoke execution (tests/ integration suites are non-runtime code).

AI use

  • Antigravity (Gemini 3.8 Flash (High))
<!-- greyfinch-sync:ivall/xcl:issue:5488211384 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2197). Originally posted by [heditrigui](https://github.com/heditrigui) on 2026-11-25T08:58:45Z. --- ### Summary Expands native hook integration coverage in `crates/xcl/tests/pls_quota.rs`: - Validates that `GetDiskFreeSpaceW` and `GetDiskFreeSpaceA` on mounted volume aliases (`P:\`) succeed, return non-zero cluster dimensions, and maintain parity across wide and ANSI calls. - Validates that `GetFileAttributesW` and `GetFileAttributesA` correctly resolve mounted files (`P:\existing.bin`) and non-ASCII paths (`s:/世界/nested.bin`), returning matching valid attributes. - Validates that `GetFileAttributesW` on nonexistent paths (`P:\missing.bin`) returns `INVALID_FILE_ATTRIBUTES` and sets `ERROR_FILE_NOT_FOUND`. - Validates that `GetFileAttributesExW` with `GetFileExInfoStandard` retrieves accurate 64-bit file sizes for mounted files (`existing.bin` = 123 B, `nested.bin` = 456 B) and reports `ERROR_FILE_NOT_FOUND` on missing files. **Tested** - `python -m pytest scripts/` (25 passed in 0.48s). - Validated with `scripts/pr_check.py --local`. **Not tested** - Retail game smoke execution (`tests/` integration suites are non-runtime code). **AI use** - Antigravity (Gemini 3.8 Flash (High))
raylitebull commented 2026-11-25 11:09:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-25T10:48:33Z.


Code review on e616da2:

  • Expanding crates/xcl/tests/pls_quota.rs cleanly covers GetDiskFreeSpaceW/A on P:\ and GetFileAttributesW/A/GetFileAttributesExW across existing, Unicode-nested (s:/世界/nested.bin), and missing files, and both CI checks are green.

Remaining before merge: Independent dual-vendor/host verification on e616da2.

<!-- greyfinch-sync:ivall/xcl:comment:7160201343 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2197#issuecomment-7160201343). Originally posted by [raylitebull](https://github.com/raylitebull) on 2026-11-25T10:48:33Z. --- Code review on `e616da2`: - Expanding `crates/xcl/tests/pls_quota.rs` cleanly covers `GetDiskFreeSpaceW/A` on `P:\` and `GetFileAttributesW/A`/`GetFileAttributesExW` across existing, Unicode-nested (`s:/世界/nested.bin`), and missing files, and both CI checks are green. **Remaining before merge:** Independent dual-vendor/host verification on `e616da2`.
tiagonleal commented 2026-11-25 13:05:09 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by tiagonleal on 2026-11-25T12:33:00Z.


Verification on NVIDIA RTX 5070 Ti (Windows 11), head e616da2a45613f51e1833d27fcfbb296330a300e

Tested

  • Head e616da2a45613f51e1833d27fcfbb296330a300e (git rev-parse HEAD of a clean worktree, no local changes, built as is). The PR was open and the head unchanged when I started and again before writing this.
  • Windows 11 Pro 10.0.26300 (Developer Mode off), NVIDIA GeForce RTX 5070 Ti 16 GB (driver 32.0.16.1742), AMD Ryzen 7 9800X3D, 32 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), cargo 1.100.0, debug profile (the cargo test default).
  • The PR changes crates/xcl/tests/pls_quota.rs, so I ran that target and not --lib: cargo test -p xcl --test pls_quota -- --test-threads=4 --nocapture: 1 passed, 0 failed, 0 ignored (about 20 s including an incremental build). Tests: disk_free_space_ex_reports_pls_quota. I read the test first: its P: is a mount in a config created under the temp directory, not a real drive, and it does not touch driver caches.
  • No SKIPPED lines in the output.

Not tested

  • An AMD host (the review asked for dual-vendor/host verification).
  • cargo test --workspace, --lib and the other test targets; release profile; Developer Mode on (off here); the retail game and xcl-smoke.

AI use

  • Claude Code created the clean worktree, built and ran the test target above, and wrote this report. No code was changed.

Run and written with Claude Code (Claude Fable 5.2 and Claude Sonnet 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7162525994 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2197#issuecomment-7162525994). Originally posted by [tiagonleal](https://github.com/tiagonleal) on 2026-11-25T12:33:00Z. --- Verification on NVIDIA RTX 5070 Ti (Windows 11), head `e616da2a45613f51e1833d27fcfbb296330a300e` **Tested** - Head `e616da2a45613f51e1833d27fcfbb296330a300e` (`git rev-parse HEAD` of a clean worktree, no local changes, built as is). The PR was open and the head unchanged when I started and again before writing this. - Windows 11 Pro 10.0.26300 (Developer Mode off), NVIDIA GeForce RTX 5070 Ti 16 GB (driver 32.0.16.1742), AMD Ryzen 7 9800X3D, 32 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), cargo 1.100.0, debug profile (the `cargo test` default). - The PR changes `crates/xcl/tests/pls_quota.rs`, so I ran that target and not `--lib`: `cargo test -p xcl --test pls_quota -- --test-threads=4 --nocapture`: 1 passed, 0 failed, 0 ignored (about 20 s including an incremental build). Tests: `disk_free_space_ex_reports_pls_quota`. I read the test first: its `P:` is a mount in a config created under the temp directory, not a real drive, and it does not touch driver caches. - No `SKIPPED` lines in the output. **Not tested** - An AMD host (the review asked for dual-vendor/host verification). - `cargo test --workspace`, `--lib` and the other test targets; release profile; Developer Mode on (off here); the retail game and `xcl-smoke`. **AI use** - Claude Code created the clean worktree, built and ran the test target above, and wrote this report. No code was changed. Run and written with Claude Code (Claude Fable 5.2 and Claude Sonnet 5.5).
Decodere commented 2026-11-27 10:03:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T10:03:44Z.


Independent desktop NVIDIA verification of PR #2197 at head e616da2a45613f51e1833d27fcfbb296330a300e (1 commit; exact parent & merge-base: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb, pre-#2555 ancestor of main).

Environment

  • GPU: NVIDIA GeForce RTX 4060 (8 GB / 7956 MiB reported by D3D12, Wave32-only Ada), driver 32.0.16.2114 (NVIDIA 621.14, WDDM 3.2)
  • CPU / RAM / OS: Intel Core i5-11400F (6C / 12T), 32 GB RAM (31.9 GiB usable), Windows 11 Home 26200 (Developer Mode off)
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC, DXC 1.9.2609.5, --release

Targeted tests & build (e616da2a)

Command Result
cargo test --release -p xcl --test pls_quota -- --nocapture (3 consecutive runs) 1 passed; 0 failed; 0 ignored; 0 filtered out × 3 (0.01s, 0.00s, 0.00s, 0 skipped; live Windows 11 VFS with 31 file hooks active exercising disk_free_space_ex_reports_pls_quota, including the newly added GetDiskFreeSpaceW, GetDiskFreeSpaceA, GetFileAttributesW, GetFileAttributesA, and GetFileAttributesExW checks across P:\ and Unicode s:/ paths)
cargo build --release -p xcl Clean build (1m 41s initial --test compile + 0.10s incremental --release build, exit 0, 0 new warnings)

Paired quiet 60 s retail smoke (title: 29640639)

Exact parent & merge-base (568e7db7729c8fa6c8f0f4b32d798faaf11462bb, cached baseline on the same machine):

xcl-smoke v1
commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1587 (PresentX 1587)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14527 MB

PR #2197 (e616da2a45613f51e1833d27fcfbb296330a300e):

xcl-smoke v1
commit: e616da2a45613f51e1833d27fcfbb296330a300e
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1565 (PresentX 1565)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14487 MB

Limits of coverage

  • This PR is test-only (crates/xcl/tests/pls_quota.rs, 0 production-code changes); the expanded pls_quota integration test passed 3/3 on live Windows 11 NTFS with all 31 VFS file hooks active.
  • The 60 s retail smoke confirms non-regression of the unchanged runtime binary at this commit (single-run frame/commit delta vs. cached parent reflects normal startup variance, not this PR).

AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).

<!-- greyfinch-sync:ivall/xcl:comment:7215427292 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2197#issuecomment-7215427292). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-27T10:03:44Z. --- Independent desktop NVIDIA verification of **PR #2197** at head `e616da2a45613f51e1833d27fcfbb296330a300e` (`1` commit; exact parent & merge-base: `568e7db7729c8fa6c8f0f4b32d798faaf11462bb`, pre-`#2555` ancestor of `main`). ### Environment - **GPU:** NVIDIA GeForce RTX 4060 (8 GB / `7956 MiB` reported by D3D12, Wave32-only Ada), driver `32.0.16.2114` (NVIDIA `621.14`, WDDM 3.2) - **CPU / RAM / OS:** Intel Core i5-11400F (6C / 12T), 32 GB RAM (`31.9 GiB` usable), Windows 11 Home `26200` (Developer Mode off) - **Toolchain:** `rustc 1.100.0 (0ef1bc386 2026-11-09)` MSVC, DXC `1.9.2609.5`, `--release` ### Targeted tests & build (`e616da2a`) | Command | Result | | --- | --- | | `cargo test --release -p xcl --test pls_quota -- --nocapture` (3 consecutive runs) | `1 passed; 0 failed; 0 ignored; 0 filtered out` × 3 (`0.01s`, `0.00s`, `0.00s`, `0` skipped; live Windows 11 VFS with `31` file hooks active exercising `disk_free_space_ex_reports_pls_quota`, including the newly added `GetDiskFreeSpaceW`, `GetDiskFreeSpaceA`, `GetFileAttributesW`, `GetFileAttributesA`, and `GetFileAttributesExW` checks across `P:\` and Unicode `s:/` paths) | | `cargo build --release -p xcl` | Clean build (`1m 41s` initial `--test` compile + `0.10s` incremental `--release` build, exit `0`, `0` new warnings) | ### Paired quiet 60 s retail smoke (`title: 29640639`) Exact parent & merge-base (`568e7db7729c8fa6c8f0f4b32d798faaf11462bb`, cached baseline on the same machine): ``` xcl-smoke v1 commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1587 (PresentX 1587) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14527 MB ``` PR #2197 (`e616da2a45613f51e1833d27fcfbb296330a300e`): ``` xcl-smoke v1 commit: e616da2a45613f51e1833d27fcfbb296330a300e gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1565 (PresentX 1565) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14487 MB ``` ### Limits of coverage - This PR is test-only (`crates/xcl/tests/pls_quota.rs`, `0` production-code changes); the expanded `pls_quota` integration test passed `3/3` on live Windows 11 NTFS with all `31` VFS file hooks active. - The 60 s retail smoke confirms non-regression of the unchanged runtime binary at this commit (single-run frame/commit delta vs. cached parent reflects normal startup variance, not this PR). *AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).*
throny commented 2026-11-28 23:26:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T23:26:15Z.


merge-check claim
head: e616da2a45

<!-- greyfinch-sync:ivall/xcl:comment:7247429880 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2197#issuecomment-7247429880). Originally posted by [throny](https://github.com/throny) on 2026-11-28T23:26:15Z. --- merge-check claim head: e616da2a45613f51e1833d27fcfbb296330a300e
throny commented 2026-11-29 00:11:34 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-29T00:11:34Z.


merge-check
base: 851bf7f9
head: e616da2a45
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2596 passed, 0 failed, 49 ignored (27 SKIPPED lines). Base alone at 851bf7f9: 2596 passed, 0 failed, 49 ignored. The count equals the base's because the PR extends existing tests.
review: no blocking finding; tests only, all hunks read. The new checks do not depend on this machine's free space: they compare sectors per cluster and bytes per sector and only require cluster counts above zero. The folder is unique per process and is removed on drop, also after a failed assert. Minor: the non-Ex free-space call does not apply the save-data quota on main, and the test does not look at that either way.
performance: none (tests only).
verdict: safe to merge
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).

<!-- greyfinch-sync:ivall/xcl:comment:7247939834 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2197#issuecomment-7247939834). Originally posted by [throny](https://github.com/throny) on 2026-11-29T00:11:34Z. --- merge-check base: 851bf7f9 head: e616da2a45613f51e1833d27fcfbb296330a300e merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2596 passed, 0 failed, 49 ignored (27 SKIPPED lines). Base alone at 851bf7f9: 2596 passed, 0 failed, 49 ignored. The count equals the base's because the PR extends existing tests. review: no blocking finding; tests only, all hunks read. The new checks do not depend on this machine's free space: they compare sectors per cluster and bytes per sector and only require cluster counts above zero. The folder is unique per process and is removed on drop, also after a failed assert. Minor: the non-Ex free-space call does not apply the save-data quota on main, and the test does not look at that either way. performance: none (tests only). verdict: safe to merge hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).
relativespace2K commented 2026-11-30 02:12:43 +00:00 (Migrated from github.com)

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


merge-check
base: 53e85fb1
head: e616da2a45
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2788 passed, 6 failed, 49 ignored; the count is the base's own because the PR extends an existing test rather than adding one, and --test pls_quota passed. 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. 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; tests only, crates/xcl/tests/pls_quota.rs, every hunk read. The added assertions cover the non-Ex GetDiskFreeSpaceW/A on the mounted alias, GetFileAttributesW/A on an existing file and on a non-ASCII nested path, the missing-file case with ERROR_FILE_NOT_FOUND, and GetFileAttributesExW with standard info; the sizes they expect (123 and 456 bytes) are the ones the fixture at the top of the file writes, so the checks are pinned to the fixture and not to whatever the disk holds. One small note, not blocking: the GetDiskFreeSpaceW block asserts spc > 0 && bps > 0 && total_clusters > 0 and that the ANSI variant agrees, but not the free/total cluster numbers against the quota, which the Ex case above already does.
performance: none: tests only.
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:7266803902 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2197#issuecomment-7266803902). Originally posted by [relativespace2K](https://github.com/relativespace2K) on 2026-11-30T02:12:43Z. --- merge-check base: 53e85fb1 head: e616da2a45613f51e1833d27fcfbb296330a300e merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2788 passed, 6 failed, 49 ignored; the count is the base's own because the PR extends an existing test rather than adding one, and `--test pls_quota` passed. 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. 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; tests only, `crates/xcl/tests/pls_quota.rs`, every hunk read. The added assertions cover the non-`Ex` `GetDiskFreeSpaceW`/`A` on the mounted alias, `GetFileAttributesW`/`A` on an existing file and on a non-ASCII nested path, the missing-file case with `ERROR_FILE_NOT_FOUND`, and `GetFileAttributesExW` with standard info; the sizes they expect (123 and 456 bytes) are the ones the fixture at the top of the file writes, so the checks are pinned to the fixture and not to whatever the disk holds. One small note, not blocking: the `GetDiskFreeSpaceW` block asserts `spc > 0 && bps > 0 && total_clusters > 0` and that the ANSI variant agrees, but not the free/total cluster numbers against the quota, which the `Ex` case above already does. performance: none: tests only. 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.
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!2187
No description provided.