Tests: xcl rpf --find prints only the records its fragment matches #874
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!874
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-874"
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?
@Koro4e on GitHub · 2026-11-24 07:10 UTC · original
Koro4e:tests-rpf-find→main· +53 −0 · 1 files · 1 commits · opentests/rpf_e2e.rscovered--findonly as a--probeconflict rejection; the actual filtering path (--find FRAGMENTprints only the records whose name contains the fragment) had no test. 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 both the hit and the empty case.Tests only - no code touched.
What is in it
find_filters_records_by_name_fragment- an archive with recordsCS_one_11111111_Wrapped/CS_two_22222222_Wrapped;--find oneprints the one record and not the other,--find no_such_nameprints neither; both runs exit 0Tested
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
@SlopTart on GitHub · 2026-11-24 08:09 UTC · original
Linux / AMD RDNA3 datapoint.
Merged state: head
734d7a6onto main1ec4c98, clean merge.Full suite,
cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 706 passed, 10 failed, 41 ignored. Failures = the known Wine-lane set from my #42 rows plus #718 trio members and a hit ofgpu_mirror_upload_follows_cpu_writes_and_later_mapping_changes(new flake, see #718 addendum).xcl rpf --findrecord-filter tests 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.
@JJAutoCompare on GitHub · 2026-11-25 05:50 UTC · original
Empirical test report (
734d7a6b)Hardware / environment
1.100.0 (0ef1bc386 2026-11-09)and DXC1.9.2609.5 (01b62ad47). Cargo used the unoptimized test profile with incremental compilation and debug info disabled.XCL_ADAPTER=NONE_CPU_ONLYandRUST_TEST_NOCAPTURE=1. Both commands ran outsideInvoke-ArcTest.ps1, with zero Arc GPU mutex hold.Commands and results
cargo test --workspace --no-runexited 0 and built the workspace test executables.cargo test -p xcl --test rpf_e2e find_filters_records_by_name_fragment -- --nocaptureexited 0. The focused log records 1 passed, 0 failed, 0 ignored, 0SKIPPEDlines, and 2 filtered out. The test finished in 3.16 s.AtomicU32::fetch_updateinxgameruntime.Observed behavior
The integration test wrote a synthetic RPF9 with two plain-name records and ran the compiled
xclbinary twice. Both invocations exited successfully. With--find one, stdout containedCS_one_11111111_Wrappedand excludedCS_two_22222222_Wrapped. With--find no_such_name, stdout contained neither record name. The exercised CLI path scanned and inflated archive bytes on the CPU without initializing D3D12.Not tested
The full GPU workspace suite and game smoke runs were omitted. The focused run used a synthetic fixture.
AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr874-focused.logand published.@DavidM1911 on GitHub · 2026-11-25 10:02 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!
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.Merge
Merge the changes and update on Forgejo.