Skip to content

test: compare the cross-implementation parity tests against rsync 3.5.1 - #8314

Merged
oferchen merged 17 commits into
masterfrom
test/upstream-351-oracle
Nov 4, 2026
Merged

oferchen merged 17 commits into
masterfrom
test/upstream-351-oracle

Conversation

@oferchen

@oferchen oferchen commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Point the 11 cross-implementation oracle tests that ran against a built rsync 3.5.0 binary at 3.5.1. That is 8 under tests/ (block-size grammar, empty size values, daemon auth username, hosts-allow sentinels, daemon log host rendering, daemon filter-file whitespace, filter-file open failures, local progress order) and the 3 #[ignore]d engine read-batch cells. The oracle path, version-banner checks, skip messages and assertion labels now name 3.5.1.
  • No expectation moved: every cell passes unchanged against the real 3.5.1 binary. That includes --max-alloc=. 3.5.1 resolves 0 to SIZE_ARG_MAX (options.c:2085-2086), which the test already expected.
  • empty_size_value_parity.rs had two wrong 3.5.1 line numbers in its table: --min-size is at options.c:1821, not :1809, and --bwlimit is at :1827, not :1821.

Evidence

The oracle is the 3.5.1 tarball build at target/interop/upstream-src/rsync-3.5.1/rsync, which reports rsync version 3.5.1 protocol version 33.

  • cargo nextest run -p bin --all-features --no-capture -E 'binary(...)' over the 8 root binaries: 34 passed, 0 skipped, and no SKIP: or skipping: line printed.
  • cargo nextest run -p engine --all-features --run-ignored all -E 'binary(write_batch_upstream_read_batch_*)': 3 passed. These cells panic rather than skip when the oracle is missing or reports another version.

Test plan

  • cargo fmt --all -- --check and python3 tools/ci/check_rustfmt_all.py.
  • cargo clippy -p bin -p engine --all-targets --all-features --no-deps -- -D warnings.
  • cargo check --target x86_64-pc-windows-gnu -p engine -p bin --all-features --tests.
  • Targeted nextest above.
  • CI: fmt + clippy, nextest (stable), Windows, macOS, Linux musl.

Coordination

  • Task 565 (epic 441).
  • CI gap, unchanged by this PR: the required nextest job does not build an upstream binary at target/interop/upstream-src/rsync-*/rsync, so these oracle cells skip in CI before and after this change.

Conventional commit prefix

  • test:

Pre-merge checklist

  • Conventional commit prefix on PR title matches the change category.
  • cargo fmt --all run locally.
  • CHANGELOG.md updated.
  • No references to internal tooling or non-human authoring aids; hyphens, not em-dashes, in new text.

Folded PRs (3.5.1 source-of-truth alignment)

Gates on the merged tree: fmt --check, check_rustfmt_all, xtask citations (all claimed names and ranges resolve against 3.5.1), xtask no-placeholders.

Re-check every upstream citation in build_old_rsync_oracle.sh against the 3.5.1 tarball: name both oracle consumers (daemon-symlink-escape-matrix reads rsync_3.2.7, daemon-auth-digest-floor reads rsync_3.1.3), cite runtests.py:621, README.md:13/:59/:74 and build_static.sh:22/:33, and drop the stale ../rsync.4 default.
Drop the release from the three upstream-3.5.0-* design note names so they track the pinned release, and re-check every claim against 3.5.1: syscall.c citations retargeted by content, plus the 3.5.1 changes to the confinement model (files-from ownership walk, the final flag in abspath_outside_confinement, /dev/fd and /dev/std* pins, user-namespace and kernel pseudo-path handling, the untrusted-owner FERROR line) and to rrsync (root-relative arguments, two new tests). exclude.c is byte-identical, so the filter provenance note keeps its lines; the cull-options table drift re-measures to the same three entries on 3.5.1.
Re-ran each claim whose cited upstream lines changed between 3.5.0 and 3.5.1 against both tarball builds; every outcome is identical, so the claims now name 3.5.1.
Claims whose cited upstream function calls a function 3.5.1 changed, and claims citing no source, were re-run on both tarball builds; identical results are relabelled 3.5.1. Unmeasured claims keep their 3.5.0 label.
…lignment' into test/upstream-351-oracle-fold

# Conflicts:
#	CHANGELOG.md
…itations' into test/upstream-351-oracle-fold

# Conflicts:
#	CHANGELOG.md
@oferchen oferchen closed this Nov 4, 2026
@oferchen oferchen reopened this Nov 4, 2026
@oferchen
oferchen merged commit bc1f4be into master Nov 4, 2026
98 of 147 checks passed
@oferchen
oferchen deleted the test/upstream-351-oracle branch November 4, 2026 12:48
oferchen added a commit that referenced this pull request Nov 18, 2026
#8434)

Two documentation changes for the 0.6.5 release.

**Changelog.** Every PR merged since v0.6.4 was checked against
`[Unreleased]`.
- Seven lines cited five PRs that were closed without merging; they now
cite the PRs that carried the work (#8295, #8304, #8314, #8353, #8383).
- Three lines added by #8363 were no longer in the file and are
restored.
- Eighteen merged PRs with user-visible changes had no entry and now
have one.
- One entry moved from Added to Fixed.

**Differences from rsync 3.5.2.** New
`docs/differences-from-rsync-3.5.2.md`, linked from the README and the
environment reference. It lists behaviour kept on purpose, upstream
fixes adopted early (none yet, three pending), oc-rsync extensions
(options, transports, daemon parameters, debug words, sandboxing,
environment variables, the opt-in consecutive-match extension) and links
to the platform documents. Every row is backed by code or a test.

No code changes.

Closes #8564
Closes #8565
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant