Skip to content

test(interop): reintroduce parallel-threshold-trip with sha256 byte-identity assertion (PIP-9.c) - #4738

Merged
oferchen merged 1 commit into
masterfrom
test/pip-9c-parallel-threshold-trip-regression
May 22, 2026
Merged

oferchen merged 1 commit into
masterfrom
test/pip-9c-parallel-threshold-trip-regression

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

Test plan

  • CI: fmt+clippy
  • CI: nextest (stable) - exercises the new test on the default profile
  • CI: Windows / macOS / Linux musl matrices
  • Once PIP-9.d lands a --profile dist --features parallel-receive-delta cell, that cell runs cargo nextest run --profile dist -E 'test(parallel_threshold)' and picks up parallel_threshold_trip_local_mode_byte_identity plus the two PRNG-invariant guards.
  • No new external dependencies; reuses the existing checksums dev-dep and the xorshift64* PRNG pattern from tests/inc_recurse_sender_fuzz_1863.rs.

Test characteristics

…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
oferchen force-pushed the test/pip-9c-parallel-threshold-trip-regression branch from 2d0ebd8 to 9b39434 Compare May 22, 2026 15:30
@oferchen
oferchen merged commit 66c6101 into master May 22, 2026
54 checks passed
@oferchen
oferchen deleted the test/pip-9c-parallel-threshold-trip-regression branch May 28, 2026 03:37
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant