Skip to content

feat: enable lz4 and zstd auto-negotiation in compression interop tests - #3055

Merged
oferchen merged 1 commit into
masterfrom
feature/lz4-negotiation-enable
Mar 30, 2026
Merged

oferchen merged 1 commit into
masterfrom
feature/lz4-negotiation-enable

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Negotiation test fix: capability_compression_negotiation_preference now uses cfg!(feature = ...) guards so assertions match the actual supported_compressions() output when zstd/lz4 features are enabled. Previously hardcoded to expect ZlibX, which was wrong when built with default features.
  • Interop test enablement: tests/compress_interop_test.sh now runs real bidirectional interop tests for both zstd (--compress-choice=zstd) and lz4 (--compress-choice=lz4) including delta transfer variants, replacing the previous informational-only stubs that just incremented TESTS_SKIPPED.
  • Comment cleanup: Removed outdated not yet interop-validated comments throughout. Auto-negotiation comment now reflects that zstd/lz4 are fully wired.

Context

PR #3047 fixed zstd per-token flush boundary alignment. PR #3053 fixed lz4 per-token flush alignment. PR #3050 added both codecs to supported_compressions(). This PR completes the enablement by updating tests and interop scripts.

Closes #1380

Test plan

  • CI compression feature tests pass (-p compress -p protocol -p engine -p transfer --features zstd,lz4)
  • capability_compression_negotiation_preference passes with default features (zstd+lz4 enabled)
  • Interop validation workflow passes with zstd/lz4 compression tests running (not skipped)

Now that the lz4 per-token flush alignment (PR #3053) and zstd
per-token flush boundary (PR #3047) wire fixes are merged, enable
actual interop testing for both codecs instead of skipping them.

- Update capability_compression_negotiation_preference test to expect
  zstd/lz4 selection when their feature flags are enabled
- Replace informational-only zstd/lz4 interop test stubs with real
  run_compress_test calls including delta transfer variants
- Update auto-negotiation comments to reflect that zstd/lz4 are now
  fully validated and advertised

Closes #1380
@github-actions github-actions Bot added the enhancement New feature or request label Mar 30, 2026
@oferchen
oferchen merged commit 54b127e into master Mar 30, 2026
24 of 38 checks passed
@oferchen
oferchen deleted the feature/lz4-negotiation-enable branch March 30, 2026 13:30
oferchen added a commit that referenced this pull request May 1, 2026
…ts (#3055)

Now that the lz4 per-token flush alignment (PR #3053) and zstd
per-token flush boundary (PR #3047) wire fixes are merged, enable
actual interop testing for both codecs instead of skipping them.

- Update capability_compression_negotiation_preference test to expect
  zstd/lz4 selection when their feature flags are enabled
- Replace informational-only zstd/lz4 interop test stubs with real
  run_compress_test calls including delta transfer variants
- Update auto-negotiation comments to reflect that zstd/lz4 are now
  fully validated and advertised

Closes #1380
oferchen added a commit that referenced this pull request May 5, 2026
…ts (#3055)

Now that the lz4 per-token flush alignment (PR #3053) and zstd
per-token flush boundary (PR #3047) wire fixes are merged, enable
actual interop testing for both codecs instead of skipping them.

- Update capability_compression_negotiation_preference test to expect
  zstd/lz4 selection when their feature flags are enabled
- Replace informational-only zstd/lz4 interop test stubs with real
  run_compress_test calls including delta transfer variants
- Update auto-negotiation comments to reflect that zstd/lz4 are now
  fully validated and advertised

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant