Skip to content

test(uts): port daemon-gzip download/upload -zz to nextest - #5954

Merged
oferchen merged 2 commits into
masterfrom
test/uts-nextest-daemon-gzip-zz
Jun 19, 2026
Merged

oferchen merged 2 commits into
masterfrom
test/uts-nextest-daemon-gzip-zz

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

UTS-NEXTEST-EDGE.e: native nextest port of the upstream -zz (zlibx) daemon-transfer scenarios so the failure mode that PRs #5520, #5600, and #5619 ship fixes for stays under a required check on every PR.

  • Upstream sources: target/interop/upstream-src/rsync-3.4.4/testsuite/daemon-gzip-download.test and target/interop/upstream-src/rsync-3.4.4/testsuite/daemon-gzip-upload.test. Both upstream scripts run $RSYNC -avvvvzz against a fake-connected daemon; -zz flips compress_choice = "zlibx" per options.c:2002.
  • The recurring failure mode the UTS-NEXTEST-EDGE family lifts onto required checks is the daemon-sender goodbye-flush regression tracked as UTS-9.REOPEN / UTS-10.REOPEN / UTS-V3.A: the last ~2KB of compressed data was lost before the daemon-receiver could decode the final NDX_DONE, surfacing as truncated output past ~615KB. The upstream testsuite job runs continue-on-error: true, so the UTS-NEXTEST-EDGE family ports these scenarios into native nextest tests.
  • Reference siblings: PR test(uts): port hardlinks.test INC_RECURSE scenario to nextest #5950 (uts_nextest_hardlinks_inc_recurse.rs, UTS-NEXTEST-EDGE.j) for the inline-helper shape, uts_nextest_chdir_symlink_race.rs (UTS-NEXTEST-EDGE.i) for the #![cfg(unix)] gate, and v61d_2_daemon_push_increcurse_perf_regression.rs for the daemon-spawn pattern.

What this test pins

For each direction (download / upload):

  • Transfer exits cleanly (status 0).
  • Destination file is byte-identical to source.
  • Goodbye envelope arrived intact (stderr free of connection unexpectedly closed, the UTS-9 signature).
  • --stats reports a transferred-byte count materially smaller than source - codec actually engaged.

Plus a third test (daemon_gzip_z_vs_zz_negotiation) that compares -z and -zz byte counts on the same fixture so a silent codec collapse onto the legacy path trips a regression.

Fixture: a single ~1MB file (512KB highly compressible + 512KB deterministic incompressible) sized to clear the UTS-9 ~615KB cutoff post-compression.

Test plan

  • CI nextest (stable) Linux / macOS / Windows musl passes.
  • fmt+clippy passes.
  • Interop Validation passes.

@github-actions github-actions Bot added the test label Jun 18, 2026
oferchen added 2 commits June 19, 2026 06:44
UTS-NEXTEST-EDGE.e: native nextest port of upstream's
testsuite/daemon-gzip-download.test and daemon-gzip-upload.test, which
exercise the -zz (zlibx) per-block codec over a daemon transfer in both
directions. Asserts byte-identical round-trip, intact goodbye envelope
(no UTS-9 'connection unexpectedly closed' signature past the ~615KB
cutoff), and codec-engaged evidence via --stats. Adds a -z vs -zz
negotiation pin so silent codec collapse trips a regression.

Companion to PRs #5520, #5600, #5619 and the UTS-V3 cluster A drain;
the upstream tests run under continue-on-error in CI, so this nextest
port runs as a required check on every PR.
Reword 'capability advertise + compress' to 'capability advertise and compress'
so clippy doesn't parse the wrapped '+' as a markdown list marker.
@oferchen
oferchen force-pushed the test/uts-nextest-daemon-gzip-zz branch from d69dbcb to 08d4496 Compare June 19, 2026 03:44
@oferchen
oferchen merged commit afab55d into master Jun 19, 2026
5 of 6 checks passed
@oferchen
oferchen deleted the test/uts-nextest-daemon-gzip-zz branch June 19, 2026 05:06
oferchen added a commit that referenced this pull request Aug 24, 2026
* test(uts): port daemon-gzip download/upload -zz to nextest

UTS-NEXTEST-EDGE.e: native nextest port of upstream's
testsuite/daemon-gzip-download.test and daemon-gzip-upload.test, which
exercise the -zz (zlibx) per-block codec over a daemon transfer in both
directions. Asserts byte-identical round-trip, intact goodbye envelope
(no UTS-9 'connection unexpectedly closed' signature past the ~615KB
cutoff), and codec-engaged evidence via --stats. Adds a -z vs -zz
negotiation pin so silent codec collapse trips a regression.

Companion to PRs #5520, #5600, #5619 and the UTS-V3 cluster A drain;
the upstream tests run under continue-on-error in CI, so this nextest
port runs as a required check on every PR.

* test: fix doc-lazy-continuation lint in daemon-gzip-zz module doc

Reword 'capability advertise + compress' to 'capability advertise and compress'
so clippy doesn't parse the wrapped '+' as a markdown list marker.
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