Skip to content

Conversation

sudiptob2
Copy link
Contributor

@sudiptob2 sudiptob2 commented Sep 14, 2025

Fixes #6924

This PR implements a new Compressor field and deprecates the existing Compression field.

Copy link

codecov bot commented Sep 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.02%. Comparing base (d7d599a) to head (dc73b80).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6956      +/-   ##
==========================================
+ Coverage   70.96%   71.02%   +0.05%     
==========================================
  Files         229      229              
  Lines       41012    41024      +12     
==========================================
+ Hits        29106    29136      +30     
+ Misses      10190    10174      -16     
+ Partials     1716     1714       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sudiptob2 sudiptob2 force-pushed the feat/implement-compressor-field branch from c367bd8 to f0f309c Compare September 23, 2025 22:36
@sudiptob2 sudiptob2 changed the title WIP: feat: add compressor field to configure compression setting in Backen… feat: add compressor field to configure compression setting in BackendTrafficPolicy Sep 23, 2025
@sudiptob2 sudiptob2 marked this pull request as ready for review September 23, 2025 22:39
@sudiptob2 sudiptob2 requested a review from a team as a code owner September 23, 2025 22:39
@sudiptob2 sudiptob2 marked this pull request as draft September 23, 2025 22:55
@sudiptob2 sudiptob2 marked this pull request as ready for review September 24, 2025 00:18
// +patchStrategy=merge
//
// +optional
Compressor []*Compression `json:"compressor,omitempty" patchMergeKey:"type" patchStrategy:"merge"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we rm the patchMergeKey, they are not needed here

@sudiptob2 sudiptob2 force-pushed the feat/implement-compressor-field branch from ba27eea to 286ba06 Compare October 13, 2025 15:10
arkodg
arkodg previously approved these changes Oct 14, 2025
Copy link
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks

@arkodg arkodg requested review from a team October 14, 2025 18:11
@sudiptob2 sudiptob2 force-pushed the feat/implement-compressor-field branch from 286ba06 to 46265cc Compare October 14, 2025 18:35
@sudiptob2 sudiptob2 force-pushed the feat/implement-compressor-field branch 2 times, most recently from 4739514 to 1d3f7ac Compare October 15, 2025 23:48
…mpressor field and deprecate the old compression field

Signed-off-by: sudipto baral <[email protected]>
Signed-off-by: sudipto baral <[email protected]>
Signed-off-by: sudipto baral <[email protected]>
@sudiptob2 sudiptob2 force-pushed the feat/implement-compressor-field branch from 1d3f7ac to 86678f2 Compare October 17, 2025 16:35
arkodg
arkodg previously approved these changes Oct 18, 2025
Copy link
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks

@arkodg arkodg requested review from a team October 18, 2025 00:12
Removed unnecessary patchMergeKey and patchStrategy from Compressor field.

Signed-off-by: Rudrakh Panigrahi <[email protected]>
@rudrakhp rudrakhp enabled auto-merge (squash) October 18, 2025 04:12
@rudrakhp
Copy link
Member

/retest

@rudrakhp rudrakhp merged commit 583f4f0 into envoyproxy:main Oct 18, 2025
56 of 58 checks passed
aburan28 pushed a commit to aburan28/gateway that referenced this pull request Oct 18, 2025
…dTrafficPolicy (envoyproxy#6956)

* feat: add compressor field to configure compression setting in BackendTrafficPolicy

Signed-off-by: sudipto baral <[email protected]>

* docs: update response compression documentation to reflect the new compressor field and deprecate the old compression field

Signed-off-by: sudipto baral <[email protected]>

* test: update translator tests outputs

Signed-off-by: sudipto baral <[email protected]>

* test: re-generate outputs

Signed-off-by: sudipto baral <[email protected]>

* test: go mod tidy

Signed-off-by: sudipto baral <[email protected]>

* remove patchMerge from Compressor field definition

Removed unnecessary patchMergeKey and patchStrategy from Compressor field.

Signed-off-by: Rudrakh Panigrahi <[email protected]>

* revert patchMergeKey changes

Signed-off-by: Rudrakh Panigrahi <[email protected]>

---------

Signed-off-by: sudipto baral <[email protected]>
Signed-off-by: Rudrakh Panigrahi <[email protected]>
Co-authored-by: Rudrakh Panigrahi <[email protected]>
Signed-off-by: Adam Buran <[email protected]>
@sudiptob2 sudiptob2 deleted the feat/implement-compressor-field branch October 19, 2025 03:41
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.

Require Both Type and Compressor Field for Compression in BackendTrafficPolicy config

3 participants