Repository navigation
test(daemon): port daemon-gzip goodbye scenario to nextest (NXT-2) - #6002
Merged
Merged
Conversation
Adds the cross-binary upstream-compat harness primitives specified by NXT-1 (`UpstreamVersion`, `locate_upstream_rsync`, `require_upstream_rsync`, `upstream_compat_enabled`) and ports the upstream `daemon-gzip-download.test` goodbye-flush invariant into nextest. The test pairs an upstream rsync 3.4.4 client against an oc-rsync daemon over TCP and pulls a ~1 MB `-zz`-compressed fixture sized to clear the UTS-9 ~615 KB cutoff. The invariant pinned is that the daemon-sender goodbye envelope reaches the upstream client without a premature connection drop - the regression family fixed by PRs #5520 / #5600 / #5619 / #5725. Self-skips on three conditions: `OC_RSYNC_UPSTREAM_COMPAT` env var unset (default for PR cells), upstream rsync 3.4.4 binary not present at `target/interop/upstream-install/3.4.4/bin/rsync`, or the oc-rsync binary cannot be located. Wall-time impact on the standard PR cell is a single early-return. NXT-1 calls out that the new `upstream-compat` CI cell is the wire-up step that flips the env var on. That cell does not exist yet; this PR ships the test and harness only, and a follow-up will add the matrix entry to the existing nextest workflow. Refs: docs/design/nxt-1-nextest-harness.md
oferchen
force-pushed
the
test/nxt-2-daemon-gzip-goodbye
branch
from
June 19, 2026 09:50
47056c5 to
d0b487f
Compare
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…6002) Adds the cross-binary upstream-compat harness primitives specified by NXT-1 (`UpstreamVersion`, `locate_upstream_rsync`, `require_upstream_rsync`, `upstream_compat_enabled`) and ports the upstream `daemon-gzip-download.test` goodbye-flush invariant into nextest. The test pairs an upstream rsync 3.4.4 client against an oc-rsync daemon over TCP and pulls a ~1 MB `-zz`-compressed fixture sized to clear the UTS-9 ~615 KB cutoff. The invariant pinned is that the daemon-sender goodbye envelope reaches the upstream client without a premature connection drop - the regression family fixed by PRs #5520 / #5600 / #5619 / #5725. Self-skips on three conditions: `OC_RSYNC_UPSTREAM_COMPAT` env var unset (default for PR cells), upstream rsync 3.4.4 binary not present at `target/interop/upstream-install/3.4.4/bin/rsync`, or the oc-rsync binary cannot be located. Wall-time impact on the standard PR cell is a single early-return. NXT-1 calls out that the new `upstream-compat` CI cell is the wire-up step that flips the env var on. That cell does not exist yet; this PR ships the test and harness only, and a follow-up will add the matrix entry to the existing nextest workflow. Refs: docs/design/nxt-1-nextest-harness.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
UpstreamVersion,locate_upstream_rsync,require_upstream_rsync,upstream_compat_enabled) tocrates/test-supportso all NXT-2..NXT-8 ports share one definition.testsuite/daemon-gzip-download.testgoodbye-flush invariant: an upstream rsync 3.4.4 client pulls a ~1 MB-zzfixture from an oc-rsync daemon over TCP and asserts byte-equality + absence of theconnection unexpectedly closedUTS-9 signature.Self-skip semantics
The test no-ops with a clear stderr line under any of three conditions:
OC_RSYNC_UPSTREAM_COMPATenv var is not1. The standard PR nextest cell does not set this, so the impact on PR wall time is a single early-return.target/interop/upstream-install/3.4.4/bin/rsync. Build viatools/ci/run_interop.sh. Override path viaOC_RSYNC_UPSTREAM_BIN_3_4_4.CARGO_BIN_EXE_oc-rsyncor by walking up from the test executable.#[cfg(unix)]gate matches the siblinguts_nextest_daemon_gzip_zz.rs.CI cell wire-up
NXT-1 specifies a new
upstream-compatmatrix entry on the existing nextest workflow that runstools/ci/run_interop.shto build the upstream binary, setsOC_RSYNC_UPSTREAM_COMPAT=1, and runs the upstream-compat tests filtered by name. That cell does not exist yet — this PR ships only the test + harness primitives so the workflow change can land in a focused follow-up (NXT-1's section 6 design).The standard PR nextest cell exercises the early-return path on every build and proves the test compiles and self-skips cleanly across Linux / macOS / Windows. Once the
upstream-compatcell lands, the test will run as a required check.References
docs/design/nxt-1-nextest-harness.mdsection 4 (test template).target/interop/upstream-src/rsync-3.4.4/testsuite/daemon-gzip-download.test.crates/transfer/tests/uts_nextest_daemon_gzip_zz.rs(oc-rsync drives oc-rsync; this PR's port is the upstream-vs-oc-rsync cross-binary half).Test plan
cargo fmt --all -- --checkclean locally.upstream-compatcell lands, the test executes end-to-end against upstream rsync 3.4.4.