Tests: xcl rpf --extract writes the matched records to --out #889
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/895"
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 Koro4e on 2026-11-24T07:53:51Z.
The extraction path (
--extract FRAGMENT --out FOLDERwrites each matched record's unpacked payload) had no end-to-end test ---extractappeared only as a--probeconflict rejection. This adds one that builds a small RPF9 archive with two plain shader records - the formatgpu/pack.rsscans 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
extract_writes_the_matched_records_to_the_out_folder- an archive with recordsCS_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 matchTested
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)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.stable-x86_64-pc-windows-msvc)Regression run
crates/xcl/src(the test calls the shippedxcl rpfthrough a fresh debug build)Not tested
AI use
mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #172Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-24T09:34:18Z.
Linux / AMD RDNA3 datapoint.
Merged state: head
a983bc6onto main09940bb, 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.
upstream-sync referenced this pull request2026-11-24 19:06:45 +00:00
upstream-sync referenced this pull request2026-11-24 22:05:13 +00:00
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T05:38:44Z.
Empirical test report (
a983bc6b)Verified xcl-dev/xcl PR #895 at
a983bc6bc63ff1f31e130c73591153c6002623f7in a clean, detached worktree.Hardware / environment
rustc 1.100.0 (0ef1bc386 2026-11-09), DXC1.9.2609.5 (01b62ad47). Cargo used the unoptimized test profile with debug info and incremental compilation disabled.XCL_ADAPTER=NONE_CPU_ONLYandRUST_TEST_NOCAPTURE=1. Both commands ran outsideInvoke-ArcTest.ps1with zero Arc GPU mutex hold.Commands and results
cargo test --workspace --no-runexited 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 -- --nocaptureexited 0. The case-sensitive log count was 1 passed, 0 failed, 0 ignored, 0 skipped, and 2 filtered out.AtomicU32::fetch_updateinxgameruntime.Observed behavior
The integration test generated a two-record RPF9 archive and invoked
xcl rpfwith--extract two --out <dir>. It verified successful CLI exit, aCS_two_22222222_Wrappedfile in the requested directory containing the inflated payloadDXBCtest, and the absence ofCS_one_11111111_Wrappedin 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.logand published.Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T09:41:56Z.
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!
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T20:19:27Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:26:04Z.
Triage (#1607) – head
a983bc6#874 (same author) tests
--findand only shares the synthetic-archive setup; it is a different test. Main'srpf.rsunit testextraction_preserves_duplicate_record_namesalready checks that--extract ... --outwrites the matched records, throughrpf::run. This PR adds the CLI path through the binary and checks that a record that does not match is not written. It conflicts with main'srpf_e2e.rs, which has gained a test at the end.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.