Tests: expand pls_quota integration tests for disk free space and file attributes hooks #2187
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2197"
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 heditrigui on 2026-11-25T08:58:45Z.
Summary
Expands native hook integration coverage in
crates/xcl/tests/pls_quota.rs:GetDiskFreeSpaceWandGetDiskFreeSpaceAon mounted volume aliases (P:\) succeed, return non-zero cluster dimensions, and maintain parity across wide and ANSI calls.GetFileAttributesWandGetFileAttributesAcorrectly resolve mounted files (P:\existing.bin) and non-ASCII paths (s:/世界/nested.bin), returning matching valid attributes.GetFileAttributesWon nonexistent paths (P:\missing.bin) returnsINVALID_FILE_ATTRIBUTESand setsERROR_FILE_NOT_FOUND.GetFileAttributesExWwithGetFileExInfoStandardretrieves accurate 64-bit file sizes for mounted files (existing.bin= 123 B,nested.bin= 456 B) and reportsERROR_FILE_NOT_FOUNDon missing files.Tested
python -m pytest scripts/(25 passed in 0.48s).scripts/pr_check.py --local.Not tested
tests/integration suites are non-runtime code).AI use
Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-25T10:48:33Z.
Code review on
e616da2:crates/xcl/tests/pls_quota.rscleanly coversGetDiskFreeSpaceW/AonP:\andGetFileAttributesW/A/GetFileAttributesExWacross 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.Imported from ivall/xcl. Originally posted by tiagonleal on 2026-11-25T12:33:00Z.
Verification on NVIDIA RTX 5070 Ti (Windows 11), head
e616da2a45613f51e1833d27fcfbb296330a300eTested
e616da2a45613f51e1833d27fcfbb296330a300e(git rev-parse HEADof 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.cargo testdefault).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: itsP:is a mount in a config created under the temp directory, not a real drive, and it does not touch driver caches.SKIPPEDlines in the output.Not tested
cargo test --workspace,--liband the other test targets; release profile; Developer Mode on (off here); the retail game andxcl-smoke.AI use
Run and written with Claude Code (Claude Fable 5.2 and Claude Sonnet 5.5).
Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T10:03:44Z.
Independent desktop NVIDIA verification of PR #2197 at head
e616da2a45613f51e1833d27fcfbb296330a300e(1commit; exact parent & merge-base:568e7db7729c8fa6c8f0f4b32d798faaf11462bb, pre-#2555ancestor ofmain).Environment
7956 MiBreported by D3D12, Wave32-only Ada), driver32.0.16.2114(NVIDIA621.14, WDDM 3.2)31.9 GiBusable), Windows 11 Home26200(Developer Mode off)rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC, DXC1.9.2609.5,--releaseTargeted tests & build (
e616da2a)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,0skipped; live Windows 11 VFS with31file hooks active exercisingdisk_free_space_ex_reports_pls_quota, including the newly addedGetDiskFreeSpaceW,GetDiskFreeSpaceA,GetFileAttributesW,GetFileAttributesA, andGetFileAttributesExWchecks acrossP:\and Unicodes:/paths)cargo build --release -p xcl1m 41sinitial--testcompile +0.10sincremental--releasebuild, exit0,0new warnings)Paired quiet 60 s retail smoke (
title: 29640639)Exact parent & merge-base (
568e7db7729c8fa6c8f0f4b32d798faaf11462bb, cached baseline on the same machine):PR #2197 (
e616da2a45613f51e1833d27fcfbb296330a300e):Limits of coverage
crates/xcl/tests/pls_quota.rs,0production-code changes); the expandedpls_quotaintegration test passed3/3on live Windows 11 NTFS with all31VFS file hooks active.AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
Imported from ivall/xcl. Originally posted by throny on 2026-11-28T23:26:15Z.
merge-check claim
head:
e616da2a45Imported from ivall/xcl. Originally posted by throny on 2026-11-29T00:11:34Z.
merge-check
base:
851bf7f9head:
e616da2a45merge: 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).
Imported from ivall/xcl. Originally posted by relativespace2K on 2026-11-30T02:12:43Z.
merge-check
base:
53e85fb1head:
e616da2a45merge: 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_quotapassed. 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 base53e85fb1alone (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-ExGetDiskFreeSpaceW/Aon the mounted alias,GetFileAttributesW/Aon an existing file and on a non-ASCII nested path, the missing-file case withERROR_FILE_NOT_FOUND, andGetFileAttributesExWwith 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: theGetDiskFreeSpaceWblock assertsspc > 0 && bps > 0 && total_clusters > 0and that the ANSI variant agrees, but not the free/total cluster numbers against the quota, which theExcase 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.