Repository navigation
test: Split listener_manager_impl_test by suite, narrow the restart flag - #48911
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The listener-manager test deduplication and suite-sharding changes have no active review issues.
No open issues 🎉
What changed in this PR
This PR reduces listener-manager test duplication and separates suites into independently sharded targets to address MemorySanitizer timeouts.
Changes:
- Run most real-filter tests only with the restart flag enabled, while retaining both values for worker-routing and initialization-sensitive tests.
- Compile the test source once into a shared test library.
- Split execution into core, real-filter, and in-place-update targets with 6, 7, and 4 shards respectively.
| File | Description |
|---|---|
test/common/listener_manager/listener_manager_impl_test.cc |
Narrows flag parameterization and adds a dedicated worker-routing suite. |
test/common/listener_manager/BUILD |
Shares test compilation and defines three suite-filtered, independently sharded targets. |
Review effort: Balanced
phlax
marked this pull request as ready for review
November 1, 2026 22:19
`listener_manager_impl_test` has been timing out under msan: every suite became parameterized on `envoy.restart_features.defer_worker_routing_init`, doubling it to ~756 test instances, and even a shard of 16 can sit at the 300s limit. - Run the real filter tests with the flag at its default: they build filter chains and listener config, which it does not affect. The tests creating UDP listeners, whose worker routing it changes, move to `ListenerManagerImplWithRealFiltersUdpTest` and keep both values. - Compile the tests once and run them as three targets by suite (core, real filters, in-place updates), so the slow in-place tests and the large real filter suite each get their own shards and time budget. That is ~538 instances (-29%) over 6/7/4 shards, ~25-34 per shard. Signed-off-by: Ryan Northey <[email protected]>
phlax
force-pushed
the
listener-manager-test-split
branch
from
November 1, 2026 23:36
af3eff9 to
16cfd16
Compare
yanavlasov
approved these changes
Nov 2, 2026
This was referenced Nov 12, 2026
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.
listener_manager_impl_testhas been timing out under msan: every suite became parameterized onenvoy.restart_features.defer_worker_routing_init, doubling it to ~756 test instances, and even a shard of 16 can sit at the 300s limit.ListenerManagerImplWithRealFiltersUdpTestand keep both values.That is ~538 instances (-29%) over 6/7/4 shards, ~25-34 per shard.