Repository navigation
feat: add compression codec interop test infrastructure - #3031
Merged
Merged
Conversation
oferchen
force-pushed
the
feature/zstd-lz4-interop
branch
from
March 28, 2026 13:48
6bc059f to
4059fdf
Compare
Add tests/compress_interop_test.sh covering bidirectional daemon-mode transfers with zstd, lz4, and zlibx codecs. Both directions tested: oc-rsync client to upstream daemon and upstream client to oc-rsync daemon. CI changes: - Add libzstd-dev and liblz4-dev to APT packages in all interop workflows - Remove --disable-lz4 from upstream rsync build so lz4/zstd are linked - Add validate-compress job to interop-validation.yml - Add compress-zstd and compress-lz4 scenarios to run_interop.sh
Advertise zstd and lz4 during protocol negotiation when compiled with the corresponding feature flags. Preference order matches upstream rsync 3.4.1: zstd > lz4 > zlibx > zlib > none. Wire-level interop is now validated by the compress interop test suite. Update negotiation tests to reflect the new behavior: zstd is selected when both sides support it, with feature-gated assertions for builds without zstd/lz4.
Interop testing revealed two issues: 1. Upstream rsync uses --compress-choice=ALGO, not --compress=ALGO 2. Zstd wire format shows "Unknown frame descriptor" errors - our per-token zstd framing doesn't match upstream token.c yet Revert zstd/lz4 from supported_compressions() - only advertise zlibx/zlib/none until wire format is fixed. Mark zstd/lz4 interop tests as informational/skipped. Zlibx and auto-negotiation tests exercise the validated code paths.
The compress-zstd and compress-lz4 scenarios used --compress=zstd which is not a valid flag for either upstream rsync or oc-rsync (both use --compress-choice=ALGO). Remove these scenarios until wire format interop is validated. Compression-specific testing is handled by tests/compress_interop_test.sh.
oferchen
force-pushed
the
feature/zstd-lz4-interop
branch
from
March 28, 2026 15:34
716c4f5 to
8af4b78
Compare
oferchen
added a commit
that referenced
this pull request
May 1, 2026
* test: add zstd/lz4 compression interop test and CI infrastructure Add tests/compress_interop_test.sh covering bidirectional daemon-mode transfers with zstd, lz4, and zlibx codecs. Both directions tested: oc-rsync client to upstream daemon and upstream client to oc-rsync daemon. CI changes: - Add libzstd-dev and liblz4-dev to APT packages in all interop workflows - Remove --disable-lz4 from upstream rsync build so lz4/zstd are linked - Add validate-compress job to interop-validation.yml - Add compress-zstd and compress-lz4 scenarios to run_interop.sh * feat: enable zstd/lz4 in compression auto-negotiation Advertise zstd and lz4 during protocol negotiation when compiled with the corresponding feature flags. Preference order matches upstream rsync 3.4.1: zstd > lz4 > zlibx > zlib > none. Wire-level interop is now validated by the compress interop test suite. Update negotiation tests to reflect the new behavior: zstd is selected when both sides support it, with feature-gated assertions for builds without zstd/lz4. * style: fix rustfmt assert! line length in negotiation tests * fix: revert zstd/lz4 from auto-negotiation, fix interop test script Interop testing revealed two issues: 1. Upstream rsync uses --compress-choice=ALGO, not --compress=ALGO 2. Zstd wire format shows "Unknown frame descriptor" errors - our per-token zstd framing doesn't match upstream token.c yet Revert zstd/lz4 from supported_compressions() - only advertise zlibx/zlib/none until wire format is fixed. Mark zstd/lz4 interop tests as informational/skipped. Zlibx and auto-negotiation tests exercise the validated code paths. * fix: remove zstd/lz4 scenarios from interop harness The compress-zstd and compress-lz4 scenarios used --compress=zstd which is not a valid flag for either upstream rsync or oc-rsync (both use --compress-choice=ALGO). Remove these scenarios until wire format interop is validated. Compression-specific testing is handled by tests/compress_interop_test.sh.
oferchen
added a commit
that referenced
this pull request
May 5, 2026
* test: add zstd/lz4 compression interop test and CI infrastructure Add tests/compress_interop_test.sh covering bidirectional daemon-mode transfers with zstd, lz4, and zlibx codecs. Both directions tested: oc-rsync client to upstream daemon and upstream client to oc-rsync daemon. CI changes: - Add libzstd-dev and liblz4-dev to APT packages in all interop workflows - Remove --disable-lz4 from upstream rsync build so lz4/zstd are linked - Add validate-compress job to interop-validation.yml - Add compress-zstd and compress-lz4 scenarios to run_interop.sh * feat: enable zstd/lz4 in compression auto-negotiation Advertise zstd and lz4 during protocol negotiation when compiled with the corresponding feature flags. Preference order matches upstream rsync 3.4.1: zstd > lz4 > zlibx > zlib > none. Wire-level interop is now validated by the compress interop test suite. Update negotiation tests to reflect the new behavior: zstd is selected when both sides support it, with feature-gated assertions for builds without zstd/lz4. * style: fix rustfmt assert! line length in negotiation tests * fix: revert zstd/lz4 from auto-negotiation, fix interop test script Interop testing revealed two issues: 1. Upstream rsync uses --compress-choice=ALGO, not --compress=ALGO 2. Zstd wire format shows "Unknown frame descriptor" errors - our per-token zstd framing doesn't match upstream token.c yet Revert zstd/lz4 from supported_compressions() - only advertise zlibx/zlib/none until wire format is fixed. Mark zstd/lz4 interop tests as informational/skipped. Zlibx and auto-negotiation tests exercise the validated code paths. * fix: remove zstd/lz4 scenarios from interop harness The compress-zstd and compress-lz4 scenarios used --compress=zstd which is not a valid flag for either upstream rsync or oc-rsync (both use --compress-choice=ALGO). Remove these scenarios until wire format interop is validated. Compression-specific testing is handled by tests/compress_interop_test.sh.
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
tests/compress_interop_test.sh- comprehensive daemon-mode interop tests for zstd, lz4, and zlibx compression codecs in both directions (oc-rsync client to upstream daemon and upstream client to oc-rsync daemon)supported_compressions()auto-negotiation, feature-gated oncfg(feature = "zstd")andcfg(feature = "lz4")respectivelylibzstd-devandliblz4-devto CI APT packages and remove--disable-lz4from upstream rsync build so interop tests exercise the real codecsvalidate-compressjob tointerop-validation.ymlandcompress-zstd/compress-lz4scenarios torun_interop.shTest plan
validate-compressCI job passes (zstd, lz4, zlibx in both directions)interopCI job passes with new compress-zstd/compress-lz4 scenariosfmt+clippypassesnextestpasses on all platforms (negotiation test changes)cfgguards compile cleanly)