Skip to content

docs(interop): document protocol 28-32 interop test matrix (#1908) - #3502

Merged
oferchen merged 2 commits into
masterfrom
docs/interop-protocol-matrix-1908
May 1, 2026
Merged

oferchen merged 2 commits into
masterfrom
docs/interop-protocol-matrix-1908

Conversation

@oferchen

@oferchen oferchen commented May 1, 2026

Copy link
Copy Markdown
Owner

Summary

Adds docs/interop/protocol-matrix.md as the operator/contributor reference for the protocol 28-32 interop test matrix. Closes #1908.

The new doc has seven sections:

  1. Protocol version to upstream version mapping - from upstream rsync.h macros (PROTOCOL_VERSION is 30/31/32 for rsync 3.0.9/3.1.3/3.4.1; MIN_PROTOCOL_VERSION = 20, MAX_PROTOCOL_VERSION = 40 across all three) and from crates/protocol/src/version/protocol_version/mod.rs (declare_supported_protocols!(32, 31, 30, 29, 28)).
  2. Capability differences by protocol - five per-area tables (encoding, flist/recursion, filters, multiplex/goodbye/stats, compression/checksums, ACL/xattr) sourced from crates/protocol/src/version/protocol_version/capabilities.rs and upstream compat.c line citations.
  3. Standard interop matrix - core scenarios (15 entries, all upstream versions) and 3.4.1-only extended scenarios (45+ entries) extracted directly from the scenarios=(...) arrays at tools/ci/run_interop.sh:9072 and :9094. Includes the conditional gates (protocol-31 skipped on 3.0.x, inc-recursive requires proto >= 30, compress-{zstd,lz4} gated on upstream --version output, SSH gated on command -v ssh). Documents the forced-protocol pass for 28..32 against rsync 3.4.1.
  4. Standalone scenarios - full enumeration of the 70 scenarios in run_standalone_interop_tests, paired with their test_* implementation functions and the upstream version each runs against (3.4.1 for all; acl-xattr-graceful-degradation-309 additionally drives 3.0.9).
  5. Direction semantics - legend for the up: / oc: / standalone: keys used by known_failures.conf and how SSH transfers map to oc:ssh-transfer.
  6. Known failures - tables for unconditional failures and proto<=29 / proto<=28 conditional failures, sourced from tools/ci/known_failures.conf. Currently tracked: standalone:delta-stats, standalone:upstream-compressed-batch-self-roundtrip, plus protocol-gated up:acls, up:xattrs, up:compress-zstd, up:compress-lz4, up:merge-filter. Each entry cites the upstream compat.c / exclude.c / token.c line that explains it.
  7. Cross-references - links out to docs/protocol-compatibility.md (higher-level summary), docs/filter-coverage-matrix.md, docs/daemon/filter-precedence.md, docs/INTEROP.md, docs/interop_testing.md, and docs/PROTOCOL.md.

The existing docs/protocol-compatibility.md summarises outcomes of the harness (pass/fail/known limitation per feature). The new doc is the inventory of the harness itself - what scenarios exist, what flags they use, which directions and versions they run against. Both are linked from each other.

A note on a minor source-of-truth discrepancy surfaced while writing this: comments inside tools/ci/known_failures.conf describe rsync 3.0.9 as "speaks protocol 28". The advertised PROTOCOL_VERSION macro in upstream 3.0.9's rsync.h is 30; "28" appears to track the lowest protocol 3.0.9 will accept on the wire rather than what it advertises. The new doc cites the macros directly and adds a clarifying note.

Test plan

  • Verified protocol macros for 3.0.9, 3.1.3, 3.4.1 against target/interop/upstream-src/rsync-*/rsync.h.
  • Verified compatibility flag definitions and gates against target/interop/upstream-src/rsync-3.4.1/compat.c.
  • Cross-checked oc-rsync capability predicates against crates/protocol/src/version/protocol_version/capabilities.rs.
  • Cross-checked compat flag list against crates/protocol/src/compatibility/known.rs.
  • Enumerated harness scenarios from tools/ci/run_interop.sh (run_comprehensive_interop_case, run_standalone_interop_tests).
  • Enumerated tracked known failures from tools/ci/known_failures.conf and tools/ci/check_known_failures.sh.
  • Pure docs change - no code modified, no test/CI workflow modified.

oferchen added 2 commits May 1, 2026 11:16
Add docs/interop/protocol-matrix.md covering:
- Protocol version mapping for upstream 3.0.9, 3.1.3, 3.4.1
- Per-protocol capability table sourced from compat.c and capabilities.rs
- Standard interop matrix (core scenarios + 3.4.1-only extended scenarios)
- Forced protocol matrix for proto 28-32 against rsync 3.4.1
- Standalone scenario inventory from run_standalone_interop_tests
- Direction semantics legend (up/oc/standalone keys)
- Known failures cross-referenced to known_failures.conf entries
- Cross-links to filter-coverage-matrix.md and daemon/filter-precedence.md

Closes #1908.
@oferchen
oferchen merged commit a9dbc95 into master May 1, 2026
10 checks passed
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 1, 2026
@oferchen
oferchen deleted the docs/interop-protocol-matrix-1908 branch May 1, 2026 21:09
oferchen added a commit that referenced this pull request May 5, 2026
…3502)

Add docs/interop/protocol-matrix.md covering:
- Protocol version mapping for upstream 3.0.9, 3.1.3, 3.4.1
- Per-protocol capability table sourced from compat.c and capabilities.rs
- Standard interop matrix (core scenarios + 3.4.1-only extended scenarios)
- Forced protocol matrix for proto 28-32 against rsync 3.4.1
- Standalone scenario inventory from run_standalone_interop_tests
- Direction semantics legend (up/oc/standalone keys)
- Known failures cross-referenced to known_failures.conf entries
- Cross-links to filter-coverage-matrix.md and daemon/filter-precedence.md

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

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant