Skip to content

test: Attempt to fix flake in grpc transcoder test - #44510

Merged
phlax merged 1 commit into
envoyproxy:mainfrom
phlax:flake-grpc-trans-no
Apr 17, 2026
Merged

phlax merged 1 commit into
envoyproxy:mainfrom
phlax:flake-grpc-trans-no

Conversation

@phlax

@phlax phlax commented Apr 17, 2026

Copy link
Copy Markdown
Member

by separating the tests

Hopefully fix: #44427

@phlax
phlax requested a review from nezdolik as a code owner April 17, 2026 10:39
@phlax phlax added this to the 1.38.0 milestone Apr 17, 2026
@phlax

phlax commented Apr 17, 2026

Copy link
Copy Markdown
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
phlax force-pushed the flake-grpc-trans-no branch from dc74233 to 822ec67 Compare April 17, 2026 19:28
@phlax
phlax merged commit a624bd2 into envoyproxy:main Apr 17, 2026
29 checks passed
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]>
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.

GrpcJsonTranscoderIntegrationTest.DisableRequestValidation/ is still flakey

3 participants