Tests: expand rpf integration tests for missing arguments and empty-TOC archives #2193
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!2193
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2193"
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 08:41 UTC · original
heditrigui:tests/rpf-cli-and-empty-toc-suite→main· +65 −0 · 1 files · 1 commits · openSummary
Expands integration testing in
crates/xcl/tests/rpf_e2e.rsto cover CLI error paths, missing arguments, and empty-TOC archives:xcl rpfwithout arguments exits with code 2, prints usage help containingxcl rpf <package.rpf>to stdout, and writes nothing to stderr.xcl rpf: <path>to stderr with exit code 2.9FPRmagic reportis not an RPF9 packageto stderr with exit code 2.no records with plain names, invoke the probe summary, and exit cleanly with code 0.Tested
python -m pytest scripts/(25 passed in 0.50s).scripts/pr_check.py --local.Not tested
tests/integration suites are non-runtime code).AI use
@raylitebull on GitHub · 2026-11-25 10:48 UTC · original
Code review on
2df583d:rpf_missing_arguments_prints_help_and_exits_two,rpf_nonexistent_file_and_invalid_magic_report_errors, andrpf_header_with_no_records_summarizes_and_exits_zeroincrates/xcl/tests/rpf_e2e.rscleanly verifies CLI diagnostics and empty-TOC handling, with both CI checks green.Remaining before merge: Independent verification on
2df583d.@tiagonleal on GitHub · 2026-11-25 12:32 UTC · original
Verification on NVIDIA RTX 5070 Ti (Windows 11), head
2df583d3aca6e2d358880ecb4e762939a51b2781Tested
2df583d3aca6e2d358880ecb4e762939a51b2781(git rev-parse HEADof a clean worktree, no local changes, built as is). The PR was open and the head unchanged when I started and again before writing this.cargo testdefault).crates/xcl/tests/rpf_e2e.rs, so I ran that target and not--lib:cargo test -p xcl --test rpf_e2e -- --test-threads=4 --nocapture: 5 passed, 0 failed, 0 ignored (about 20 s including an incremental build). Tests:rpf_missing_arguments_prints_help_and_exits_two,rpf_nonexistent_file_and_invalid_magic_report_errors,rpf_header_with_no_records_summarizes_and_exits_zero(the three new ones),full_scan_and_streaming_probe_agree_on_header_evidence,explicit_probe_rejects_conflicting_options.SKIPPEDlines in the output.Not tested
cargo test --workspace,--liband the other test targets; release profile; Developer Mode on (off here); the retail game andxcl-smoke.AI use
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 #2075 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.