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

Open
github-bot wants to merge 1 commit from github-bot/gh-2197 into main AGit
Owner

@⁠heditrigui on GitHub · 2026-11-25 08:58 UTC · original
heditrigui:tests/pls-quota-and-attributes-suite → main · +84 −2 · 1 files · 1 commits · open

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))
**@⁠heditrigui** on GitHub · 2026-11-25 08:58 UTC · [original](https://github.com/xcl-dev/xcl/pull/2197) `heditrigui:tests/pls-quota-and-attributes-suite` → `main` · +84 −2 · 1 files · 1 commits · open ### 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))
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:22:47 +00:00
Author
Owner

@⁠raylitebull on GitHub · 2026-11-25 10:48 UTC · original

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.

**@⁠raylitebull** on GitHub · 2026-11-25 10:48 UTC · [original](https://github.com/xcl-dev/xcl/pull/2197#issuecomment-7160201343) 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`.
Author
Owner

@⁠tiagonleal on GitHub · 2026-11-25 12:33 UTC · original

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).

**@⁠tiagonleal** on GitHub · 2026-11-25 12:33 UTC · [original](https://github.com/xcl-dev/xcl/pull/2197#issuecomment-7162525994) 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).
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2197/head:github-bot/gh-2197'
git switch 'github-bot/gh-2197'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2197'
git switch 'github-bot/gh-2197'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2197'
git switch 'github-bot/gh-2197'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2197'
git switch 'main'
git merge --squash 'github-bot/gh-2197'
git switch 'main'
git merge --ff-only 'github-bot/gh-2197'
git switch 'main'
git merge 'github-bot/gh-2197'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.