Decompress even when no-transform is specified#1995
Merged
buildbreaker merged 9 commits intoenvoyproxy:mainfrom Jan 7, 2022
Merged
Decompress even when no-transform is specified#1995buildbreaker merged 9 commits intoenvoyproxy:mainfrom
no-transform is specified#1995buildbreaker merged 9 commits intoenvoyproxy:mainfrom
Conversation
3d3aabd to
5270b4c
Compare
This allows matching the more lenient behavior of other client-side networking libraries such as OkHttp or URLSession, especially in cases where the remote server is not under the client developer's control. Signed-off-by: JP Simard <jp@jpsim.com>
1b8b9b3 to
f2c4988
Compare
Signed-off-by: JP Simard <jp@jpsim.com>
The integration tests are passing locally for me, so I wonder if the CI failures have anything to do with Engflow. Signed-off-by: JP Simard <jp@jpsim.com>
They pass when run locally but fail when run on CI. Let's see if this helps. Signed-off-by: JP Simard <jp@jpsim.com>
Signed-off-by: JP Simard <jp@jpsim.com>
Signed-off-by: JP Simard <jp@jpsim.com>
jpsim
commented
Jan 7, 2022
| name = "client_integration_test", | ||
| srcs = ["client_integration_test.cc"], | ||
| repository = "@envoy", | ||
| # TODO(jpsim): Fix remote execution for these tests |
Contributor
Author
There was a problem hiding this comment.
A change in Envoy has caused the integration tests to fail when executed remotely. I'm looking into it here: #1996
I'd rather not block this PR on that investigation though.
Contributor
Author
There was a problem hiding this comment.
Bisecting has identified that envoyproxy/envoy#19221 is responsible.
@alyssawilk considering you marked that PR as having a high risk level, do you think this is surfacing a real issue? Should we revert that change until we can better understand the reason these tests broke when executed remotely?
Signed-off-by: JP Simard <jp@jpsim.com>
Signed-off-by: JP Simard <jp@jpsim.com>
Signed-off-by: JP Simard <jp@jpsim.com>
buildbreaker
approved these changes
Jan 7, 2022
jpsim
added a commit
to jpsim/envoy-mobile
that referenced
this pull request
Feb 3, 2022
* origin/main: (21 commits) owners: adding charles (envoyproxy#2038) [OWNERS] Update Envoy Mobile owners (envoyproxy#2031) [deps] Update rules_android to a stable release URL (envoyproxy#2032) [json] Remove com_github_nlohmann_json override & patch (envoyproxy#2030) Enable the "received byte count" feature. (envoyproxy#2004) Run Kotlin macOS tests without EngFlow (envoyproxy#2018) final_intel: adding response flags (envoyproxy#2009) fix (envoyproxy#2025) stream intel: update kotlin public interface to align with swift (envoyproxy#2013) tls: update bundled root certificates (envoyproxy#2016) tooling: first pass at oncall tooling (envoyproxy#2014) test: Solve CI flakiness for test/java/org/chromium/net/urlconnection:urlconnection_test (envoyproxy#2007) envoy: 519774f742 (envoyproxy#2015) Default timestamp to -1 for envoy_final_stream_intel (envoyproxy#2006) QuicTestServer (envoyproxy#1989) bump boringssl to Envoy's version (envoyproxy#1999) docs: addding release notes (envoyproxy#2001) release: cutting the 0.4.5 release (envoyproxy#2000) Revert "bazel: change bazelisk for M1 support (envoyproxy#1966)" (envoyproxy#1998) Decompress even when `no-transform` is specified (envoyproxy#1995) ... Signed-off-by: JP Simard <jp@jpsim.com>
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.
Commit Message: Decompress even when
no-transformis specifiedAdditional Description: This leverages the flag added in envoyproxy/envoy#19399 to always decompress responses, regardless of the presence of a
no-transformcache control header, matching the more lenient behavior of other client-side networking libraries such as OkHttp or URLSession, especially in cases where the remote server is not under the client developer's control.Risk Level: Low, responses that would previously fail to decode will now succeed when a compressed response comes with a
no-transformcache control header.Testing: Added unit tests in Envoy and manually confirmed in an Android app that gzipped responses with
no-transformthat previously failed now succeed.Docs Changes: Not needed.
Release Notes: Added.
Platform Specific Features: This is configured to apply regardless of the platform, so both iOS & Android will get this new behavior.