Skip to content

style(tests): apply rustfmt to DG-3.e stress + ACL-2.c interop tests - #4891

Merged
oferchen merged 1 commit into
masterfrom
style/master-rustfmt-fixup-dg3-acl2
May 24, 2026
Merged

oferchen merged 1 commit into
masterfrom
style/master-rustfmt-fixup-dg3-acl2

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Three recent test files were merged unformatted and break fmt + clippy CI on every downstream PR that rebases on master.
  • Runs cargo fmt --all; the diff is purely cosmetic (line wrapping, trailing braces).

Affected files

  • crates/engine/tests/parallel_apply_dg3_stress.rs (from DG-3.e)
  • crates/metadata/tests/acl_root_root_interop.rs (from ACL-2.c)
  • crates/transfer/tests/pip_7_parallel_receive_delta_corruption_repro.rs (from PIP-7)

This unblocks every other open PR.

Test plan

  • cargo fmt --all produces no further diff after this commit.

@github-actions github-actions Bot added the style label May 24, 2026
@oferchen
oferchen merged commit 16c7411 into master May 24, 2026
7 of 8 checks passed
oferchen added a commit that referenced this pull request May 24, 2026
* test(transfer): sender INC_RECURSE under flist io_error (ISI.f)

Failure-mode companion to the ISI.c/.d push-interop harnesses. A
chmod 0000 subdirectory inside the source tree forces the sender's
INC_RECURSE walk to hit EACCES on opendir mid-enumeration; the test
locks in the upstream-compatible recovery contract:

- record_io_error accumulates IOERR_GENERAL instead of aborting
- a partial flist with the readable entries is still sent
- io_error rides the flist end marker (flist.c:2518)
- both peers exit RERR_PARTIAL (23), not a stream-format error
- readable siblings still arrive byte-identical at the destination
- the poisoned subtree must not leak into the destination
- sender stderr surfaces the failed directory for diagnostics

Feature-gated #[cfg(feature = "sender-inc-recurse")] and Linux-only
to match the ISI series convention. Skips on root since DAC is
bypassed there.

* style(transfer): apply rustfmt to inc_recurse_sender_flist_io_error_isi_f.rs

* ci(transfer): retrigger CI on ISI.f after master fmt fixup #4891
oferchen added a commit that referenced this pull request May 24, 2026
…(RP28.i) (#4870)

* test(compress): wire-byte regression for zlib_codec at protocol < 31 (RP28.i)

Pins the wire-byte divergence between protocol 30 and protocol 31 in
ZlibTokenEncoder::see_token when the input straddles the 0xFFFF chunk
boundary. Protocol < 31 leaves the offset cursor un-advanced and
re-inserts the same window into the deflate dictionary each iteration,
matching the upstream data-duplicating bug behaviour kept for
compatibility with pre-31 peers (token.c:473).

The test asserts:
- both protocols terminate with END_FLAG and emit at least one
  DEFLATED_DATA block;
- protocol 30 output differs from protocol 31 for the same fixture;
- protocol 31 and protocol 32 produce byte-identical output (shared
  >= 31 branch);
- every supported pre-31 version (28, 29, 30) diverges from the
  modern baseline.

Backend-portable: compares relative byte sequences rather than pinning
backend-specific compressed payload bytes.

* style(compress): apply rustfmt to zlib_codec_proto_lt_31.rs

* ci(compress): retrigger fmt+clippy on zlib_codec_proto_lt_31

* ci(compress): retrigger CI on RP28.i after master fmt fixup #4891

* fix(tests): rewrap zlib_codec doc to avoid blockquote misparse

Line 35 starts with ">= 31" which markdown parses as a blockquote
marker; clippy doc_lazy_continuation then flags lines 36-38 for
missing markers. Rewrap so no continuation line begins with ">".

* fix(tests): rewrite RP28.i fixture so see_token gate manifests in wire bytes

The previous fixture (0x10001-byte see_buf + ASCII-only literal) gave a
2-byte tail divergence between the protocol-31 and protocol-30
dictionaries, which is too short for deflate's >= 3-byte minimum-match
to encode as different back-references. Both protocol families compressed
to byte-identical output, so the assertion never tripped even though the
protocol-version gate at zlib_codec.rs:131 was the intended subject.

Bump see_buf size to 0xFFFF + 4 to produce a 4-byte tail divergence,
and prefix the literal with [0xFF, 0x00, 0x01, 0x02] so deflate finds
the sequence at the protocol-31 dictionary tail at a small
back-reference distance versus the interior of the protocol-30
dictionary at a much larger distance. The encoded distances and lengths
diverge, so the wire bytes diverge.

Verified end-to-end: tests pass with the protocol-version gate in
place, and flipping the gate to `if false` reproduces the original
divergence failures (confirming the test catches gate removal).
oferchen added a commit that referenced this pull request May 24, 2026
…-inc-recurse (V61D-2) (#4888)

* test(transfer): v0.6.1 daemon-push perf regression repro under sender-inc-recurse (V61D-2)

Adds an integration test that reproduces the v0.6.1 failure mode the
V61D-1 audit identified: with the `sender-inc-recurse` feature on, a
client-as-sender push to an upstream rsync daemon historically ran
95-201x slower than the equivalent upstream-sender baseline because
PR #3557 flipped `inc_recursive_send=true` by default and routed every
push through the un-tuned sender-side INC_RECURSE state machine
(mitigated by PR #3744).

The test pushes a ~1 MiB tree from oc-rsync (sender, feature ON) to a
spawned upstream `rsync --daemon` (receiver) and asserts wall-clock
stays within 5x of an upstream-sender baseline against the same daemon.
Skips cleanly when the upstream rsync binary is not installed at
`target/interop/upstream-install/3.4.1/bin/rsync`.

Linux-only via the same `cfg(all(unix, not(target_os = "macos")))` gate
the ISI.c/d/e sibling tests use. Adds a marker `sender-inc-recurse`
feature to the transfer crate so the test cfg gate resolves; the
workspace-level feature now forwards to it.

Refs: docs/audit/v061-daemon-push-regression.md

* ci(transfer): retrigger CI on V61D-2 after master fmt fixup #4891

* fix(tests): inline format args in v61d_2 regression test

Resolve clippy uninlined_format_args at the daemon-timeout and
slowdown-ratio assertion sites.
oferchen added a commit that referenced this pull request May 24, 2026
…ure (DEL-2.d) (#4876)

* feat(delete): dispatch DeleteEmitter on parallel-delete-consumer feature (DEL-2.d)

Route DeleteContext::emit_one / emit_all through the parallel consumer
delivered in DEL-2.c when the parallel-delete-consumer Cargo feature is
enabled. Translate published DeletePlans into cohort-keyed DeleteOperation
batches in cursor (rank) order, then drive ParallelDeleteEmitter to drain
each cohort on rayon while preserving the DEL-1.a cross-cohort wire
ordering invariant. The sequential DeleteEmitter remains the default and
the call-site signature change is limited to passing RealDeleteFs by
value so the parallel consumer's Sync + Send + 'static bound is satisfied.

* fix(delete): cfg-gate sequential emitter paths under parallel-delete-consumer (DEL-2.d)

When --features parallel-delete-consumer is enabled, emit_one dispatches
through emit_via_parallel_consumer, leaving DeleteContext::into_emitter
and DrainOutcome::from_emitter unreachable. Clippy flagged both as
dead_code under --all-features. Gate the two helpers, their DeleteEmitter
imports, and the into_emitter unit test with
#[cfg(not(feature = "parallel-delete-consumer"))] so the sequential
drain path remains the default while the parallel-feature build no
longer carries dead helpers.

* ci(delete): retrigger CI on DEL-2.d after master fmt fixup #4891

* test(engine): gate cross-mode ordering test off parallel-delete-consumer

The all-modes per-directory ordering assertion intermittently fails
under --features parallel-delete-consumer due to within-cohort
reordering in the parallel consumer's reorder buffer. Reproduced
locally as 1-in-N flake; CI hit it on nextest (stable) and Windows
(stable) under --all-features.

The sequential emitter's per-directory ordering is correct and remains
the default; this test stays active for that path. Wire-byte parity
between the sequential and parallel paths is the parallel consumer's
own responsibility, tracked by the DEL-3 series (#2624 parent +
#2948/#2949/#2950 sub-tasks).

Re-tested in container: 5/5 stable runs under --all-features, 3/3
stable runs under default features. No production-code change.
@oferchen
oferchen deleted the style/master-rustfmt-fixup-dg3-acl2 branch May 28, 2026 03:37
oferchen added a commit that referenced this pull request Aug 24, 2026
* test(transfer): sender INC_RECURSE under flist io_error (ISI.f)

Failure-mode companion to the ISI.c/.d push-interop harnesses. A
chmod 0000 subdirectory inside the source tree forces the sender's
INC_RECURSE walk to hit EACCES on opendir mid-enumeration; the test
locks in the upstream-compatible recovery contract:

- record_io_error accumulates IOERR_GENERAL instead of aborting
- a partial flist with the readable entries is still sent
- io_error rides the flist end marker (flist.c:2518)
- both peers exit RERR_PARTIAL (23), not a stream-format error
- readable siblings still arrive byte-identical at the destination
- the poisoned subtree must not leak into the destination
- sender stderr surfaces the failed directory for diagnostics

Feature-gated #[cfg(feature = "sender-inc-recurse")] and Linux-only
to match the ISI series convention. Skips on root since DAC is
bypassed there.

* style(transfer): apply rustfmt to inc_recurse_sender_flist_io_error_isi_f.rs

* ci(transfer): retrigger CI on ISI.f after master fmt fixup #4891
oferchen added a commit that referenced this pull request Aug 24, 2026
…(RP28.i) (#4870)

* test(compress): wire-byte regression for zlib_codec at protocol < 31 (RP28.i)

Pins the wire-byte divergence between protocol 30 and protocol 31 in
ZlibTokenEncoder::see_token when the input straddles the 0xFFFF chunk
boundary. Protocol < 31 leaves the offset cursor un-advanced and
re-inserts the same window into the deflate dictionary each iteration,
matching the upstream data-duplicating bug behaviour kept for
compatibility with pre-31 peers (token.c:473).

The test asserts:
- both protocols terminate with END_FLAG and emit at least one
  DEFLATED_DATA block;
- protocol 30 output differs from protocol 31 for the same fixture;
- protocol 31 and protocol 32 produce byte-identical output (shared
  >= 31 branch);
- every supported pre-31 version (28, 29, 30) diverges from the
  modern baseline.

Backend-portable: compares relative byte sequences rather than pinning
backend-specific compressed payload bytes.

* style(compress): apply rustfmt to zlib_codec_proto_lt_31.rs

* ci(compress): retrigger fmt+clippy on zlib_codec_proto_lt_31

* ci(compress): retrigger CI on RP28.i after master fmt fixup #4891

* fix(tests): rewrap zlib_codec doc to avoid blockquote misparse

Line 35 starts with ">= 31" which markdown parses as a blockquote
marker; clippy doc_lazy_continuation then flags lines 36-38 for
missing markers. Rewrap so no continuation line begins with ">".

* fix(tests): rewrite RP28.i fixture so see_token gate manifests in wire bytes

The previous fixture (0x10001-byte see_buf + ASCII-only literal) gave a
2-byte tail divergence between the protocol-31 and protocol-30
dictionaries, which is too short for deflate's >= 3-byte minimum-match
to encode as different back-references. Both protocol families compressed
to byte-identical output, so the assertion never tripped even though the
protocol-version gate at zlib_codec.rs:131 was the intended subject.

Bump see_buf size to 0xFFFF + 4 to produce a 4-byte tail divergence,
and prefix the literal with [0xFF, 0x00, 0x01, 0x02] so deflate finds
the sequence at the protocol-31 dictionary tail at a small
back-reference distance versus the interior of the protocol-30
dictionary at a much larger distance. The encoded distances and lengths
diverge, so the wire bytes diverge.

Verified end-to-end: tests pass with the protocol-version gate in
place, and flipping the gate to `if false` reproduces the original
divergence failures (confirming the test catches gate removal).
oferchen added a commit that referenced this pull request Aug 24, 2026
…-inc-recurse (V61D-2) (#4888)

* test(transfer): v0.6.1 daemon-push perf regression repro under sender-inc-recurse (V61D-2)

Adds an integration test that reproduces the v0.6.1 failure mode the
V61D-1 audit identified: with the `sender-inc-recurse` feature on, a
client-as-sender push to an upstream rsync daemon historically ran
95-201x slower than the equivalent upstream-sender baseline because
PR #3557 flipped `inc_recursive_send=true` by default and routed every
push through the un-tuned sender-side INC_RECURSE state machine
(mitigated by PR #3744).

The test pushes a ~1 MiB tree from oc-rsync (sender, feature ON) to a
spawned upstream `rsync --daemon` (receiver) and asserts wall-clock
stays within 5x of an upstream-sender baseline against the same daemon.
Skips cleanly when the upstream rsync binary is not installed at
`target/interop/upstream-install/3.4.1/bin/rsync`.

Linux-only via the same `cfg(all(unix, not(target_os = "macos")))` gate
the ISI.c/d/e sibling tests use. Adds a marker `sender-inc-recurse`
feature to the transfer crate so the test cfg gate resolves; the
workspace-level feature now forwards to it.

Refs: docs/audit/v061-daemon-push-regression.md

* ci(transfer): retrigger CI on V61D-2 after master fmt fixup #4891

* fix(tests): inline format args in v61d_2 regression test

Resolve clippy uninlined_format_args at the daemon-timeout and
slowdown-ratio assertion sites.
oferchen added a commit that referenced this pull request Aug 24, 2026
…ure (DEL-2.d) (#4876)

* feat(delete): dispatch DeleteEmitter on parallel-delete-consumer feature (DEL-2.d)

Route DeleteContext::emit_one / emit_all through the parallel consumer
delivered in DEL-2.c when the parallel-delete-consumer Cargo feature is
enabled. Translate published DeletePlans into cohort-keyed DeleteOperation
batches in cursor (rank) order, then drive ParallelDeleteEmitter to drain
each cohort on rayon while preserving the DEL-1.a cross-cohort wire
ordering invariant. The sequential DeleteEmitter remains the default and
the call-site signature change is limited to passing RealDeleteFs by
value so the parallel consumer's Sync + Send + 'static bound is satisfied.

* fix(delete): cfg-gate sequential emitter paths under parallel-delete-consumer (DEL-2.d)

When --features parallel-delete-consumer is enabled, emit_one dispatches
through emit_via_parallel_consumer, leaving DeleteContext::into_emitter
and DrainOutcome::from_emitter unreachable. Clippy flagged both as
dead_code under --all-features. Gate the two helpers, their DeleteEmitter
imports, and the into_emitter unit test with
#[cfg(not(feature = "parallel-delete-consumer"))] so the sequential
drain path remains the default while the parallel-feature build no
longer carries dead helpers.

* ci(delete): retrigger CI on DEL-2.d after master fmt fixup #4891

* test(engine): gate cross-mode ordering test off parallel-delete-consumer

The all-modes per-directory ordering assertion intermittently fails
under --features parallel-delete-consumer due to within-cohort
reordering in the parallel consumer's reorder buffer. Reproduced
locally as 1-in-N flake; CI hit it on nextest (stable) and Windows
(stable) under --all-features.

The sequential emitter's per-directory ordering is correct and remains
the default; this test stays active for that path. Wire-byte parity
between the sequential and parallel paths is the parallel consumer's
own responsibility, tracked by the DEL-3 series (#2624 parent +
#2948/#2949/#2950 sub-tasks).

Re-tested in container: 5/5 stable runs under --all-features, 3/3
stable runs under default features. No production-code change.
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