Skip to content

test: Give the ext_proc integration fixture a message timeout above s… - #48964

Merged
phlax merged 1 commit into
envoyproxy:mainfrom
phlax:test-http-ext-proc-message-timeout
Nov 3, 2026
Merged

phlax merged 1 commit into
envoyproxy:mainfrom
phlax:test-http-ext-proc-message-timeout

Conversation

@phlax

@phlax phlax commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

The fixture never set message_timeout, so every test ran at the filter default of 200ms. Under tsan a round trip through the fake ext_proc server can exceed that: the filter times out and answers 504, so ResponseFromExtProcServerTooLarge saw 504 where it expected the 500 from the oversized response, and later tests timed out waiting for an upstream connection the request never made (run 41653256385, shard 7).

Default to 5s where a test has not set one. The timeout tests already set 200ms explicitly; the two that relied on the implicit 200ms to check that no timer is armed (observability mode, FULL_DUPLEX_STREAMED mode override) now set it too.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Two timeout regression tests still assume an implicit 200ms timeout, so the longer fixture default lets their 400ms delays pass without detecting incorrectly enabled or lingering timers.

1 open issue
What changed in this PR

This PR adjusts Envoy’s ext_proc integration fixture to reduce failures caused by sanitizer overhead exceeding the filter’s default timeout.

Changes:

  • Sets a 5-second message timeout when a test has not configured one.
  • Preserves explicit timeout settings and documents the reason for the longer fixture default.
File Description
test/​extensions/​filters/​http/​ext_proc/​ext_proc_integration_common.cc Adds a conditional 5-second message timeout to the shared fixture.

Review effort: Balanced

Comment on lines +111 to +112
if (!proto_config_.has_message_timeout()) {
proto_config_.mutable_message_timeout()->set_seconds(5);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Both now set message_timeout to 200ms explicitly (b730cd5): ObservabilityModeWithFullRequestAndTimeout and StandAloneModeOverrideWithHeaderDelay. Every other 400ms advance in these tests already set it.

@phlax
phlax force-pushed the test-http-ext-proc-message-timeout branch from 7705f9b to b730cd5 Compare November 3, 2026 15:47
…anitizer latency

The fixture never set message_timeout, so every test ran at the filter
default of 200ms. Under tsan a round trip through the fake ext_proc
server can exceed that: the filter times out and answers 504, so
ResponseFromExtProcServerTooLarge saw 504 where it expected the 500
from the oversized response, and later tests timed out waiting for an
upstream connection the request never made (run 41653256385, shard 7).

Default to 5s where a test has not set one. The timeout tests already
set 200ms explicitly; the two that relied on the implicit 200ms to
check that no timer is armed (observability mode, FULL_DUPLEX_STREAMED
mode override) now set it too.

Signed-off-by: Ryan Northey <[email protected]>
@phlax
phlax force-pushed the test-http-ext-proc-message-timeout branch from b730cd5 to 3ce39e7 Compare November 3, 2026 15:48
@phlax
phlax requested a balanced review from Copilot November 3, 2026 15:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues block approval of the test-timeout changes.

1 open issue

Review effort: Balanced

@yanjunxiang-google yanjunxiang-google left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@phlax
phlax merged commit 751b6fe into envoyproxy:main Nov 3, 2026
27 checks passed
phlax added a commit to phlax/envoy that referenced this pull request Nov 12, 2026
envoyproxy#48964)

The fixture never set message_timeout, so every test ran at the filter
default of 200ms. Under tsan a round trip through the fake ext_proc
server can exceed that: the filter times out and answers 504, so
ResponseFromExtProcServerTooLarge saw 504 where it expected the 500 from
the oversized response, and later tests timed out waiting for an
upstream connection the request never made (run 41653256385, shard 7).

Default to 5s where a test has not set one. The timeout tests already
set 200ms explicitly; the two that relied on the implicit 200ms to check
that no timer is armed (observability mode, FULL_DUPLEX_STREAMED mode
override) now set it too.

Signed-off-by: Ryan Northey <[email protected]>
jwendell pushed a commit that referenced this pull request Nov 12, 2026
#48964)

The fixture never set message_timeout, so every test ran at the filter
default of 200ms. Under tsan a round trip through the fake ext_proc
server can exceed that: the filter times out and answers 504, so
ResponseFromExtProcServerTooLarge saw 504 where it expected the 500 from
the oversized response, and later tests timed out waiting for an
upstream connection the request never made (run 41653256385, shard 7).

Default to 5s where a test has not set one. The timeout tests already
set 200ms explicitly; the two that relied on the implicit 200ms to check
that no timer is armed (observability mode, FULL_DUPLEX_STREAMED mode
override) now set it too.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit that referenced this pull request Nov 12, 2026
`ext_proc_http_integration_test` ran with the filter's default message
timeout of 200ms, and a 900ms timeout on the HTTP client, both in real
time. Under tsan a round trip through the fake side stream server can
take longer, the request is then failed with a 504 and never reaches the
upstream, and the test fails waiting for the upstream connection and
crashes on the stream it did not get.

Default both to 5s, as #48964 did for the gRPC fixture. The tests that
rely on the message timeout set it to 200ms: the two timeout tests, and
the two with a cluster that does not exist, where nothing responds.

Seen in CI on #49207 (tsan, `ServerNoRequestHeaderMutation`: `Timed out
waiting for new connection`, then a segmentation fault).

Testing: `*ServerNoRequestHeaderMutation*` with `--config=tsan` on RBE:

| | runs | failed |
|---|---|---|
| main (0dfc464) | 1000 | 2 |
| this change | 3000 | 0 |

Risk Level: low (test only)

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 13, 2026
…49215)

`ext_proc_http_integration_test` ran with the filter's default message
timeout of 200ms, and a 900ms timeout on the HTTP client, both in real
time. Under tsan a round trip through the fake side stream server can
take longer, the request is then failed with a 504 and never reaches the
upstream, and the test fails waiting for the upstream connection and
crashes on the stream it did not get.

Default both to 5s, as envoyproxy#48964 did for the gRPC fixture. The tests that
rely on the message timeout set it to 200ms: the two timeout tests, and
the two with a cluster that does not exist, where nothing responds.

Seen in CI on envoyproxy#49207 (tsan, `ServerNoRequestHeaderMutation`: `Timed out
waiting for new connection`, then a segmentation fault).

Testing: `*ServerNoRequestHeaderMutation*` with `--config=tsan` on RBE:

| | runs | failed |
|---|---|---|
| main (0dfc464) | 1000 | 2 |
| this change | 3000 | 0 |

Risk Level: low (test only)

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 13, 2026
…49215)

`ext_proc_http_integration_test` ran with the filter's default message
timeout of 200ms, and a 900ms timeout on the HTTP client, both in real
time. Under tsan a round trip through the fake side stream server can
take longer, the request is then failed with a 504 and never reaches the
upstream, and the test fails waiting for the upstream connection and
crashes on the stream it did not get.

Default both to 5s, as envoyproxy#48964 did for the gRPC fixture. The tests that
rely on the message timeout set it to 200ms: the two timeout tests, and
the two with a cluster that does not exist, where nothing responds.

Seen in CI on envoyproxy#49207 (tsan, `ServerNoRequestHeaderMutation`: `Timed out
waiting for new connection`, then a segmentation fault).

Testing: `*ServerNoRequestHeaderMutation*` with `--config=tsan` on RBE:

| | runs | failed |
|---|---|---|
| main (0dfc464) | 1000 | 2 |
| this change | 3000 | 0 |

Risk Level: low (test only)

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 13, 2026
…49215)

`ext_proc_http_integration_test` ran with the filter's default message
timeout of 200ms, and a 900ms timeout on the HTTP client, both in real
time. Under tsan a round trip through the fake side stream server can
take longer, the request is then failed with a 504 and never reaches the
upstream, and the test fails waiting for the upstream connection and
crashes on the stream it did not get.

Default both to 5s, as envoyproxy#48964 did for the gRPC fixture. The tests that
rely on the message timeout set it to 200ms: the two timeout tests, and
the two with a cluster that does not exist, where nothing responds.

Seen in CI on envoyproxy#49207 (tsan, `ServerNoRequestHeaderMutation`: `Timed out
waiting for new connection`, then a segmentation fault).

Testing: `*ServerNoRequestHeaderMutation*` with `--config=tsan` on RBE:

| | runs | failed |
|---|---|---|
| main (0dfc464) | 1000 | 2 |
| this change | 3000 | 0 |

Risk Level: low (test only)

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 14507a6)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 13, 2026
…49215)

`ext_proc_http_integration_test` ran with the filter's default message
timeout of 200ms, and a 900ms timeout on the HTTP client, both in real
time. Under tsan a round trip through the fake side stream server can
take longer, the request is then failed with a 504 and never reaches the
upstream, and the test fails waiting for the upstream connection and
crashes on the stream it did not get.

Default both to 5s, as envoyproxy#48964 did for the gRPC fixture. The tests that
rely on the message timeout set it to 200ms: the two timeout tests, and
the two with a cluster that does not exist, where nothing responds.

Seen in CI on envoyproxy#49207 (tsan, `ServerNoRequestHeaderMutation`: `Timed out
waiting for new connection`, then a segmentation fault).

Testing: `*ServerNoRequestHeaderMutation*` with `--config=tsan` on RBE:

| | runs | failed |
|---|---|---|
| main (0dfc464) | 1000 | 2 |
| this change | 3000 | 0 |

Risk Level: low (test only)

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 14507a6)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 13, 2026
…49215)

`ext_proc_http_integration_test` ran with the filter's default message
timeout of 200ms, and a 900ms timeout on the HTTP client, both in real
time. Under tsan a round trip through the fake side stream server can
take longer, the request is then failed with a 504 and never reaches the
upstream, and the test fails waiting for the upstream connection and
crashes on the stream it did not get.

Default both to 5s, as envoyproxy#48964 did for the gRPC fixture. The tests that
rely on the message timeout set it to 200ms: the two timeout tests, and
the two with a cluster that does not exist, where nothing responds.

Seen in CI on envoyproxy#49207 (tsan, `ServerNoRequestHeaderMutation`: `Timed out
waiting for new connection`, then a segmentation fault).

Testing: `*ServerNoRequestHeaderMutation*` with `--config=tsan` on RBE:

| | runs | failed |
|---|---|---|
| main (0dfc464) | 1000 | 2 |
| this change | 3000 | 0 |

Risk Level: low (test only)

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 14507a6)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 13, 2026
…49215)

`ext_proc_http_integration_test` ran with the filter's default message
timeout of 200ms, and a 900ms timeout on the HTTP client, both in real
time. Under tsan a round trip through the fake side stream server can
take longer, the request is then failed with a 504 and never reaches the
upstream, and the test fails waiting for the upstream connection and
crashes on the stream it did not get.

Default both to 5s, as envoyproxy#48964 did for the gRPC fixture. The tests that
rely on the message timeout set it to 200ms: the two timeout tests, and
the two with a cluster that does not exist, where nothing responds.

Seen in CI on envoyproxy#49207 (tsan, `ServerNoRequestHeaderMutation`: `Timed out
waiting for new connection`, then a segmentation fault).

Testing: `*ServerNoRequestHeaderMutation*` with `--config=tsan` on RBE:

| | runs | failed |
|---|---|---|
| main (0dfc464) | 1000 | 2 |
| this change | 3000 | 0 |

Risk Level: low (test only)

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 14507a6)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 13, 2026
…49215)

`ext_proc_http_integration_test` ran with the filter's default message
timeout of 200ms, and a 900ms timeout on the HTTP client, both in real
time. Under tsan a round trip through the fake side stream server can
take longer, the request is then failed with a 504 and never reaches the
upstream, and the test fails waiting for the upstream connection and
crashes on the stream it did not get.

Default both to 5s, as envoyproxy#48964 did for the gRPC fixture. The tests that
rely on the message timeout set it to 200ms: the two timeout tests, and
the two with a cluster that does not exist, where nothing responds.

Seen in CI on envoyproxy#49207 (tsan, `ServerNoRequestHeaderMutation`: `Timed out
waiting for new connection`, then a segmentation fault).

Testing: `*ServerNoRequestHeaderMutation*` with `--config=tsan` on RBE:

| | runs | failed |
|---|---|---|
| main (0dfc464) | 1000 | 2 |
| this change | 3000 | 0 |

Risk Level: low (test only)

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 14507a6)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 13, 2026
…49215)

`ext_proc_http_integration_test` ran with the filter's default message
timeout of 200ms, and a 900ms timeout on the HTTP client, both in real
time. Under tsan a round trip through the fake side stream server can
take longer, the request is then failed with a 504 and never reaches the
upstream, and the test fails waiting for the upstream connection and
crashes on the stream it did not get.

Default both to 5s, as envoyproxy#48964 did for the gRPC fixture. The tests that
rely on the message timeout set it to 200ms: the two timeout tests, and
the two with a cluster that does not exist, where nothing responds.

Seen in CI on envoyproxy#49207 (tsan, `ServerNoRequestHeaderMutation`: `Timed out
waiting for new connection`, then a segmentation fault).

Testing: `*ServerNoRequestHeaderMutation*` with `--config=tsan` on RBE:

| | runs | failed |
|---|---|---|
| main (0dfc464) | 1000 | 2 |
| this change | 3000 | 0 |

Risk Level: low (test only)

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 14507a6)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 13, 2026
…49215)

`ext_proc_http_integration_test` ran with the filter's default message
timeout of 200ms, and a 900ms timeout on the HTTP client, both in real
time. Under tsan a round trip through the fake side stream server can
take longer, the request is then failed with a 504 and never reaches the
upstream, and the test fails waiting for the upstream connection and
crashes on the stream it did not get.

Default both to 5s, as envoyproxy#48964 did for the gRPC fixture. The tests that
rely on the message timeout set it to 200ms: the two timeout tests, and
the two with a cluster that does not exist, where nothing responds.

Seen in CI on envoyproxy#49207 (tsan, `ServerNoRequestHeaderMutation`: `Timed out
waiting for new connection`, then a segmentation fault).

Testing: `*ServerNoRequestHeaderMutation*` with `--config=tsan` on RBE:

| | runs | failed |
|---|---|---|
| main (0dfc464) | 1000 | 2 |
| this change | 3000 | 0 |

Risk Level: low (test only)

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 14507a6)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 13, 2026
…49215)

`ext_proc_http_integration_test` ran with the filter's default message
timeout of 200ms, and a 900ms timeout on the HTTP client, both in real
time. Under tsan a round trip through the fake side stream server can
take longer, the request is then failed with a 504 and never reaches the
upstream, and the test fails waiting for the upstream connection and
crashes on the stream it did not get.

Default both to 5s, as envoyproxy#48964 did for the gRPC fixture. The tests that
rely on the message timeout set it to 200ms: the two timeout tests, and
the two with a cluster that does not exist, where nothing responds.

Seen in CI on envoyproxy#49207 (tsan, `ServerNoRequestHeaderMutation`: `Timed out
waiting for new connection`, then a segmentation fault).

Testing: `*ServerNoRequestHeaderMutation*` with `--config=tsan` on RBE:

| | runs | failed |
|---|---|---|
| main (0dfc464) | 1000 | 2 |
| this change | 3000 | 0 |

Risk Level: low (test only)

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 14507a6)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
…49215)

`ext_proc_http_integration_test` ran with the filter's default message
timeout of 200ms, and a 900ms timeout on the HTTP client, both in real
time. Under tsan a round trip through the fake side stream server can
take longer, the request is then failed with a 504 and never reaches the
upstream, and the test fails waiting for the upstream connection and
crashes on the stream it did not get.

Default both to 5s, as envoyproxy#48964 did for the gRPC fixture. The tests that
rely on the message timeout set it to 200ms: the two timeout tests, and
the two with a cluster that does not exist, where nothing responds.

Seen in CI on envoyproxy#49207 (tsan, `ServerNoRequestHeaderMutation`: `Timed out
waiting for new connection`, then a segmentation fault).

Testing: `*ServerNoRequestHeaderMutation*` with `--config=tsan` on RBE:

| | runs | failed |
|---|---|---|
| main (0dfc464) | 1000 | 2 |
| this change | 3000 | 0 |

Risk Level: low (test only)

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 14507a6)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
…49215)

`ext_proc_http_integration_test` ran with the filter's default message
timeout of 200ms, and a 900ms timeout on the HTTP client, both in real
time. Under tsan a round trip through the fake side stream server can
take longer, the request is then failed with a 504 and never reaches the
upstream, and the test fails waiting for the upstream connection and
crashes on the stream it did not get.

Default both to 5s, as envoyproxy#48964 did for the gRPC fixture. The tests that
rely on the message timeout set it to 200ms: the two timeout tests, and
the two with a cluster that does not exist, where nothing responds.

Seen in CI on envoyproxy#49207 (tsan, `ServerNoRequestHeaderMutation`: `Timed out
waiting for new connection`, then a segmentation fault).

Testing: `*ServerNoRequestHeaderMutation*` with `--config=tsan` on RBE:

| | runs | failed |
|---|---|---|
| main (0dfc464) | 1000 | 2 |
| this change | 3000 | 0 |

Risk Level: low (test only)

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 14507a6)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit that referenced this pull request Nov 17, 2026
`ext_proc_http_integration_test` ran with the filter's default message
timeout of 200ms, and a 900ms timeout on the HTTP client, both in real
time. Under tsan a round trip through the fake side stream server can
take longer, the request is then failed with a 504 and never reaches the
upstream, and the test fails waiting for the upstream connection and
crashes on the stream it did not get.

Default both to 5s, as #48964 did for the gRPC fixture. The tests that
rely on the message timeout set it to 200ms: the two timeout tests, and
the two with a cluster that does not exist, where nothing responds.

Seen in CI on #49207 (tsan, `ServerNoRequestHeaderMutation`: `Timed out
waiting for new connection`, then a segmentation fault).

Testing: `*ServerNoRequestHeaderMutation*` with `--config=tsan` on RBE:

| | runs | failed |
|---|---|---|
| main (0dfc464) | 1000 | 2 |
| this change | 3000 | 0 |

Risk Level: low (test only)

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 17, 2026
…49215)

`ext_proc_http_integration_test` ran with the filter's default message
timeout of 200ms, and a 900ms timeout on the HTTP client, both in real
time. Under tsan a round trip through the fake side stream server can
take longer, the request is then failed with a 504 and never reaches the
upstream, and the test fails waiting for the upstream connection and
crashes on the stream it did not get.

Default both to 5s, as envoyproxy#48964 did for the gRPC fixture. The tests that
rely on the message timeout set it to 200ms: the two timeout tests, and
the two with a cluster that does not exist, where nothing responds.

Seen in CI on envoyproxy#49207 (tsan, `ServerNoRequestHeaderMutation`: `Timed out
waiting for new connection`, then a segmentation fault).

Testing: `*ServerNoRequestHeaderMutation*` with `--config=tsan` on RBE:

| | runs | failed |
|---|---|---|
| main (0dfc464) | 1000 | 2 |
| this change | 3000 | 0 |

Risk Level: low (test only)

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 14507a6)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 17, 2026
…49215)

`ext_proc_http_integration_test` ran with the filter's default message
timeout of 200ms, and a 900ms timeout on the HTTP client, both in real
time. Under tsan a round trip through the fake side stream server can
take longer, the request is then failed with a 504 and never reaches the
upstream, and the test fails waiting for the upstream connection and
crashes on the stream it did not get.

Default both to 5s, as envoyproxy#48964 did for the gRPC fixture. The tests that
rely on the message timeout set it to 200ms: the two timeout tests, and
the two with a cluster that does not exist, where nothing responds.

Seen in CI on envoyproxy#49207 (tsan, `ServerNoRequestHeaderMutation`: `Timed out
waiting for new connection`, then a segmentation fault).

Testing: `*ServerNoRequestHeaderMutation*` with `--config=tsan` on RBE:

| | runs | failed |
|---|---|---|
| main (0dfc464) | 1000 | 2 |
| this change | 3000 | 0 |

Risk Level: low (test only)

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 14507a6)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 17, 2026
…49215)

`ext_proc_http_integration_test` ran with the filter's default message
timeout of 200ms, and a 900ms timeout on the HTTP client, both in real
time. Under tsan a round trip through the fake side stream server can
take longer, the request is then failed with a 504 and never reaches the
upstream, and the test fails waiting for the upstream connection and
crashes on the stream it did not get.

Default both to 5s, as envoyproxy#48964 did for the gRPC fixture. The tests that
rely on the message timeout set it to 200ms: the two timeout tests, and
the two with a cluster that does not exist, where nothing responds.

Seen in CI on envoyproxy#49207 (tsan, `ServerNoRequestHeaderMutation`: `Timed out
waiting for new connection`, then a segmentation fault).

Testing: `*ServerNoRequestHeaderMutation*` with `--config=tsan` on RBE:

| | runs | failed |
|---|---|---|
| main (0dfc464) | 1000 | 2 |
| this change | 3000 | 0 |

Risk Level: low (test only)

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 14507a6)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit that referenced this pull request Nov 17, 2026
`ext_proc_http_integration_test` ran with the filter's default message
timeout of 200ms, and a 900ms timeout on the HTTP client, both in real
time. Under tsan a round trip through the fake side stream server can
take longer, the request is then failed with a 504 and never reaches the
upstream, and the test fails waiting for the upstream connection and
crashes on the stream it did not get.

Default both to 5s, as #48964 did for the gRPC fixture. The tests that
rely on the message timeout set it to 200ms: the two timeout tests, and
the two with a cluster that does not exist, where nothing responds.

Seen in CI on #49207 (tsan, `ServerNoRequestHeaderMutation`: `Timed out
waiting for new connection`, then a segmentation fault).

Testing: `*ServerNoRequestHeaderMutation*` with `--config=tsan` on RBE:

| | runs | failed |
|---|---|---|
| main (0dfc464) | 1000 | 2 |
| this change | 3000 | 0 |

Risk Level: low (test only)

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 14507a6)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 18, 2026
…49215)

`ext_proc_http_integration_test` ran with the filter's default message
timeout of 200ms, and a 900ms timeout on the HTTP client, both in real
time. Under tsan a round trip through the fake side stream server can
take longer, the request is then failed with a 504 and never reaches the
upstream, and the test fails waiting for the upstream connection and
crashes on the stream it did not get.

Default both to 5s, as envoyproxy#48964 did for the gRPC fixture. The tests that
rely on the message timeout set it to 200ms: the two timeout tests, and
the two with a cluster that does not exist, where nothing responds.

Seen in CI on envoyproxy#49207 (tsan, `ServerNoRequestHeaderMutation`: `Timed out
waiting for new connection`, then a segmentation fault).

Testing: `*ServerNoRequestHeaderMutation*` with `--config=tsan` on RBE:

| | runs | failed |
|---|---|---|
| main (0dfc464) | 1000 | 2 |
| this change | 3000 | 0 |

Risk Level: low (test only)

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 14507a6)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 25, 2026
envoyproxy#48964)

The fixture never set message_timeout, so every test ran at the filter
default of 200ms. Under tsan a round trip through the fake ext_proc
server can exceed that: the filter times out and answers 504, so
ResponseFromExtProcServerTooLarge saw 504 where it expected the 500 from
the oversized response, and later tests timed out waiting for an
upstream connection the request never made (run 41653256385, shard 7).

Default to 5s where a test has not set one. The timeout tests already
set 200ms explicitly; the two that relied on the implicit 200ms to check
that no timer is armed (observability mode, FULL_DUPLEX_STREAMED mode
override) now set it too.

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 751b6fe)
phlax added a commit to phlax/envoy that referenced this pull request Nov 25, 2026
envoyproxy#48964)

The fixture never set message_timeout, so every test ran at the filter
default of 200ms. Under tsan a round trip through the fake ext_proc
server can exceed that: the filter times out and answers 504, so
ResponseFromExtProcServerTooLarge saw 504 where it expected the 500 from
the oversized response, and later tests timed out waiting for an
upstream connection the request never made (run 41653256385, shard 7).

Default to 5s where a test has not set one. The timeout tests already
set 200ms explicitly; the two that relied on the implicit 200ms to check
that no timer is armed (observability mode, FULL_DUPLEX_STREAMED mode
override) now set it too.

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 751b6fe)
phlax added a commit to phlax/envoy that referenced this pull request Nov 25, 2026
envoyproxy#48964)

The fixture never set message_timeout, so every test ran at the filter
default of 200ms. Under tsan a round trip through the fake ext_proc
server can exceed that: the filter times out and answers 504, so
ResponseFromExtProcServerTooLarge saw 504 where it expected the 500 from
the oversized response, and later tests timed out waiting for an
upstream connection the request never made (run 41653256385, shard 7).

Default to 5s where a test has not set one. The timeout tests already
set 200ms explicitly; the two that relied on the implicit 200ms to check
that no timer is armed (observability mode, FULL_DUPLEX_STREAMED mode
override) now set it too.

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 751b6fe)
phlax added a commit to phlax/envoy that referenced this pull request Nov 25, 2026
…age timeout

envoyproxy#48964 gave the ext_proc integration fixture a 5s default message timeout,
as the filter default of 200ms is shorter than a round trip through the
fake ext_proc server can take under the sanitizers.

The default is set in `initializeConfig()`, which the tests with two
ext_proc filters do not go through for their filter configs: they pass
each one to `addDownstreamExtProcFilter()`, so both filters kept the 200ms
default.

Apply the same default there. This is the fixture change that landed on
main as part of envoyproxy#49286, without the rest of that change.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 25, 2026
…age timeout

envoyproxy#48964 gave the ext_proc integration fixture a 5s default message timeout,
as the filter default of 200ms is shorter than a round trip through the
fake ext_proc server can take under the sanitizers.

The default is set in `initializeConfig()`, which the tests with two
ext_proc filters do not go through for their filter configs: they pass
each one to `addDownstreamExtProcFilter()`, so both filters kept the 200ms
default.

Apply the same default there. This is the fixture change that landed on
main as part of envoyproxy#49286, without the rest of that change.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 25, 2026
…age timeout

envoyproxy#48964 gave the ext_proc integration fixture a 5s default message timeout,
as the filter default of 200ms is shorter than a round trip through the
fake ext_proc server can take under the sanitizers.

The default is set in `initializeConfig()`, which the tests with two
ext_proc filters do not go through for their filter configs: they pass
each one to `addDownstreamExtProcFilter()`, so both filters kept the 200ms
default.

Apply the same default there. This is the fixture change that landed on
main as part of envoyproxy#49286, without the rest of that change.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 25, 2026
…age timeout

envoyproxy#48964 gave the ext_proc integration fixture a 5s default message timeout,
as the filter default of 200ms is shorter than a round trip through the
fake ext_proc server can take under the sanitizers.

The default is set in `initializeConfig()`, which the tests with two
ext_proc filters do not go through for their filter configs: they pass
each one to `addDownstreamExtProcFilter()`, so both filters kept the 200ms
default.

Apply the same default there. This is the fixture change that landed on
main as part of envoyproxy#49286, without the rest of that change.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 25, 2026
…age timeout

envoyproxy#48964 gave the ext_proc integration fixture a 5s default message timeout,
as the filter default of 200ms is shorter than a round trip through the
fake ext_proc server can take under the sanitizers.

The default is set in `initializeConfig()`, which the tests with two
ext_proc filters do not go through for their filter configs: they pass
each one to `addDownstreamExtProcFilter()`, so both filters kept the 200ms
default.

Apply the same default there. This is the fixture change that landed on
main as part of envoyproxy#49286, without the rest of that change.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 25, 2026
…age timeout

envoyproxy#48964 gave the ext_proc integration fixture a 5s default message timeout,
as the filter default of 200ms is shorter than a round trip through the
fake ext_proc server can take under the sanitizers.

The default is set in `initializeConfig()`, which the tests with two
ext_proc filters do not go through for their filter configs: they pass
each one to `addDownstreamExtProcFilter()`, so both filters kept the 200ms
default.

Apply the same default there. This is the fixture change that landed on
main as part of envoyproxy#49286, without the rest of that change.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 25, 2026
…age timeout

envoyproxy#48964 gave the ext_proc integration fixture a 5s default message timeout,
as the filter default of 200ms is shorter than a round trip through the
fake ext_proc server can take under the sanitizers.

The default is set in `initializeConfig()`, which the tests with two
ext_proc filters do not go through for their filter configs: they pass
each one to `addDownstreamExtProcFilter()`, so both filters kept the 200ms
default.

Apply the same default there. This is the fixture change that landed on
main as part of envoyproxy#49286, without the rest of that change.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 25, 2026
…age timeout

envoyproxy#48964 gave the ext_proc integration fixture a 5s default message timeout,
as the filter default of 200ms is shorter than a round trip through the
fake ext_proc server can take under the sanitizers.

The default is set in `initializeConfig()`, which the tests with two
ext_proc filters do not go through for their filter configs: they pass
each one to `addDownstreamExtProcFilter()`, so both filters kept the 200ms
default.

Apply the same default there. This is the fixture change that landed on
main as part of envoyproxy#49286, without the rest of that change.

Signed-off-by: Ryan Northey <[email protected]>
@phlax phlax mentioned this pull request Nov 25, 2026
phlax added a commit that referenced this pull request Nov 25, 2026
#48964)

The fixture never set message_timeout, so every test ran at the filter
default of 200ms. Under tsan a round trip through the fake ext_proc
server can exceed that: the filter times out and answers 504, so
ResponseFromExtProcServerTooLarge saw 504 where it expected the 500 from
the oversized response, and later tests timed out waiting for an
upstream connection the request never made (run 41653256385, shard 7).

Default to 5s where a test has not set one. The timeout tests already
set 200ms explicitly; the two that relied on the implicit 200ms to check
that no timer is armed (observability mode, FULL_DUPLEX_STREAMED mode
override) now set it too.

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 751b6fe)
phlax added a commit that referenced this pull request Nov 25, 2026
…age timeout

#48964 gave the ext_proc integration fixture a 5s default message timeout,
as the filter default of 200ms is shorter than a round trip through the
fake ext_proc server can take under the sanitizers.

The default is set in `initializeConfig()`, which the tests with two
ext_proc filters do not go through for their filter configs: they pass
each one to `addDownstreamExtProcFilter()`, so both filters kept the 200ms
default.

Apply the same default there. This is the fixture change that landed on
main as part of #49286, without the rest of that change.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit that referenced this pull request Nov 25, 2026
#48964)

The fixture never set message_timeout, so every test ran at the filter
default of 200ms. Under tsan a round trip through the fake ext_proc
server can exceed that: the filter times out and answers 504, so
ResponseFromExtProcServerTooLarge saw 504 where it expected the 500 from
the oversized response, and later tests timed out waiting for an
upstream connection the request never made (run 41653256385, shard 7).

Default to 5s where a test has not set one. The timeout tests already
set 200ms explicitly; the two that relied on the implicit 200ms to check
that no timer is armed (observability mode, FULL_DUPLEX_STREAMED mode
override) now set it too.

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 751b6fe)
phlax added a commit that referenced this pull request Nov 25, 2026
…age timeout

#48964 gave the ext_proc integration fixture a 5s default message timeout,
as the filter default of 200ms is shorter than a round trip through the
fake ext_proc server can take under the sanitizers.

The default is set in `initializeConfig()`, which the tests with two
ext_proc filters do not go through for their filter configs: they pass
each one to `addDownstreamExtProcFilter()`, so both filters kept the 200ms
default.

Apply the same default there. This is the fixture change that landed on
main as part of #49286, without the rest of that change.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit that referenced this pull request Nov 25, 2026
#48964)

The fixture never set message_timeout, so every test ran at the filter
default of 200ms. Under tsan a round trip through the fake ext_proc
server can exceed that: the filter times out and answers 504, so
ResponseFromExtProcServerTooLarge saw 504 where it expected the 500 from
the oversized response, and later tests timed out waiting for an
upstream connection the request never made (run 41653256385, shard 7).

Default to 5s where a test has not set one. The timeout tests already
set 200ms explicitly; the two that relied on the implicit 200ms to check
that no timer is armed (observability mode, FULL_DUPLEX_STREAMED mode
override) now set it too.

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 751b6fe)
phlax added a commit that referenced this pull request Nov 25, 2026
…age timeout

#48964 gave the ext_proc integration fixture a 5s default message timeout,
as the filter default of 200ms is shorter than a round trip through the
fake ext_proc server can take under the sanitizers.

The default is set in `initializeConfig()`, which the tests with two
ext_proc filters do not go through for their filter configs: they pass
each one to `addDownstreamExtProcFilter()`, so both filters kept the 200ms
default.

Apply the same default there. This is the fixture change that landed on
main as part of #49286, without the rest of that change.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit that referenced this pull request Nov 25, 2026
…age timeout

#48964 gave the ext_proc integration fixture a 5s default message timeout,
as the filter default of 200ms is shorter than a round trip through the
fake ext_proc server can take under the sanitizers.

The default is set in `initializeConfig()`, which the tests with two
ext_proc filters do not go through for their filter configs: they pass
each one to `addDownstreamExtProcFilter()`, so both filters kept the 200ms
default.

Apply the same default there. This is the fixture change that landed on
main as part of #49286, without the rest of that change.

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.

3 participants