Tests: expand rpf CLI integration tests for missing args, invalid files, and extraction #2075
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!2075
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2075"
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?
@heditrigui on GitHub · 2026-11-25 03:02 UTC · original
heditrigui:tests/rpf-e2e-suite→main· +123 −13 · 1 files · 1 commits · openSummary
Expands end-to-end integration test coverage for the
xcl rpfCLI subcommand incrates/xcl/tests/rpf_e2e.rs:xcl rpfprints usage help and exits with code 2.is not an RPF9 packageon stderr and exits with code 2.VS_Main.fssmandPS_Main.fssm), verifying:--find <fragment>filters listing output.--extract <fragment> --out <dir>extracts matching records atomically, verifies payload byte-for-byte fidelity, and leaves non-matching records unextracted.Tested
python -m pytest scripts/(25 passed in 0.76s).scripts/pr_check.py --local.Not tested
tests/integration suites are non-runtime code).AI use
@heditrigui on GitHub · 2026-11-25 03:19 UTC · original
Thanks for the thorough independent Windows run and precise breakdown @JJAutoCompare!
Addressed both findings in updated head
c6ec336:rpf_missing_arguments_prints_help_and_exits_twoto assert on capturedstdout(matching the CLI fallback'sprint!("{HELP}")dispatch inmain.rs)."VS_Main.fssm"/"PS_Main.fssm"to valid identifier tokens"VS_Main"/"PS_Main"without dots (matching the RPF9 shader pack convention accepted bypack::scanand verifying extraction to matching paths).@JJAutoCompare on GitHub · 2026-11-25 03:09 UTC · original · edited 2026-11-25 03:37 UTC
PR #2075 Windows RPF CLI test report
Tested
0d7d24317f5bdb3cc8ae45b69004923b657d2befbefore and after the run. The reused detached checkout was clean at that SHA both times. The PR discussion was empty at both checks.26200.9974, AMD Ryzen 7 3800X, Rust1.100.0(0ef1bc386,x86_64-pc-windows-msvc), Cargo1.100.0(3acc79c0c), unoptimized Cargo test profile with debug info disabled. CPU only. DXC1.9.2609.5was present and configured. These cases did not invoke it.rpf_missing_arguments_prints_help_and_exits_two— The CLI exited 2. The test failed atrpf_e2e.rs:97because captured stderr lackedxcl rpf <package.rpf>. The CLI fallback usesprint!to write help to stdout. CLI dispatchrpf_missing_file_reports_error_and_exits_two— Passed. The CLI exited 2 and stderr containedxcl rpf:.rpf_listing_filtering_and_extraction— The CLI exited successfully on the checked-in synthetic RPF9 fixture, then the test failed atrpf_e2e.rs:149. Listing reportedno records with plain nameswhere the fixture expected2 records. The failure prevented the subsequent--findand--extractinvocations and the byte-for-byte comparison ofPS_Main.fssm.Process environment set
CARGO_TARGET_DIR=L:/XclTooling/pr1778-2e2ee55-20261125-020159/target,CARGO_BUILD_JOBS=2,CARGO_INCREMENTAL=0,CARGO_PROFILE_DEV_DEBUG=0,CARGO_PROFILE_TEST_DEBUG=0, andXCL_DXC_DIR=$env:LOCALAPPDATA/XclTooling/dxc-1.9.2609/bin/x64. BothTEMPandTMPwere set toL:/XclTooling/pr2075/pr2075-0d7d243-20261125T030622362Z/temp. Raw stdout, stderr and exit-code logs are in the parent directory.Not tested
AI use
gpt-6.2-sol) ran the checked-in cases and wrote this report from the logs and checked-in assertions.Follow-up on
c6ec336Tested
c6ec336208before and after this rerun.26200.9974, AMD Ryzen 7 3800X, Rust1.100.0(0ef1bc386,x86_64-pc-windows-msvc), Cargo1.100.0(3acc79c0c), MSVC19.44.35230.0, linker14.44.35230.0. The synthetic archive cases exercised CPU file I/O, scanning and decompression. Arc A77032.0.101.9175and DXC/DXIL1.9.2609.5were installed. These cases had no optional GPU or DXC path.0. Both Cargo stdout, stderr and exit logs were inspected. The harness captures child CLI streams internally. Its passing assertions established the following observations.rpf_missing_arguments_prints_help_and_exits_twoobserved CLI exit2andxcl rpf <package.rpf>in stdout.rpf_listing_filtering_and_extractionobserved successful CLI exits for all three invocations. Listing stdout contained2 records,VS_Main,PS_Mainand the extension summary.--find VSreturnedVS_Mainand excludedPS_Main.--extract PSreported one extraction, wrotePS_Mainbyte-for-byte asTEST_PIXEL_SHADER_DATA_5678, and left noVS_Mainfile. Neither selected fixture asserts child stderr.The run used the unoptimized test profile with dev and test debug info disabled, two Cargo jobs,
CARGO_INCREMENTAL=0, andCARGO_TARGET_DIR=L:/XclTooling/pr1844-71f2ceb-t3-737e5ee5/target.TEMPandTMPused this report’s siblingtempdirectory.XCL_ADAPTERwas set to an unmatched value.Not tested
AI use
gpt-6.2-sol) ran the two checked-in cases, inspected the fixtures and logs, and wrote this report.@DavidM1911 on GitHub · 2026-11-25 05:09 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!
@raylitebull on GitHub · 2026-11-25 11:03 UTC · original
Code review on
c6ec336(crates/xcl/tests/rpf_e2e.rs):temp_path, ignoring teardownremove_fileerrors, and adding the four CLI tests (rpf_missing_arguments_prints_help_and_exits_two,rpf_missing_file_reports_error_and_exits_two,rpf_non_rpf9_file_reports_error_and_exits_two,rpf_listing_filtering_and_extraction) cleanly covers thexcl rpfsubcommand, and both CI checks are green.Remaining before merge: Independent Windows verification of
cargo test -p xcl --test rpf_e2eonc6ec336(prior Arc verification was on0d7d243).@tiagonleal on GitHub · 2026-11-25 14:09 UTC · original
Verification on NVIDIA RTX 5070 Ti (Windows 11), head
c6ec336208a8051693d2c2ccff785a4f6405fe3aTested
c6ec336208a8051693d2c2ccff785a4f6405fe3a(git rev-parse HEADof a clean detached worktree, no local changes, built as is). The PR was open and the head unchanged when I started and again before writing this. The earlier verification in the thread was on0d7d243.cargo testdefault).crates/xcl/tests/rpf_e2e.rs, so I ran that target:cargo test -p xcl --test rpf_e2e -- --test-threads=4 --nocapture: 6 passed, 0 failed, 0 ignored (0.44 s after the build). Tests:rpf_missing_arguments_prints_help_and_exits_two,rpf_missing_file_reports_error_and_exits_two,rpf_non_rpf9_file_reports_error_and_exits_two,rpf_listing_filtering_and_extraction(the four new ones),full_scan_and_streaming_probe_agree_on_header_evidence,explicit_probe_rejects_conflicting_options.SKIPPEDlines in the output.git status --shortwas empty afterwards.Not tested
cargo test --workspace,--liband the other test targets; release profile; the retail game andxcl-smoke.Run and written with Claude Code (Claude Fable 5.2 and Claude Sonnet 5.5).
@throny on GitHub · 2026-11-25 18:18 UTC · original
Two contributors checked independently and found that #1718 #2193 solves the same problem in a different way: #1607, group D99. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.
This is a hint from the community triage in #1607, not a maintainer decision.
AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
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.