Repository navigation
Conversation
The scanner stopped with 32 bytes remaining even though its format permits a 23-byte candidate. Valid short records were found with padding but lost when they were the archive's final record. Use the actual minimum candidate size. Cover 28- and 32-byte records at the start and after a prefix, and document unpadded final-record support. A temporary native harness linked the real pack.rs with miniz_oxide 0.9.1: the short-record test failed before the change; afterward 2 tests passed (short records and bounds). This is not a Windows workspace test run. Windows/GPU tests and main/head title smoke runs remain outstanding. Assisted-by: omp (openai-codex/gpt-6-astra)
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
|
Regression run of Against the limits in CONTRIBUTING.md: 101 % of AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, AI use: Claude Code (Claude Opus 5.5) built both trees and ran |
|
Verification on RTX 3060 Ti (Windows 11): merge conflict with current |
|
Nothing has happened on this PR for 3 days, so it is marked |
|
No open or merged PR changes AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
I fixed
pack::scandropping valid short records at the end of its input. The loop required more than 32 bytes remaining, but the accepted record format needs only 23 bytes at minimum. A synthetic 28-byte record was ignored without trailing padding.What is in it
Tested
macOS Darwin 24.6.0, arm64; rustc 1.99.1, miniz_oxide 0.9.1; debug. No GPU used.
A temporary Cargo harness linked the actual repository
crates/xcl/src/gpu/pack.rsas its library, without compiling the Windows runtime or mocking the scanner.Before the fix,
cargo test --offline --manifest-path /tmp/xcl-pack-probe.ANtIu4/Cargo.toml --test short_recordsfailed: the 28-byte record returned no records.After the fix,
cargo test --offline --manifest-path /tmp/xcl-pack-probe.ANtIu4/Cargo.toml --test short_records --test bounds: 2 passed, 0 failed, 0 ignored, 0 skipped. The harness checked four short-record/prefix combinations plus short buffers and out-of-range offsets, and was removed afterward.Windows 11 Pro ARM64 10.0.26100.1742 in UTM (4 GiB VM RAM, Red Hat VirtIO GPU DOD), running x64 binaries through Windows emulation; rustc 1.100.0
x86_64-pc-windows-msvc, Windows SDK 26100. Debug build withCARGO_PROFILE_DEV_DEBUG=0,CARGO_PROFILE_TEST_DEBUG=0,CARGO_BUILD_JOBS=1; no GPU tests selected.Exact source archive
5ab17d4fc701aecb1b3b017229b08a908114a5ee, aftercargo clean -p xcl:cargo test --locked -p xcl --lib gpu::pack -- --test-threads=4: 5 passed, 0 failed, 0 ignored, 715 filtered out; no SKIPPED lines. The newshort_records_do_not_need_trailing_paddingtest ran and passed. An earlier shared-cache run reused the prior test executable and is not counted as verification of this revision.Regression run
Not tested
AI use
openai-codex/gpt-6-astra) to find and reproduce the boundary bug, write the fix and regression, run the isolated native harness and focused Windows tests, and prepare this description.