Repository navigation
test(interop): reintroduce parallel-threshold-trip with sha256 byte-identity assertion (PIP-9.c) - #4738
Merged
Conversation
1 of 4 tasks
…dentity assertion (PIP-9.c) Reintroduce the parallel-threshold-trip regression coverage that PR #4725 removed when it reverted the parallel-receive-delta default-on flip after PIP-4 (#4720) surfaced receiver corruption on file_1.txt under dist-profile builds (LTO + panic=abort). The new tests/parallel_threshold_trip.rs runs a local-mode recursive transfer of 120 deterministically seeded 16 KiB files under parallel_threshold/file_N.txt (the same shape the deleted scenario used in tools/ci/run_interop.sh) and asserts byte identity via SHA-256 on every file, with file_1.txt called out explicitly first so a future regression of the original corruption is unambiguous. The test passes on master HEAD because the sequential receiver path is correct; once PIP-9.b wires the parallel applier into production it will catch any regression of the PIP-4 corruption. Test name starts with parallel_threshold_ so the dist-profile CI cell from PIP-9.d can filter via nextest -E 'test(parallel_threshold)'. Payload generation uses an inline xorshift64* PRNG seeded by a fixed constant XORed with the file index, mirroring the existing pattern in tests/inc_recurse_sender_fuzz_1863.rs. No new external dependencies; the checksums dev-dep already exposes a Sha256 helper used by other workspace tests. Refs: docs/design/pip-9-parallel-receive-delta-wire-up-2026-05-22.md
oferchen
force-pushed
the
test/pip-9c-parallel-threshold-trip-regression
branch
from
May 22, 2026 15:30
2d0ebd8 to
9b39434
Compare
3 tasks
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…dentity assertion (PIP-9.c) (#4738) Reintroduce the parallel-threshold-trip regression coverage that PR #4725 removed when it reverted the parallel-receive-delta default-on flip after PIP-4 (#4720) surfaced receiver corruption on file_1.txt under dist-profile builds (LTO + panic=abort). The new tests/parallel_threshold_trip.rs runs a local-mode recursive transfer of 120 deterministically seeded 16 KiB files under parallel_threshold/file_N.txt (the same shape the deleted scenario used in tools/ci/run_interop.sh) and asserts byte identity via SHA-256 on every file, with file_1.txt called out explicitly first so a future regression of the original corruption is unambiguous. The test passes on master HEAD because the sequential receiver path is correct; once PIP-9.b wires the parallel applier into production it will catch any regression of the PIP-4 corruption. Test name starts with parallel_threshold_ so the dist-profile CI cell from PIP-9.d can filter via nextest -E 'test(parallel_threshold)'. Payload generation uses an inline xorshift64* PRNG seeded by a fixed constant XORed with the file index, mirroring the existing pattern in tests/inc_recurse_sender_fuzz_1863.rs. No new external dependencies; the checksums dev-dep already exposes a Sha256 helper used by other workspace tests. Refs: docs/design/pip-9-parallel-receive-delta-wire-up-2026-05-22.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tests/parallel_threshold_trip.rsruns a local-mode recursive transfer of 120 deterministically seeded 16 KiB files underparallel_threshold/file_N.txtand asserts byte identity via SHA-256 on every file (file_1.txt called out first - it is the file PIP-4 surfaced wrong bytes on).docs/design/pip-9-parallel-receive-delta-wire-up-2026-05-22.md.Test plan
--profile dist --features parallel-receive-deltacell, that cell runscargo nextest run --profile dist -E 'test(parallel_threshold)'and picks upparallel_threshold_trip_local_mode_byte_identityplus the two PRNG-invariant guards.checksumsdev-dep and the xorshift64* PRNG pattern fromtests/inc_recurse_sender_fuzz_1863.rs.Test characteristics
0x0C_71_5C_C9_E4_DA_3F_2AXORed with the 1-based file index, documented inline.