Repository navigation
test: Unsize quic_protocol_integration_test and shrink its many-large… - #48962
Merged
Merged
Conversation
…-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]>
Contributor
There was a problem hiding this comment.
🟢 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
enormoussize 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]>
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]>
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.
…-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.