Skip to content

Align with upstream rsync 3.5.2, CI workflows, docs, and citations - #8383

Merged
oferchen merged 4 commits into
masterfrom
feat/upstream-3.5.2
Nov 15, 2026
Merged

oferchen merged 4 commits into
masterfrom
feat/upstream-3.5.2

Conversation

@oferchen

@oferchen oferchen commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Summary

Aligns oc-rsync with upstream rsync 3.5.2 (protocol 33, sha256 a10d591825251e070f74c98df3daad195def4ed81b4a2de16169026aea33f6c8), including all upstream 3.5.2 features/fixes, CI workflow targets, upstream testsuite manifests, documentation, and source-line citations.


1. Upstream rsync 3.5.2 Feature & Behavior Parity

  • --nice / --no-nice & daemon niceness
    • Added PriorityOptions / ParsePriorityError in crates/core/src/niceness.rs and safe OS priority / ionice handling (using rustix / safe Rust) in crates/platform/src/priority.rs.
    • Wired CLI parsing (crates/cli/src/frontend/arguments/), command builder & execution (crates/cli/src/frontend/{command_builder,execution,server}/), server argv forwarding (crates/transfer/src/server_argv.rs), and daemon runtime/module configuration (crates/daemon/src/daemon/{runtime_options,sections}/).
  • --delay-symlinks / --no-delay-symlinks
    • Wired deferred symlink handling in local copy (crates/engine/src/local_copy/) and receiver transfer phases (crates/transfer/src/receiver/transfer/).
  • Daemon delete stats (daemon-delete-stats)
    • Fixed suppress_msg_deleted ordering in crates/daemon/src/daemon/sections/module_access/client_args/server_config.rs (applied after apply_long_form_args) and updated test initializers in crates/transfer/src/config/builder_tests.rs and crates/core/src/client/remote/flags.rs.
  • --max-delete formatting
    • Applied logging::comma_num to the "Deletions stopped due to --max-delete limit (... skipped)" warning (crates/transfer/src/receiver/directory/deletion.rs, crates/engine/src/local_copy/{error.rs,executor/sources/orchestration.rs}).
  • Dynamic human-readable / --progress formatting (human_num)
    • Aligned crates/cli/src/frontend/progress/ unit/integration tests (rate.rs, size.rs, live.rs, format.rs, human_readable_format.rs, info_debug.rs, progress2_format_parity.rs, progress_format_upstream.rs, progress_live.rs, stats.rs, verbose.rs) and tests/local_progress_output_order.rs (is_progress_tick) with upstream 3.5.2 output (0B/s, 1.00Mi, 1,234B, 1000K, 50.0M, etc.).
  • Control-character escaping (filtered_char_len)
    • Aligned crates/cli/tests/log_file_control_char_escape.rs and crates/logging/src/escape.rs unit tests with upstream 3.5.2 log.c:290-291, which escapes 0x7F (DEL) and 0x80..=0x9F (C1) unconditionally even with use_isprint = 0 (--log-file / --8-bit-output).

2. Upstream Version Pinning, Surface Diff & Source-Line Citations

  • Version pin & tarball manifest: Set upstream_version = "3.5.2" in Cargo.toml (and updated Cargo.lock) and added rsync-3.5.2.tar.gz sha256 to tools/ci/upstream-tarballs.sha256.
  • Line-table & citation alignment:
    • Updated xtask/src/commands/citations.rs to 3.5.2, renamed tools/ci/upstream-3.5.1-lines.tsv -> tools/ci/upstream-3.5.2-lines.tsv, and regenerated the manifest via cargo xtask citations --write-manifest.
    • Diffed the 31 upstream files changed between 3.5.1 and 3.5.2 and systematically aligned upstream source line citations across crates/, tests/, xtask/, and docs/ (including crates/protocol/tests/daemon_handshake_roundtrip.rs authenticate.c:468 and crates/matching/src/index/mod.rs doc comment).
  • Clippy & formatting hygiene: Fixed clippy -D warnings issues across crates/engine/src/local_copy/context.rs, crates/transfer/src/receiver/, crates/core/src/niceness.rs, crates/daemon/, and crates/cli/, and formatted with cargo fmt.

3. CI Workflows, Scripts & Testsuite Expect Manifests

  • Workflows:
    • Renamed .github/workflows/upstream-testsuite-3.5.1.yml -> .github/workflows/upstream-testsuite-3.5.2.yml.
    • Aligned 3.5.1 -> 3.5.2 across .github/workflows/{ci.yml, ci-master.yml, _upstream-testsuite.yml, _upstream-testsuite-macos.yml, _interop.yml, pr-lint.yml, interop-validation.yml, differential-fuzzer-overnight.yml, known-failures.yml, filter-fuzzer-overnight.yml} and .github/RELEASE_TEMPLATE.md.
  • CI scripts & Python gate tests:
    • Updated tools/ci/{run_upstream_testsuite.sh, surface_diff.sh, check_known_failures.sh} and tools/tests/{test_uts351_manifests.py, test_uts_badge_workflows.py}.
  • Expect manifests:
    • Regenerated tools/ci/upstream-3.5.2-expect.nonroot.txt (290 pass / 0 fail / 86 skip) and tools/ci/upstream-3.5.2-expect.nonroot.tcp.txt (137 pass / 0 fail / 31 skip) from full 3.5.2 test runs.
    • Updated all 8 tools/ci/upstream-3.5.2-expect.*.txt manifests (dropped removed authenticate-no-ocloexec-build-regression, added new 3.5.2 tests).

4. Documentation

  • README.md: Updated upstream reference to 3.5.2, badge URL to upstream-testsuite-3.5.2.yml, corpus counts (376 pipe / 168 TCP), and the 8-leg outcome table.
  • SECURITY.md: Added ### rsync 3.5.2 fixes (4 Nov 2026) including CVE-2026-119741 and updated upstream release references to 3.5.2.
  • CHANGELOG.md: Added ### Upstream 3.5.2 Alignment under [Unreleased].

Verification

  • Upstream 3.5.2 Test Suite (pipe leg, --expect-result tools/ci/upstream-3.5.2-expect.nonroot.txt): 290 passed, 0 failed, 86 skipped (PIPE_EXIT=0)
  • Upstream 3.5.2 Test Suite (TCP leg, --daemon-tests-only --use-tcp --expect-result tools/ci/upstream-3.5.2-expect.nonroot.tcp.txt): 137 passed, 0 failed, 31 skipped (TCP_EXIT=0)
  • Surface Diff (UPSTREAM_VERSION=3.5.2 bash tools/ci/surface_diff.sh --check): passed (exit 0)
  • Citations (cargo xtask citations): passed (15574 claimed names and 15574 claimed ranges checked across 5655 files)
  • Formatting & Lints (cargo fmt --check, cargo clippy --workspace --all-targets -- -D warnings): passed (exit 0)
  • Python UTS Workflow & Manifest Tests (python3 -m unittest discover -s tools/tests -p 'test_uts*.py' -v): 30 passed, 0 failed
  • Workspace Nextest (cargo nextest run --locked --workspace -E 'not test(ssh_config_differential)'): 34,651 passed, 207 skipped, 0 failed (ssh_config_differential excluded on host because system ssh is OpenSSH_10.6p1 rather than pinned OpenSSH_10.0p2)

@oferchen
oferchen merged commit d34b229 into master Nov 15, 2026
93 checks passed
@oferchen
oferchen deleted the feat/upstream-3.5.2 branch November 15, 2026 10:27
oferchen added a commit that referenced this pull request Nov 17, 2026
…8395)

## Summary
- **CONTRIBUTING.md**: pin the upstream tree, tarball URL, line
manifest, surface diff and citation example at rsync 3.5.2; list all
sixteen required checks (`rustdoc links` was missing); put blank lines
around headings and `---` rules. Four rules sat directly under a
paragraph, which rendered that paragraph as a heading.
- **SECURITY.md**: order the 3.5.1 and 3.5.2 sections by release, like
the summary table, and keep the 3.5.2 testsuite note with the 3.5.2
section. No status or evidence text changed.
- **CHANGELOG.md**: add entries for #8320, #8385, #8387 and #8392; add
the missing PR numbers (#8382, #8383); name 3.5.2 as the reference and
as the gated test suite; fix heading spacing.
- **README.md**: name the one internal feature the feature table's "Not
listed" note left out. The testsuite counts, CVE counts, protocol table,
links and feature table were checked against the tree and are current.

## Verification
- Every relative link in the four files resolves.
- The README feature table matches the `[features]` tables of the
workspace and every crate.
- Required-check list compared with the ruleset (16 contexts).
- Testsuite counts compared with `tools/ci/upstream-3.5.2-expect.*.txt`;
CVE counts compared with the SECURITY.md rows.
- `cargo xtask citations` passes.
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