Repository navigation
test: Attempt to fix flake in grpc transcoder test - #44510
Merged
Merged
Conversation
Member
Author
|
this is an "attempt" because i wasnt able to repro it - but this one happens fairly frequently and has been around a while i think |
by separating the tests Hopefully fix: envoyproxy#44427 Signed-off-by: Ryan Northey <[email protected]>
phlax
force-pushed
the
flake-grpc-trans-no
branch
from
April 17, 2026 19:28
dc74233 to
822ec67
Compare
ravenblackx
approved these changes
Apr 17, 2026
krinkinmu
pushed a commit
to grnmeira/envoy
that referenced
this pull request
Apr 20, 2026
by separating the tests Hopefully fix: envoyproxy#44427 Signed-off-by: Ryan Northey <[email protected]>
reubent-goog
pushed a commit
to reubent-goog/envoy
that referenced
this pull request
Apr 21, 2026
by separating the tests Hopefully fix: envoyproxy#44427 Signed-off-by: Ryan Northey <[email protected]> Signed-off-by: Reuben Tanner <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Apr 24, 2026
by separating the tests Hopefully fix: envoyproxy#44427 Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Apr 24, 2026
by separating the tests Hopefully fix: envoyproxy#44427 Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Apr 24, 2026
by separating the tests Hopefully fix: envoyproxy#44427 Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Apr 27, 2026
by separating the tests Hopefully fix: envoyproxy#44427 Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Apr 27, 2026
by separating the tests Hopefully fix: envoyproxy#44427 Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
that referenced
this pull request
Apr 27, 2026
by separating the tests Hopefully fix: #44427 Signed-off-by: Ryan Northey <[email protected]>
This was referenced Apr 27, 2026
Copilot AI
pushed a commit
that referenced
this pull request
Apr 27, 2026
by separating the tests Hopefully fix: #44427 Signed-off-by: Ryan Northey <[email protected]> Co-authored-by: phlax <[email protected]>
Copilot AI
pushed a commit
that referenced
this pull request
Apr 27, 2026
by separating the tests Hopefully fix: #44427 Signed-off-by: Ryan Northey <[email protected]> Co-authored-by: phlax <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Apr 27, 2026
by separating the tests Hopefully fix: envoyproxy#44427 Signed-off-by: Ryan Northey <[email protected]> Co-authored-by: phlax <[email protected]> Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Apr 29, 2026
by separating the tests Hopefully fix: envoyproxy#44427 Signed-off-by: Ryan Northey <[email protected]> Co-authored-by: phlax <[email protected]> Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Apr 29, 2026
by separating the tests Hopefully fix: envoyproxy#44427 Signed-off-by: Ryan Northey <[email protected]> Co-authored-by: phlax <[email protected]> Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Apr 29, 2026
by separating the tests Hopefully fix: envoyproxy#44427 Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
that referenced
this pull request
Apr 30, 2026
by separating the tests Hopefully fix: #44427 Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
that referenced
this pull request
Apr 30, 2026
by separating the tests Hopefully fix: #44427 Signed-off-by: Ryan Northey <[email protected]> Co-authored-by: phlax <[email protected]> Signed-off-by: Ryan Northey <[email protected]>
phlax
pushed a commit
that referenced
this pull request
Nov 16, 2026
…49303) `testTranscoding()` closes the fake upstream connection after each request and waits for the fake side to disconnect, but nothing waits for Envoy to process that close. Tests that call it more than once can have the next request handed to the dead pooled HTTP/2 connection, so the fake upstream never sees a new connection and `waitForHttpConnection()` times out. The helper now waits for `cluster.cluster_0.upstream_cx_active` to drop to 0 after the close. Additional Description: This hit `ServerStreamingGet/IPv4`, which sends three requests. It's the same failure as #44427 on `DisableRequestValidation`, which #44510 worked around by splitting that test into single-request tests. About 25 other tests in the file make several calls and pick this up too. The calls that pass `expect_connection_to_upstream=false` are local replies, so the wait returns immediately for them. AI Disclosure: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - `bazel test //test/extensions/filters/http/grpc_json_transcoder:grpc_json_transcoder_integration_test` passes - same target with `--test_filter='IpVersions/GrpcJsonTranscoderIntegrationTest.ServerStreaming*' --runs_per_test=50`: 400/400 pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A Signed-off-by: Derek Argueta <[email protected]>
phlax
pushed a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
…nvoyproxy#49303) `testTranscoding()` closes the fake upstream connection after each request and waits for the fake side to disconnect, but nothing waits for Envoy to process that close. Tests that call it more than once can have the next request handed to the dead pooled HTTP/2 connection, so the fake upstream never sees a new connection and `waitForHttpConnection()` times out. The helper now waits for `cluster.cluster_0.upstream_cx_active` to drop to 0 after the close. Additional Description: This hit `ServerStreamingGet/IPv4`, which sends three requests. It's the same failure as envoyproxy#44427 on `DisableRequestValidation`, which envoyproxy#44510 worked around by splitting that test into single-request tests. About 25 other tests in the file make several calls and pick this up too. The calls that pass `expect_connection_to_upstream=false` are local replies, so the wait returns immediately for them. AI Disclosure: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - `bazel test //test/extensions/filters/http/grpc_json_transcoder:grpc_json_transcoder_integration_test` passes - same target with `--test_filter='IpVersions/GrpcJsonTranscoderIntegrationTest.ServerStreaming*' --runs_per_test=50`: 400/400 pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A Signed-off-by: Derek Argueta <[email protected]> (cherry picked from commit b794d7a) Signed-off-by: Ryan Northey <[email protected]>
phlax
pushed a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
…nvoyproxy#49303) `testTranscoding()` closes the fake upstream connection after each request and waits for the fake side to disconnect, but nothing waits for Envoy to process that close. Tests that call it more than once can have the next request handed to the dead pooled HTTP/2 connection, so the fake upstream never sees a new connection and `waitForHttpConnection()` times out. The helper now waits for `cluster.cluster_0.upstream_cx_active` to drop to 0 after the close. Additional Description: This hit `ServerStreamingGet/IPv4`, which sends three requests. It's the same failure as envoyproxy#44427 on `DisableRequestValidation`, which envoyproxy#44510 worked around by splitting that test into single-request tests. About 25 other tests in the file make several calls and pick this up too. The calls that pass `expect_connection_to_upstream=false` are local replies, so the wait returns immediately for them. AI Disclosure: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - `bazel test //test/extensions/filters/http/grpc_json_transcoder:grpc_json_transcoder_integration_test` passes - same target with `--test_filter='IpVersions/GrpcJsonTranscoderIntegrationTest.ServerStreaming*' --runs_per_test=50`: 400/400 pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A Signed-off-by: Derek Argueta <[email protected]> (cherry picked from commit b794d7a) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
…nvoyproxy#49303) `testTranscoding()` closes the fake upstream connection after each request and waits for the fake side to disconnect, but nothing waits for Envoy to process that close. Tests that call it more than once can have the next request handed to the dead pooled HTTP/2 connection, so the fake upstream never sees a new connection and `waitForHttpConnection()` times out. The helper now waits for `cluster.cluster_0.upstream_cx_active` to drop to 0 after the close. Additional Description: This hit `ServerStreamingGet/IPv4`, which sends three requests. It's the same failure as envoyproxy#44427 on `DisableRequestValidation`, which envoyproxy#44510 worked around by splitting that test into single-request tests. About 25 other tests in the file make several calls and pick this up too. The calls that pass `expect_connection_to_upstream=false` are local replies, so the wait returns immediately for them. AI Disclosure: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - `bazel test //test/extensions/filters/http/grpc_json_transcoder:grpc_json_transcoder_integration_test` passes - same target with `--test_filter='IpVersions/GrpcJsonTranscoderIntegrationTest.ServerStreaming*' --runs_per_test=50`: 400/400 pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A Signed-off-by: Derek Argueta <[email protected]> Backport note (release/v1.38): with this branch's `waitForGaugeEq()`, as it has no `waitForGauge()` matcher overload (envoyproxy#44864). (cherry picked from commit b794d7a) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
…nvoyproxy#49303) `testTranscoding()` closes the fake upstream connection after each request and waits for the fake side to disconnect, but nothing waits for Envoy to process that close. Tests that call it more than once can have the next request handed to the dead pooled HTTP/2 connection, so the fake upstream never sees a new connection and `waitForHttpConnection()` times out. The helper now waits for `cluster.cluster_0.upstream_cx_active` to drop to 0 after the close. Additional Description: This hit `ServerStreamingGet/IPv4`, which sends three requests. It's the same failure as envoyproxy#44427 on `DisableRequestValidation`, which envoyproxy#44510 worked around by splitting that test into single-request tests. About 25 other tests in the file make several calls and pick this up too. The calls that pass `expect_connection_to_upstream=false` are local replies, so the wait returns immediately for them. AI Disclosure: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - `bazel test //test/extensions/filters/http/grpc_json_transcoder:grpc_json_transcoder_integration_test` passes - same target with `--test_filter='IpVersions/GrpcJsonTranscoderIntegrationTest.ServerStreaming*' --runs_per_test=50`: 400/400 pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A Signed-off-by: Derek Argueta <[email protected]> Backport note (release/v1.38): with this branch's `waitForGaugeEq()`, as it has no `waitForGauge()` matcher overload (envoyproxy#44864). (cherry picked from commit b794d7a) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
…nvoyproxy#49303) `testTranscoding()` closes the fake upstream connection after each request and waits for the fake side to disconnect, but nothing waits for Envoy to process that close. Tests that call it more than once can have the next request handed to the dead pooled HTTP/2 connection, so the fake upstream never sees a new connection and `waitForHttpConnection()` times out. The helper now waits for `cluster.cluster_0.upstream_cx_active` to drop to 0 after the close. Additional Description: This hit `ServerStreamingGet/IPv4`, which sends three requests. It's the same failure as envoyproxy#44427 on `DisableRequestValidation`, which envoyproxy#44510 worked around by splitting that test into single-request tests. About 25 other tests in the file make several calls and pick this up too. The calls that pass `expect_connection_to_upstream=false` are local replies, so the wait returns immediately for them. AI Disclosure: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - `bazel test //test/extensions/filters/http/grpc_json_transcoder:grpc_json_transcoder_integration_test` passes - same target with `--test_filter='IpVersions/GrpcJsonTranscoderIntegrationTest.ServerStreaming*' --runs_per_test=50`: 400/400 pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A Signed-off-by: Derek Argueta <[email protected]> Backport note (release/v1.38): with this branch's `waitForGaugeEq()`, as it has no `waitForGauge()` matcher overload (envoyproxy#44864). (cherry picked from commit b794d7a) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
…nvoyproxy#49303) `testTranscoding()` closes the fake upstream connection after each request and waits for the fake side to disconnect, but nothing waits for Envoy to process that close. Tests that call it more than once can have the next request handed to the dead pooled HTTP/2 connection, so the fake upstream never sees a new connection and `waitForHttpConnection()` times out. The helper now waits for `cluster.cluster_0.upstream_cx_active` to drop to 0 after the close. Additional Description: This hit `ServerStreamingGet/IPv4`, which sends three requests. It's the same failure as envoyproxy#44427 on `DisableRequestValidation`, which envoyproxy#44510 worked around by splitting that test into single-request tests. About 25 other tests in the file make several calls and pick this up too. The calls that pass `expect_connection_to_upstream=false` are local replies, so the wait returns immediately for them. AI Disclosure: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - `bazel test //test/extensions/filters/http/grpc_json_transcoder:grpc_json_transcoder_integration_test` passes - same target with `--test_filter='IpVersions/GrpcJsonTranscoderIntegrationTest.ServerStreaming*' --runs_per_test=50`: 400/400 pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A Signed-off-by: Derek Argueta <[email protected]> Backport note (release/v1.38): with this branch's `waitForGaugeEq()`, as it has no `waitForGauge()` matcher overload (envoyproxy#44864). (cherry picked from commit b794d7a) Signed-off-by: Ryan Northey <[email protected]>
phlax
pushed a commit
that referenced
this pull request
Nov 17, 2026
…49303) `testTranscoding()` closes the fake upstream connection after each request and waits for the fake side to disconnect, but nothing waits for Envoy to process that close. Tests that call it more than once can have the next request handed to the dead pooled HTTP/2 connection, so the fake upstream never sees a new connection and `waitForHttpConnection()` times out. The helper now waits for `cluster.cluster_0.upstream_cx_active` to drop to 0 after the close. Additional Description: This hit `ServerStreamingGet/IPv4`, which sends three requests. It's the same failure as #44427 on `DisableRequestValidation`, which #44510 worked around by splitting that test into single-request tests. About 25 other tests in the file make several calls and pick this up too. The calls that pass `expect_connection_to_upstream=false` are local replies, so the wait returns immediately for them. AI Disclosure: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - `bazel test //test/extensions/filters/http/grpc_json_transcoder:grpc_json_transcoder_integration_test` passes - same target with `--test_filter='IpVersions/GrpcJsonTranscoderIntegrationTest.ServerStreaming*' --runs_per_test=50`: 400/400 pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A Signed-off-by: Derek Argueta <[email protected]> (cherry picked from commit b794d7a) Signed-off-by: Ryan Northey <[email protected]>
phlax
pushed a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
…nvoyproxy#49303) `testTranscoding()` closes the fake upstream connection after each request and waits for the fake side to disconnect, but nothing waits for Envoy to process that close. Tests that call it more than once can have the next request handed to the dead pooled HTTP/2 connection, so the fake upstream never sees a new connection and `waitForHttpConnection()` times out. The helper now waits for `cluster.cluster_0.upstream_cx_active` to drop to 0 after the close. Additional Description: This hit `ServerStreamingGet/IPv4`, which sends three requests. It's the same failure as envoyproxy#44427 on `DisableRequestValidation`, which envoyproxy#44510 worked around by splitting that test into single-request tests. About 25 other tests in the file make several calls and pick this up too. The calls that pass `expect_connection_to_upstream=false` are local replies, so the wait returns immediately for them. AI Disclosure: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - `bazel test //test/extensions/filters/http/grpc_json_transcoder:grpc_json_transcoder_integration_test` passes - same target with `--test_filter='IpVersions/GrpcJsonTranscoderIntegrationTest.ServerStreaming*' --runs_per_test=50`: 400/400 pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A Signed-off-by: Derek Argueta <[email protected]> (cherry picked from commit b794d7a) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
…nvoyproxy#49303) `testTranscoding()` closes the fake upstream connection after each request and waits for the fake side to disconnect, but nothing waits for Envoy to process that close. Tests that call it more than once can have the next request handed to the dead pooled HTTP/2 connection, so the fake upstream never sees a new connection and `waitForHttpConnection()` times out. The helper now waits for `cluster.cluster_0.upstream_cx_active` to drop to 0 after the close. Additional Description: This hit `ServerStreamingGet/IPv4`, which sends three requests. It's the same failure as envoyproxy#44427 on `DisableRequestValidation`, which envoyproxy#44510 worked around by splitting that test into single-request tests. About 25 other tests in the file make several calls and pick this up too. The calls that pass `expect_connection_to_upstream=false` are local replies, so the wait returns immediately for them. AI Disclosure: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - `bazel test //test/extensions/filters/http/grpc_json_transcoder:grpc_json_transcoder_integration_test` passes - same target with `--test_filter='IpVersions/GrpcJsonTranscoderIntegrationTest.ServerStreaming*' --runs_per_test=50`: 400/400 pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A Signed-off-by: Derek Argueta <[email protected]> Backport note (release/v1.38): with this branch's `waitForGaugeEq()`, as it has no `waitForGauge()` matcher overload (envoyproxy#44864). (cherry picked from commit b794d7a) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
…nvoyproxy#49303) `testTranscoding()` closes the fake upstream connection after each request and waits for the fake side to disconnect, but nothing waits for Envoy to process that close. Tests that call it more than once can have the next request handed to the dead pooled HTTP/2 connection, so the fake upstream never sees a new connection and `waitForHttpConnection()` times out. The helper now waits for `cluster.cluster_0.upstream_cx_active` to drop to 0 after the close. Additional Description: This hit `ServerStreamingGet/IPv4`, which sends three requests. It's the same failure as envoyproxy#44427 on `DisableRequestValidation`, which envoyproxy#44510 worked around by splitting that test into single-request tests. About 25 other tests in the file make several calls and pick this up too. The calls that pass `expect_connection_to_upstream=false` are local replies, so the wait returns immediately for them. AI Disclosure: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - `bazel test //test/extensions/filters/http/grpc_json_transcoder:grpc_json_transcoder_integration_test` passes - same target with `--test_filter='IpVersions/GrpcJsonTranscoderIntegrationTest.ServerStreaming*' --runs_per_test=50`: 400/400 pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A Signed-off-by: Derek Argueta <[email protected]> Backport note (release/v1.38): with this branch's `waitForGaugeEq()`, as it has no `waitForGauge()` matcher overload (envoyproxy#44864). (cherry picked from commit b794d7a) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
…nvoyproxy#49303) `testTranscoding()` closes the fake upstream connection after each request and waits for the fake side to disconnect, but nothing waits for Envoy to process that close. Tests that call it more than once can have the next request handed to the dead pooled HTTP/2 connection, so the fake upstream never sees a new connection and `waitForHttpConnection()` times out. The helper now waits for `cluster.cluster_0.upstream_cx_active` to drop to 0 after the close. Additional Description: This hit `ServerStreamingGet/IPv4`, which sends three requests. It's the same failure as envoyproxy#44427 on `DisableRequestValidation`, which envoyproxy#44510 worked around by splitting that test into single-request tests. About 25 other tests in the file make several calls and pick this up too. The calls that pass `expect_connection_to_upstream=false` are local replies, so the wait returns immediately for them. AI Disclosure: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - `bazel test //test/extensions/filters/http/grpc_json_transcoder:grpc_json_transcoder_integration_test` passes - same target with `--test_filter='IpVersions/GrpcJsonTranscoderIntegrationTest.ServerStreaming*' --runs_per_test=50`: 400/400 pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A Signed-off-by: Derek Argueta <[email protected]> Backport note (release/v1.38): with this branch's `waitForGaugeEq()`, as it has no `waitForGauge()` matcher overload (envoyproxy#44864). (cherry picked from commit b794d7a) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
…nvoyproxy#49303) `testTranscoding()` closes the fake upstream connection after each request and waits for the fake side to disconnect, but nothing waits for Envoy to process that close. Tests that call it more than once can have the next request handed to the dead pooled HTTP/2 connection, so the fake upstream never sees a new connection and `waitForHttpConnection()` times out. The helper now waits for `cluster.cluster_0.upstream_cx_active` to drop to 0 after the close. Additional Description: This hit `ServerStreamingGet/IPv4`, which sends three requests. It's the same failure as envoyproxy#44427 on `DisableRequestValidation`, which envoyproxy#44510 worked around by splitting that test into single-request tests. About 25 other tests in the file make several calls and pick this up too. The calls that pass `expect_connection_to_upstream=false` are local replies, so the wait returns immediately for them. AI Disclosure: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - `bazel test //test/extensions/filters/http/grpc_json_transcoder:grpc_json_transcoder_integration_test` passes - same target with `--test_filter='IpVersions/GrpcJsonTranscoderIntegrationTest.ServerStreaming*' --runs_per_test=50`: 400/400 pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A Signed-off-by: Derek Argueta <[email protected]> Backport note (release/v1.38): with this branch's `waitForGaugeEq()`, as it has no `waitForGauge()` matcher overload (envoyproxy#44864). (cherry picked from commit b794d7a) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 18, 2026
…nvoyproxy#49303) `testTranscoding()` closes the fake upstream connection after each request and waits for the fake side to disconnect, but nothing waits for Envoy to process that close. Tests that call it more than once can have the next request handed to the dead pooled HTTP/2 connection, so the fake upstream never sees a new connection and `waitForHttpConnection()` times out. The helper now waits for `cluster.cluster_0.upstream_cx_active` to drop to 0 after the close. Additional Description: This hit `ServerStreamingGet/IPv4`, which sends three requests. It's the same failure as envoyproxy#44427 on `DisableRequestValidation`, which envoyproxy#44510 worked around by splitting that test into single-request tests. About 25 other tests in the file make several calls and pick this up too. The calls that pass `expect_connection_to_upstream=false` are local replies, so the wait returns immediately for them. AI Disclosure: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - `bazel test //test/extensions/filters/http/grpc_json_transcoder:grpc_json_transcoder_integration_test` passes - same target with `--test_filter='IpVersions/GrpcJsonTranscoderIntegrationTest.ServerStreaming*' --runs_per_test=50`: 400/400 pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A Signed-off-by: Derek Argueta <[email protected]> Backport note (release/v1.38): with this branch's `waitForGaugeEq()`, as it has no `waitForGauge()` matcher overload (envoyproxy#44864). (cherry picked from commit b794d7a) Signed-off-by: Ryan Northey <[email protected]>
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.
by separating the tests
Hopefully fix: #44427