Tests: xcl rpf --extract writes the matched records to --out #895

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

@⁠Koro4e on GitHub · 2026-11-24 07:53 UTC · original
Koro4e:tests-rpf-extract → main · +48 −0 · 1 files · 1 commits · open

The extraction path (--extract FRAGMENT --out FOLDER writes each matched record's unpacked payload) had no end-to-end test - --extract appeared only as a --probe conflict rejection. This adds one that builds a small RPF9 archive with two plain shader records - the format gpu/pack.rs scans without a TOC, using the same record layout its unit tests use - and checks what lands in the output folder.

Tests only - no code touched.

What is in it

  • crates/xcl/tests/rpf_e2e.rs: extract_writes_the_matched_records_to_the_out_folder - an archive with records CS_one_11111111_Wrapped / CS_two_22222222_Wrapped; --extract two --out <tmp> writes exactly one file, CS_two_22222222_Wrapped, with the record's unpacked payload, and nothing for the record that did not match

Tested

  • cargo test -p xcl --test rpf_e2e: 3 passed (the new one plus the two existing), 0 failed, 0 ignored; the debug build is clean apart from the one pre-existing deprecation warning (std::sync::atomic::Atomic::<u32>::fetch_update, hle/xgameruntime/mod.rs)
  • the whole suite was not rerun on this PR: the GPU is busy with another process on this machine and most of the remaining tests need it. The last full-suite run on this machine, on main earlier today: cargo test --workspace --no-fail-fast -- --test-threads=1: 708 passed, 5 failed, 41 ignored, 17 test binaries; the 5 failures are the GPU tests' VRM/device-removed cascade on this 12 GiB RTX 3060 (driver 617.14), each passes when run on its own. Environmental, unrelated to this change.
  • Windows 11 build 26200, Rust 1.100.0 (stable-x86_64-pc-windows-msvc)

Regression run

  • not needed: no change to crates/xcl/src (the test calls the shipped xcl rpf through a fresh debug build)

Not tested

  • AMD GPUs; the retail title

AI use

  • AI-assisted: yes. Written with an AI agent (DeepAI Code) with GLM 5.3 Flash (Z.ai): found the gap, wrote the test and this description.
**@⁠Koro4e** on GitHub · 2026-11-24 07:53 UTC · [original](https://github.com/xcl-dev/xcl/pull/895) `Koro4e:tests-rpf-extract` → `main` · +48 −0 · 1 files · 1 commits · open The extraction path (`--extract FRAGMENT --out FOLDER` writes each matched record's unpacked payload) had no end-to-end test - `--extract` appeared only as a `--probe` conflict rejection. This adds one that builds a small RPF9 archive with two plain shader records - the format `gpu/pack.rs` scans without a TOC, using the same record layout its unit tests use - and checks what lands in the output folder. Tests only - no code touched. **What is in it** - crates/xcl/tests/rpf_e2e.rs: `extract_writes_the_matched_records_to_the_out_folder` - an archive with records `CS_one_11111111_Wrapped` / `CS_two_22222222_Wrapped`; `--extract two --out <tmp>` writes exactly one file, `CS_two_22222222_Wrapped`, with the record's unpacked payload, and nothing for the record that did not match **Tested** - `cargo test -p xcl --test rpf_e2e`: 3 passed (the new one plus the two existing), 0 failed, 0 ignored; the debug build is clean apart from the one pre-existing deprecation warning (`std::sync::atomic::Atomic::<u32>::fetch_update`, hle/xgameruntime/mod.rs) - the whole suite was not rerun on this PR: the GPU is busy with another process on this machine and most of the remaining tests need it. The last full-suite run on this machine, on main earlier today: `cargo test --workspace --no-fail-fast -- --test-threads=1`: 708 passed, 5 failed, 41 ignored, 17 test binaries; the 5 failures are the GPU tests' VRM/device-removed cascade on this 12 GiB RTX 3060 (driver 617.14), each passes when run on its own. Environmental, unrelated to this change. - Windows 11 build 26200, Rust 1.100.0 (`stable-x86_64-pc-windows-msvc`) **Regression run** - not needed: no change to `crates/xcl/src` (the test calls the shipped `xcl rpf` through a fresh debug build) **Not tested** - AMD GPUs; the retail title **AI use** - AI-assisted: yes. Written with an AI agent (DeepAI Code) with GLM 5.3 Flash (Z.ai): found the gap, wrote the test and this description.
The extraction path (a name match written under --out) had no
end-to-end test; --extract appeared only as a --probe rejection
case. This builds a small RPF9 with two plain shader records - the
format gpu/pack.rs scans without a TOC, using the record layout its
unit tests use - and checks --extract two --out creates exactly the
CS_two file with the record's unpacked payload and nothing else.

Assisted-by: DeepAI Code (GLM 5.3 Flash)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:36:00 +00:00
Author
Owner

@⁠SlopTart on GitHub · 2026-11-24 09:34 UTC · original

Linux / AMD RDNA3 datapoint.

Merged state: head a983bc6 onto main 09940bb, clean merge.

Full suite, cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 707 passed, 10 failed, 41 ignored; failures are the known Wine-lane set from my #42 rows plus this rig's title-textures flake family (see #718). rpf --extract green.

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.

**@⁠SlopTart** on GitHub · 2026-11-24 09:34 UTC · [original](https://github.com/xcl-dev/xcl/pull/895#issuecomment-7127596997) Linux / AMD RDNA3 datapoint. **Merged state:** head `a983bc6` onto main `09940bb`, clean merge. **Full suite, `cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4`:** **707 passed, 10 failed, 41 ignored**; failures are the known Wine-lane set from my #42 rows plus this rig's title-textures flake family (see #718). rpf --extract green. **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.
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 05:38 UTC · original

Empirical test report (a983bc6b)

Verified xcl-dev/xcl PR #895 at a983bc6bc63ff1f31e130c73591153c6002623f7 in a clean, detached worktree.

Hardware / environment

  • Windows x64 build 26200 on an AMD64 CPU (family 23, model 113, stepping 0). The focused test uses CPU decompression and filesystem I/O.
  • rustc 1.100.0 (0ef1bc386 2026-11-09), DXC 1.9.2609.5 (01b62ad47). Cargo used the unoptimized test profile with debug info and incremental compilation disabled.
  • The focused run used XCL_ADAPTER=NONE_CPU_ONLY and RUST_TEST_NOCAPTURE=1. Both commands ran outside Invoke-ArcTest.ps1 with zero Arc GPU mutex hold.

Commands and results

  • cargo test --workspace --no-run exited 0 and built the workspace test binaries. It executed no tests.
  • cargo test -p xcl --test rpf_e2e extract_writes_the_matched_records_to_the_out_folder -- --nocapture exited 0. The case-sensitive log count was 1 passed, 0 failed, 0 ignored, 0 skipped, and 2 filtered out.
  • Both commands emitted a Rust deprecation warning for AtomicU32::fetch_update in xgameruntime.

Observed behavior

The integration test generated a two-record RPF9 archive and invoked xcl rpf with --extract two --out <dir>. It verified successful CLI exit, a CS_two_22222222_Wrapped file in the requested directory containing the inflated payload DXBCtest, and the absence of CS_one_11111111_Wrapped in that directory.

Not tested

The full GPU workspace suite and game smoke runs were omitted. The test used generated archive data.

AI use

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

**@⁠JJAutoCompare** on GitHub · 2026-11-25 05:38 UTC · [original](https://github.com/xcl-dev/xcl/pull/895#issuecomment-7153994254) ### Empirical test report (a983bc6b) Verified xcl-dev/xcl PR #895 at `a983bc6bc63ff1f31e130c73591153c6002623f7` in a clean, detached worktree. **Hardware / environment** - Windows x64 build 26200 on an AMD64 CPU (family 23, model 113, stepping 0). The focused test uses CPU decompression and filesystem I/O. - `rustc 1.100.0 (0ef1bc386 2026-11-09)`, DXC `1.9.2609.5 (01b62ad47)`. Cargo used the unoptimized test profile with debug info and incremental compilation disabled. - The focused run used `XCL_ADAPTER=NONE_CPU_ONLY` and `RUST_TEST_NOCAPTURE=1`. Both commands ran outside `Invoke-ArcTest.ps1` with zero Arc GPU mutex hold. **Commands and results** - `cargo test --workspace --no-run` exited 0 and built the workspace test binaries. It executed no tests. - `cargo test -p xcl --test rpf_e2e extract_writes_the_matched_records_to_the_out_folder -- --nocapture` exited 0. The case-sensitive log count was 1 passed, 0 failed, 0 ignored, 0 skipped, and 2 filtered out. - Both commands emitted a Rust deprecation warning for `AtomicU32::fetch_update` in `xgameruntime`. **Observed behavior** The integration test generated a two-record RPF9 archive and invoked `xcl rpf` with `--extract two --out <dir>`. It verified successful CLI exit, a `CS_two_22222222_Wrapped` file in the requested directory containing the inflated payload `DXBCtest`, and the absence of `CS_one_11111111_Wrapped` in that directory. **Not tested** The full GPU workspace suite and game smoke runs were omitted. The test used generated archive data. **AI use** Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against `pr895-focused.log` and published.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 09:41 UTC · original

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

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 09:41 UTC · [original](https://github.com/xcl-dev/xcl/pull/895#issuecomment-7158681469) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
This pull request has changes conflicting with the target branch.
  • crates/xcl/tests/rpf_e2e.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

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