Skip to content

test: Unsize quic_protocol_integration_test and shrink its many-large… - #48962

Merged
RyanTheOptimist merged 1 commit into
envoyproxy:mainfrom
phlax:test-large-headers-timeout
Nov 4, 2026
Merged

RyanTheOptimist merged 1 commit into
envoyproxy:mainfrom
phlax:test-large-headers-timeout

Conversation

@phlax

@phlax phlax commented Nov 3, 2026

Copy link
Copy Markdown
Member

…-headers cases

ManyLargeResponseHeadersAccepted with an HTTP/3 upstream aborted on its 30s waitForEndStream in two msan shards (run 41550197758). Per EngFlow test results, the HTTP/3 variants of the two 70 x 100kB header tests take 11-21s under msan (2.4s unsanitized; 3.5s for the HTTP/1 and HTTP/2 variants under msan), with the request-side twin taking 25-34s in the aborted shards. The tests check that many headers totalling far above the 60kB default and close to the configured limit are accepted; the maximum size and count are covered by the VeryLarge* and ManyRequestHeaders* tests. Send 70 x 20kB against a 1600kB limit, the same ratio to the limit at a fifth of the bytes.

The target was also size = "enormous". Per-shard test time with 16 shards is 80-95s unsanitized and under asan, 220-250s under tsan and 360-480s (~515s wall) under msan: it needs more shards and an msan timeout scale, which tsan and coverage already have, not an hour. Drop the size, use 24 shards, and scale msan test timeouts as tsan does.

…-headers cases

ManyLargeResponseHeadersAccepted with an HTTP/3 upstream aborted on its
30s waitForEndStream in two msan shards (run 41550197758). Per EngFlow
test results, the HTTP/3 variants of the two 70 x 100kB header tests
take 11-21s under msan (2.4s unsanitized; 3.5s for the HTTP/1 and
HTTP/2 variants under msan), with the request-side twin taking 25-34s
in the aborted shards. The tests check that many headers totalling far
above the 60kB default and close to the configured limit are accepted;
the maximum size and count are covered by the VeryLarge* and
ManyRequestHeaders* tests. Send 70 x 20kB against a 1600kB limit, the
same ratio to the limit at a fifth of the bytes.

The target was also `size = "enormous"`. Per-shard test time with 16
shards is 80-95s unsanitized and under asan, 220-250s under tsan and
360-480s (~515s wall) under msan: it needs more shards and an msan
timeout scale, which tsan and coverage already have, not an hour. Drop
the size, use 24 shards, and scale msan test timeouts as tsan does.

Signed-off-by: Ryan Northey <[email protected]>

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 are recorded for the changes aimed at reducing sanitizer timeout risk.

No open issues 🎉

What changed in this PR

Reduces sanitizer timeout risk in Envoy’s QUIC protocol integration tests by shrinking large-header payloads and adjusting test execution settings.

Changes:

  • Reduces both many-large-header cases from 70 × 100 kB to 70 × 20 kB, with a proportionally smaller configured limit.
  • Removes the QUIC test target’s enormous size and increases its shard count from 16 to 24.
  • Adds MSAN per-size test timeouts matching the TSAN configuration.
File Description
test/​integration/​protocol_integration_test.cc Shrinks request and response header cases and explains their coverage intent.
test/​integration/​BUILD Removes the explicit test size and increases QUIC test sharding.
.bazelrc Scales test timeouts for MSAN overhead.

Review effort: Balanced

phlax added a commit to phlax/envoy that referenced this pull request Nov 3, 2026
Nothing needs an hour. From the postsubmit runs on eb392b7, with the
existing 16 shards, a protocol_integration_test shard's tests take ~30s
in release, ~60s under asan and 145-310s under tsan and msan, well
inside the large budget (900s, 1500s under tsan). Make it large like
the other integration tests.

wasm_filter_integration_test has ~2 tests per shard at 16 shards and
the slowest shard is 9s under tsan and ~1s elsewhere. Drop the size
(medium, 300s) and go to 8 shards, which keeps a shard around a minute
under tsan with every wasm runtime built.

quic_protocol_integration_test is handled in envoyproxy#48962.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 3, 2026
Nothing needs an hour, and a size is mostly a way of not asking why a
test takes so long. From the postsubmit runs on eb392b7:

protocol_integration_test is the whole H1/H2 x v4/v6 x upstream codec
matrix, ~1650 tests of a fraction of a second each. At 16 shards a
shard's tests took 23-36s in release, 50-65s under asan and 145-310s
under tsan and msan. Drop the size and go to 32 shards, which puts the
slowest shard around 150s under the sanitizers, inside the default
300s (600s under tsan) with room to spare.

wasm_filter_integration_test had ~2 tests per shard at 16 shards, the
slowest shard 9s under tsan and ~1s elsewhere. Drop the size and go to
8 shards, which keeps a shard around a minute under tsan with every
wasm runtime built.

quic_protocol_integration_test is handled in envoyproxy#48962.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 3, 2026
Nothing needs an hour, and a size is mostly a way of not asking why a
test takes so long. From recent CI invocations:

protocol_integration_test is the whole H1/H2 x v4/v6 x upstream codec
matrix, ~1650 tests of a fraction of a second each. At 16 shards a
shard's tests took 23-36s in release, 50-65s under asan, 23-41s under
coverage and 145-310s under tsan and msan. Drop the size and go to 32
shards, which puts the slowest shard around 150s under the sanitizers,
inside the default 300s (600s under tsan, 750s under coverage) with
room to spare. envoyproxy#48962 adds the same timeout scaling for msan as tsan
has, which widens that further.

wasm_filter_integration_test had ~2 tests per shard at 16 shards, the
slowest shard 9s under tsan and ~1s elsewhere. Drop the size and go to
8 shards, which keeps a shard around a minute under tsan with every
wasm runtime built.

quic_protocol_integration_test is handled in envoyproxy#48962.

Signed-off-by: Ryan Northey <[email protected]>

@RyanTheOptimist RyanTheOptimist 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.

Thanks!

@RyanTheOptimist
RyanTheOptimist merged commit 356ec30 into envoyproxy:main Nov 4, 2026
31 checks passed
phlax added a commit to phlax/envoy that referenced this pull request Nov 11, 2026
envoyproxy#48962)

…-headers cases

ManyLargeResponseHeadersAccepted with an HTTP/3 upstream aborted on its
30s waitForEndStream in two msan shards (run 41550197758). Per EngFlow
test results, the HTTP/3 variants of the two 70 x 100kB header tests
take 11-21s under msan (2.4s unsanitized; 3.5s for the HTTP/1 and HTTP/2
variants under msan), with the request-side twin taking 25-34s in the
aborted shards. The tests check that many headers totalling far above
the 60kB default and close to the configured limit are accepted; the
maximum size and count are covered by the VeryLarge* and
ManyRequestHeaders* tests. Send 70 x 20kB against a 1600kB limit, the
same ratio to the limit at a fifth of the bytes.

The target was also `size = "enormous"`. Per-shard test time with 16
shards is 80-95s unsanitized and under asan, 220-250s under tsan and
360-480s (~515s wall) under msan: it needs more shards and an msan
timeout scale, which tsan and coverage already have, not an hour. Drop
the size, use 24 shards, and scale msan test timeouts as tsan does.

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

…-headers cases

ManyLargeResponseHeadersAccepted with an HTTP/3 upstream aborted on its
30s waitForEndStream in two msan shards (run 41550197758). Per EngFlow
test results, the HTTP/3 variants of the two 70 x 100kB header tests
take 11-21s under msan (2.4s unsanitized; 3.5s for the HTTP/1 and HTTP/2
variants under msan), with the request-side twin taking 25-34s in the
aborted shards. The tests check that many headers totalling far above
the 60kB default and close to the configured limit are accepted; the
maximum size and count are covered by the VeryLarge* and
ManyRequestHeaders* tests. Send 70 x 20kB against a 1600kB limit, the
same ratio to the limit at a fifth of the bytes.

The target was also `size = "enormous"`. Per-shard test time with 16
shards is 80-95s unsanitized and under asan, 220-250s under tsan and
360-480s (~515s wall) under msan: it needs more shards and an msan
timeout scale, which tsan and coverage already have, not an hour. Drop
the size, use 24 shards, and scale msan test timeouts as tsan does.

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

…-headers cases

ManyLargeResponseHeadersAccepted with an HTTP/3 upstream aborted on its
30s waitForEndStream in two msan shards (run 41550197758). Per EngFlow
test results, the HTTP/3 variants of the two 70 x 100kB header tests
take 11-21s under msan (2.4s unsanitized; 3.5s for the HTTP/1 and HTTP/2
variants under msan), with the request-side twin taking 25-34s in the
aborted shards. The tests check that many headers totalling far above
the 60kB default and close to the configured limit are accepted; the
maximum size and count are covered by the VeryLarge* and
ManyRequestHeaders* tests. Send 70 x 20kB against a 1600kB limit, the
same ratio to the limit at a fifth of the bytes.

The target was also `size = "enormous"`. Per-shard test time with 16
shards is 80-95s unsanitized and under asan, 220-250s under tsan and
360-480s (~515s wall) under msan: it needs more shards and an msan
timeout scale, which tsan and coverage already have, not an hour. Drop
the size, use 24 shards, and scale msan test timeouts as tsan does.

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

…-headers cases

ManyLargeResponseHeadersAccepted with an HTTP/3 upstream aborted on its
30s waitForEndStream in two msan shards (run 41550197758). Per EngFlow
test results, the HTTP/3 variants of the two 70 x 100kB header tests
take 11-21s under msan (2.4s unsanitized; 3.5s for the HTTP/1 and HTTP/2
variants under msan), with the request-side twin taking 25-34s in the
aborted shards. The tests check that many headers totalling far above
the 60kB default and close to the configured limit are accepted; the
maximum size and count are covered by the VeryLarge* and
ManyRequestHeaders* tests. Send 70 x 20kB against a 1600kB limit, the
same ratio to the limit at a fifth of the bytes.

The target was also `size = "enormous"`. Per-shard test time with 16
shards is 80-95s unsanitized and under asan, 220-250s under tsan and
360-480s (~515s wall) under msan: it needs more shards and an msan
timeout scale, which tsan and coverage already have, not an hour. Drop
the size, use 24 shards, and scale msan test timeouts as tsan does.

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

…-headers cases

ManyLargeResponseHeadersAccepted with an HTTP/3 upstream aborted on its
30s waitForEndStream in two msan shards (run 41550197758). Per EngFlow
test results, the HTTP/3 variants of the two 70 x 100kB header tests
take 11-21s under msan (2.4s unsanitized; 3.5s for the HTTP/1 and HTTP/2
variants under msan), with the request-side twin taking 25-34s in the
aborted shards. The tests check that many headers totalling far above
the 60kB default and close to the configured limit are accepted; the
maximum size and count are covered by the VeryLarge* and
ManyRequestHeaders* tests. Send 70 x 20kB against a 1600kB limit, the
same ratio to the limit at a fifth of the bytes.

The target was also `size = "enormous"`. Per-shard test time with 16
shards is 80-95s unsanitized and under asan, 220-250s under tsan and
360-480s (~515s wall) under msan: it needs more shards and an msan
timeout scale, which tsan and coverage already have, not an hour. Drop
the size, use 24 shards, and scale msan test timeouts as tsan does.

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