Tests: pin RPF probe rejection of non-RPF9 and missing files #1718
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!1718
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1718"
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?
@amazedturnip on GitHub · 2026-11-24 19:43 UTC · original
amazedturnip:xcl/tests-rpf-probe-rejection-contract-192613→main· +59 −0 · 1 files · 1 commits · openAdds two e2e tests pinning the bounded RPF probe's two rejection contract paths: a file with no 9FPR magic at offset 0 and a non-existent path, both rejected with exit 2 and a clear stderr message and no 'RPF9 archives' stdout summary. The tests invoke the real xcl binary via CARGO_BIN_EXE_xcl, require no GPU, and were verified against a temporary root_magic-guard disable (probe_rejects_file_without_rpf9_header failed as expected, then passed after restore).
What is in it
crates/xcl/tests/rpf_e2e.rs: addedprobe_rejects_file_without_rpf9_header(0x860 zero-byte file with no 9FPR magic -> exit 2, stderr contains 'is not an RPF9 package', and no 'RPF9 archives' stdout line).crates/xcl/tests/rpf_e2e.rs: addedprobe_rejects_missing_file(non-existent path -> exit 2, stderr naming the missing path, and no 'RPF9 archives' stdout line).Tested
AMD Radeon(TM) Graphics (driver 32.0.21043.19003, DXC 1.9.2609, native wave64),XCL_ADAPTER=radeon):cargo test --workspace -- --test-threads=1— 860 passed, 0 failed, 42 ignored (SKIPPED GPU tests: 1 (no heap windows))if !probe.root_magic {withif false {in crates/xcl/src/rpf_probe.rs and rancargo test --test rpf_e2e;probe_rejects_file_without_rpf9_headerfailed (exit code was 0 with 'RPF9 archives (headers every 2 KB): 0' on stdout). Restored the source viaCopy-Itemfrom a backup in $env:TEMP, touched the file, re-ran cargo test, and all 4 tests passed.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-24 22:28 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored.Thanks!
@JJAutoCompare on GitHub · 2026-11-25 04:02 UTC · original
XCL PR #1718 verification
Head
6c4a438b7f60a5a1583f2bb1294dc1bf7dda5c68, clean detached checkout. The diff adds two CLI integration tests incrates/xcl/tests/rpf_e2e.rs.STOR-WINLAB ran Windows 11 x64 (build 26200), AMD64 Family 23 Model 113 CPU, Intel Arc A770 (driver 32.0.101.9175), DXC 1.9.2609.5, and rustc 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc). Cargo used unoptimized profiles with debuginfo and incremental compilation disabled.
Tested
cargo build --workspaceandcargo test --workspace --no-runsucceeded outside the GPU lock. The latter built 19 test binaries.cargo test -p xcl --test rpf_e2e probe_rejects_withXCL_ADAPTER=NONE_CPU_ONLYran outside the lock. It returned 3 passed, 0 failed, 0 ignored, 0 skipped, and 1 filtered out. The filter included the existing option-conflict test.xcl rpf <path> --probe. The headerless 0x860-byte file exited 2 with the RPF9 rejection on stderr. The absent path exited 2 with the path on stderr. Both produced noRPF9 archivessummary on stdout.cargo test --workspace --no-fail-fast -- --test-threads=4ran once underInvoke-ArcTest.ps1withXCL_ADAPTER=A770andRUST_TEST_NOCAPTURE=1. The run logged the Arc backend and all four RPF tests passed. It exited 101. Summing the 20test result:lines inpr1718-suite.log(19 binaries and one doctest harness) gave 842 passed, 18 failed, and 42 ignored.Workspace failures and skips
CreateComputePipelineStateerror0x80070057. Four failed assertions for FMA, mip sampling, VALU, and pixel wave reductions. The test-title end-to-end check also failed. Dynamic depth bias produced blue where the test expected green.SKIPPED. Two were wave64 checks, one was for tiled-resource tier, one was for heap windows, and two required the debug layer. Those checks provided no coverage. The log also records early returns for missing sample data, audio, and system XGameRuntime.Not tested
Matched
mainbaseline, retail archives and title smoke runs, and other GPU adapters. Baseline status for the workspace failures remains unverified.AI use
T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr1718-suite.logand published.@throny on GitHub · 2026-11-25 18:18 UTC · original
Two contributors checked independently and found that #2075 #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.
@amazedturnip on GitHub · 2026-11-25 21:43 UTC · original
Rebased onto current main and resolved the merge conflict in crates/xcl/tests/rpf_e2e.rs by keeping both the existing rpf_rejects_unknown_options_missing_values_and_invalid_numbers test and the two new probe rejection tests (probe_rejects_file_without_rpf9_header, probe_rejects_missing_file).
cargo test --test rpf_e2e: 5 passed, 0 failed on AMD Radeon. No other changes were made.@DavidM1911 on GitHub · 2026-11-26 06:17 UTC · original
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin
@amazedturnip on GitHub · 2026-11-26 07:56 UTC · original
On the #1607 D99 hint: the three PRs test different code paths.
xcl rpf <file> --probereturns early intorpf_probe::run(crates/xcl/src/rpf.rs:161-163). That function has its own open, metadata and RPF9-magic checks (crates/xcl/src/rpf_probe.rs:121-146). #2075 and #2193 runxcl rpf <file>without--probe, so they cover only the full-scan checks incrates/xcl/src/rpf.rs:167-192. The two tests here are the only ones that exercise the probe's rejection of a non-RPF9 file and of a missing file.All three append to
crates/xcl/tests/rpf_e2e.rs, so whichever merges later needs a rebase. They do not overlap in what they test.AI use: Claude Code (Claude Opus 5.5) compared the three diffs against
mainatb49be183.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.