Tests: compare the PLS missing-path error with the host #837

Closed
github-bot wants to merge 1 commit from gh-pr/837/head into gh-pr/837/base
Owner

@⁠lucaisaiah on GitHub · 2026-11-24 06:35 UTC · original
lucaisaiah:codex/810-pls-quota-host-error → main · +11 −3 · 1 files · 1 commits · closed without merging

Fixes #810. The quota test stopped early on Wine because querying a missing directory returned error 2. Windows returned 3 for the same query.

What is in it

  • In crates/xcl/tests/pls_quota.rs, query the missing backing directory before installing the VFS hooks. Require S:\missing to fail with the exact host error and preserve all three output values.

Tested

  • Windows 11 build 26340, i9-14900K, RTX 4080 (621.24), Rust 1.100.0 MSVC, DXC 1.9.2609.5. At 0b84ae3, cargo test -p xcl --test pls_quota passed (1 passed, 0 failed, 0 ignored).
  • Full debug suite on beaa245 with this patch before commit, via cargo build --workspace and cargo test --workspace -- --test-threads=4. Cargo reported 713 passed, 0 failed, 41 ignored. Those passes include two wave64 skips (gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware) and 11 tests that returned early for missing BK2, AWC, console XG or console DXC samples.
  • Wine 10.0 under WSL2 Debian, same MSVC test binary build settings. On beaa245, wine64 baseline.exe --nocapture reproduced #810 (0 passed, 1 failed). With this patch, wine64 fixed.exe --nocapture passed (1 passed, 0 failed). Wine returned error 2 in both runs.
  • Retail title 1.0.2.1, release build on beaa245 with this patch before commit. scripts/smoke.ps1 -Game <title-folder> -Seconds 60 reached the account picker, showed 653 frames and exited 0 at the time limit with 0 crashes and 0 device removals.
  • A separate Windows probe using the title’s manifest (manifest_quota.exe --nocapture, 1 passed) verified its 2,048 MiB quota and accounted for a 579-byte file. Both missing-path calls returned error 3, and the hooked call preserved all three output values.

Not tested

  • Gameplay beyond the account picker and the full suite under Wine. The game log recorded no missing-directory quota query during the 60-second run.

AI use

  • Codex (GPT-6) wrote the test change, ran the tests and game checks, and drafted this description.
**@⁠lucaisaiah** on GitHub · 2026-11-24 06:35 UTC · [original](https://github.com/xcl-dev/xcl/pull/837) `lucaisaiah:codex/810-pls-quota-host-error` → `main` · +11 −3 · 1 files · 1 commits · closed without merging Fixes #810. The quota test stopped early on Wine because querying a missing directory returned error `2`. Windows returned `3` for the same query. **What is in it** - In `crates/xcl/tests/pls_quota.rs`, query the missing backing directory before installing the VFS hooks. Require `S:\missing` to fail with the exact host error and preserve all three output values. **Tested** - Windows 11 build 26340, i9-14900K, RTX 4080 (621.24), Rust 1.100.0 MSVC, DXC 1.9.2609.5. At `0b84ae3`, `cargo test -p xcl --test pls_quota` passed (1 passed, 0 failed, 0 ignored). - Full debug suite on `beaa245` with this patch before commit, via `cargo build --workspace` and `cargo test --workspace -- --test-threads=4`. Cargo reported 713 passed, 0 failed, 41 ignored. Those passes include two wave64 skips (`gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`) and 11 tests that returned early for missing BK2, AWC, console XG or console DXC samples. - Wine 10.0 under WSL2 Debian, same MSVC test binary build settings. On `beaa245`, `wine64 baseline.exe --nocapture` reproduced #810 (0 passed, 1 failed). With this patch, `wine64 fixed.exe --nocapture` passed (1 passed, 0 failed). Wine returned error `2` in both runs. - Retail title 1.0.2.1, release build on `beaa245` with this patch before commit. `scripts/smoke.ps1 -Game <title-folder> -Seconds 60` reached the account picker, showed 653 frames and exited `0` at the time limit with 0 crashes and 0 device removals. - A separate Windows probe using the title’s manifest (`manifest_quota.exe --nocapture`, 1 passed) verified its 2,048 MiB quota and accounted for a 579-byte file. Both missing-path calls returned error `3`, and the hooked call preserved all three output values. **Not tested** - Gameplay beyond the account picker and the full suite under Wine. The game log recorded no missing-directory quota query during the 60-second run. **AI use** - Codex (GPT-6) wrote the test change, ran the tests and game checks, and drafted this description.
Windows returns error 3 for a missing directory and Wine returns 2.
Capture the native result before installing the hooks so the test
checks the exact error the host returned on either platform.

Fixes #810

Assisted-by: Codex (GPT-6)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:34:06 +00:00
github-bot closed this pull request 2026-11-26 04:34:06 +00:00
Author
Owner

@⁠Abuudiii on GitHub · 2026-11-24 06:58 UTC · original

Independent game-free check of 0b84ae3a18b70d2700f2ffdf93db1244aaa99840 on Arch Linux, GE-Proton 11-7, Rust 1.99.1 x86_64-pc-windows-gnu (debug).

Tested: Built cargo test --locked --offline -p xcl --test pls_quota --target x86_64-pc-windows-gnu --no-run and ran the resulting integration executable with --test-threads=1 --nocapture: 1 passed, 0 failed, 0 ignored. The translated S:\missing failed with error 2, matching the unhooked host call; the caller-output preservation and final quota-exhaustion assertions passed. The ANSI OEM S:\café path also ran.

Not tested: Native Windows, full workspace, or retail smoke. No game data or GPU was needed for the test.

AI use: omp (GPT-6.2 Sol) ran the check and drafted this report.

**@⁠Abuudiii** on GitHub · 2026-11-24 06:58 UTC · [original](https://github.com/xcl-dev/xcl/pull/837#issuecomment-7124489481) Independent game-free check of `0b84ae3a18b70d2700f2ffdf93db1244aaa99840` on Arch Linux, GE-Proton 11-7, Rust 1.99.1 `x86_64-pc-windows-gnu` (debug). **Tested:** Built `cargo test --locked --offline -p xcl --test pls_quota --target x86_64-pc-windows-gnu --no-run` and ran the resulting integration executable with `--test-threads=1 --nocapture`: **1 passed, 0 failed, 0 ignored**. The translated `S:\missing` failed with error 2, matching the unhooked host call; the caller-output preservation and final quota-exhaustion assertions passed. The ANSI OEM `S:\café` path also ran. **Not tested:** Native Windows, full workspace, or retail smoke. No game data or GPU was needed for the test. **AI use:** omp (GPT-6.2 Sol) ran the check and drafted this report.
Author
Owner

@⁠milas6669 on GitHub · 2026-11-24 07:02 UTC · original

Test report on 0b84ae3 (PR head; its base is main beaa245, which is still main; no merge conflict).

Tested

  • NVIDIA GeForce RTX 3070 (32-lane waves), Intel i9-10900KF, Windows 11 Pro 10.0.26200, rustc 1.100.0 x86_64-pc-windows-msvc, debug

  • cargo test --workspace --no-fail-fast -- --test-threads=4; the same command on main beaa245 (this PR's base): 713 passed, 0 failed, 41 ignored

  • on this head: 713 passed, 0 failed, 41 ignored (the same counts as main: the PR changes the existing disk_free_space_ex_reports_pls_quota test, which passes)

  • SKIPPED (no wave64) on this GPU: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware

Not tested

  • Wine (the PR's reason is the host's error code for a missing path; I ran only on Windows, where the test passes), AMD, scripts/smoke.ps1 (test-only diff)

AI use

  • Claude Code, Claude Sonnet 5.5, ran the commands and wrote this report. I did not review the diff beyond reading it.
**@⁠milas6669** on GitHub · 2026-11-24 07:02 UTC · [original](https://github.com/xcl-dev/xcl/pull/837#issuecomment-7124552174) Test report on `0b84ae3` (PR head; its base is `main` beaa245, which is still `main`; no merge conflict). **Tested** - NVIDIA GeForce RTX 3070 (32-lane waves), Intel i9-10900KF, Windows 11 Pro 10.0.26200, rustc 1.100.0 `x86_64-pc-windows-msvc`, debug - `cargo test --workspace --no-fail-fast -- --test-threads=4`; the same command on `main` beaa245 (this PR's base): **713 passed, 0 failed, 41 ignored** - on this head: **713 passed, 0 failed, 41 ignored (the same counts as main: the PR changes the existing `disk_free_space_ex_reports_pls_quota` test, which passes)** - SKIPPED (no wave64) on this GPU: `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` **Not tested** - Wine (the PR's reason is the host's error code for a missing path; I ran only on Windows, where the test passes), AMD, `scripts/smoke.ps1` (test-only diff) **AI use** - Claude Code, Claude Sonnet 5.5, ran the commands and wrote this report. I did not review the diff beyond reading it.
Author
Owner

@⁠dcastell1 on GitHub · 2026-11-24 07:09 UTC · original

Verified on Windows 11 10.0.26300, NVIDIA GeForce RTX 5090 (driver 621.24), Rust 1.100.0 MSVC 14.44.35207, debug build, on main@beaa245:

patch -p1 < this PR            # clean, no fuzz
cargo test --workspace -- --test-threads=4
exit 0; 0 failed

the PLS missing-path error comparison is green here and the workspace keeps its verdict (737 passed on main on this box). Tree restored afterwards; hardware adapter, no Wine, no game data.

AI-assisted (opencode): applied the patch to a built tree, ran the suite, reverted it.

**@⁠dcastell1** on GitHub · 2026-11-24 07:09 UTC · [original](https://github.com/xcl-dev/xcl/pull/837#issuecomment-7124680371) Verified on Windows 11 10.0.26300, NVIDIA GeForce RTX 5090 (driver 621.24), Rust 1.100.0 MSVC 14.44.35207, debug build, on `main@beaa245`: ``` patch -p1 < this PR # clean, no fuzz cargo test --workspace -- --test-threads=4 exit 0; 0 failed ``` the PLS missing-path error comparison is green here and the workspace keeps its verdict (737 passed on `main` on this box). Tree restored afterwards; hardware adapter, no Wine, no game data. AI-assisted (opencode): applied the patch to a built tree, ran the suite, reverted it.
Author
Owner

@⁠SlopTart on GitHub · 2026-11-24 07:17 UTC · original

Linux / AMD RDNA3 datapoint.

Merged state: head 0b84ae3 onto main beaa245, clean merge.

Full suite, cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 703 passed, 10 failed, 41 ignored. Failures are the known Wine-lane set from my #42 rows plus #718 trio members; nothing here fails because of your change. This rework flips one of my two oldest stable Wine-lane failures green: disk_free_space_ex_reports_pls_quota has failed on every one of my Linux rows since #42 (Wine returns ERROR_FILE_NOT_FOUND where the test demanded ERROR_PATH_NOT_FOUND); with the host-comparison form it passes under Proton Experimental (wine-11.0) here. One heads-up from the same lane run: hle::acphal::tests::xapu_connect_returns_oom_and_cleans_up_on_failure FAILED once. It also hit one unrelated lane in the same 19-lane sweep (2/19 total), and your diff touches only tests/pls_quota.rs, so I read it as a new Wine flake, not your change - but noting it since my rows never showed it before.

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. Linux rows: #42 / #718.

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

**@⁠SlopTart** on GitHub · 2026-11-24 07:17 UTC · [original](https://github.com/xcl-dev/xcl/pull/837#issuecomment-7124831827) Linux / AMD RDNA3 datapoint. **Merged state:** head `0b84ae3` onto main `beaa245`, clean merge. **Full suite, `cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4`:** **703 passed, 10 failed, 41 ignored**. Failures are the known Wine-lane set from my #42 rows plus #718 trio members; nothing here fails because of your change. This rework **flips one of my two oldest stable Wine-lane failures green**: `disk_free_space_ex_reports_pls_quota` has failed on every one of my Linux rows since #42 (Wine returns ERROR_FILE_NOT_FOUND where the test demanded ERROR_PATH_NOT_FOUND); with the host-comparison form it passes under Proton Experimental (wine-11.0) here. One heads-up from the same lane run: `hle::acphal::tests::xapu_connect_returns_oom_and_cleans_up_on_failure` FAILED once. It also hit one unrelated lane in the same 19-lane sweep (2/19 total), and your diff touches only `tests/pls_quota.rs`, so I read it as a new Wine flake, not your change - but noting it since my rows never showed it before. **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`. Linux rows: #42 / #718. AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
Author
Owner

@⁠dcastell1 on GitHub · 2026-11-24 07:51 UTC · original

Verified on Windows 11 10.0.26300, NVIDIA GeForce RTX 5090 (driver 621.24), Rust 1.100.0 MSVC 14.44.35207, debug build, on clean main@beaa245 (713 passed, 0 failed, 41 ignored on this box):

patch -p1 < this PR            # clean, no fuzz
cargo test --workspace -- --test-threads=4
713 passed; 0 failed; 41 ignored   (exit 0)

Same count as main: the PLS missing-path comparison replaces the expectation in the existing test rather than adding one, and it passes here.

Tree restored afterwards (md5 and a full diff against a clean checkout), hardware adapter, no Wine, no game data. AI-assisted (opencode): applied the patch to a built tree, ran the suite, reverted it.

**@⁠dcastell1** on GitHub · 2026-11-24 07:51 UTC · [original](https://github.com/xcl-dev/xcl/pull/837#issuecomment-7125440593) Verified on Windows 11 10.0.26300, NVIDIA GeForce RTX 5090 (driver 621.24), Rust 1.100.0 MSVC 14.44.35207, debug build, on clean `main@beaa245` (713 passed, 0 failed, 41 ignored on this box): ``` patch -p1 < this PR # clean, no fuzz cargo test --workspace -- --test-threads=4 713 passed; 0 failed; 41 ignored (exit 0) ``` Same count as main: the PLS missing-path comparison replaces the expectation in the existing test rather than adding one, and it passes here. Tree restored afterwards (md5 and a full diff against a clean checkout), hardware adapter, no Wine, no game data. AI-assisted (opencode): applied the patch to a built tree, ran the suite, reverted it.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.