Skip to content

test: Split listener_manager_impl_test by suite, narrow the restart flag - #48911

Merged
yanavlasov merged 1 commit into
envoyproxy:mainfrom
phlax:listener-manager-test-split
Nov 2, 2026
Merged

yanavlasov merged 1 commit into
envoyproxy:mainfrom
phlax:listener-manager-test-split

Conversation

@phlax

@phlax phlax commented Nov 1, 2026

Copy link
Copy Markdown
Member

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.

@phlax
phlax marked this pull request as draft November 1, 2026 22:04
@phlax
phlax requested a balanced review from Copilot November 1, 2026 22:05

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

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 phlax changed the title [WIP] test: Split listener_manager_impl_test by suite, narrow the restart flag test: Split listener_manager_impl_test by suite, narrow the restart flag Nov 1, 2026
@phlax
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
phlax force-pushed the listener-manager-test-split branch from af3eff9 to 16cfd16 Compare November 1, 2026 23:36
@yanavlasov
yanavlasov merged commit 1d65628 into envoyproxy:main Nov 2, 2026
27 checks passed
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