Skip to content

test/on_demand: Warm the VHDS-with-body listener instead of timing out - #49070

Merged
phlax merged 1 commit into
envoyproxy:mainfrom
phlax:on-demand-vhds-body-test-warming
Nov 11, 2026
Merged

phlax merged 1 commit into
envoyproxy:mainfrom
phlax:on-demand-vhds-body-test-warming

Conversation

@phlax

@phlax phlax commented Nov 7, 2026

Copy link
Copy Markdown
Member

OnDemandVhdsWithBodyIntegrationTest::initialize() waited for the listener before serving the RDS/VHDS streams it warms on, so every case only proceeded once the 15s initial_fetch_timeout had given up on the route configuration. The 20 non-skipped cases therefore took ~15s each, putting a 300s test shard on the critical path of any CI job that invalidates test/integration.

Follow the VhdsIntegrationTest sequence instead: defer listener finalization, answer the initial RDS and VHDS requests, then wait for the listener to warm and the workers to start.

@phlax
phlax requested a balanced review from Copilot and removed request for kyessenov and yanavlasov November 7, 2026 13:46

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 remain for the VHDS-with-body test initialization change.

No open issues 🎉

What changed in this PR

Updates the on-demand VHDS-with-body integration test setup to warm the listener through xDS responses rather than waiting for the initial-fetch timeout, reducing avoidable test delays.

Changes:

  • Defers listener finalization until the initial RDS and VHDS requests are served.
  • Sends an initial VHDS response and verifies its acknowledgment.
  • Waits for listener readiness and worker startup before registering test ports.
File Description
test/​extensions/​filters/​http/​on_demand/​on_demand_integration_test.cc Reorders VHDS-with-body initialization to complete listener warming without timing out.

Review effort: Balanced

@phlax
phlax force-pushed the on-demand-vhds-body-test-warming branch from 260ca0f to 0175e96 Compare November 7, 2026 14:29
`OnDemandVhdsWithBodyIntegrationTest::initialize()` waited for the
listener before serving the RDS/VHDS streams it warms on, so every case
only proceeded once the 15s `initial_fetch_timeout` had given up on the
route configuration. The 20 non-skipped cases therefore took ~15s each,
putting a 300s test shard on the critical path of any CI job that
invalidates `test/integration`.

Follow the `VhdsIntegrationTest` sequence instead: defer listener
finalization, answer the initial RDS and VHDS requests, then wait for
the listener to warm and the workers to start.

Signed-off-by: Ryan Northey <[email protected]>
@phlax
phlax force-pushed the on-demand-vhds-body-test-warming branch from 0175e96 to cfd01e1 Compare November 11, 2026 23:33
@phlax

phlax commented Nov 11, 2026

Copy link
Copy Markdown
Member Author

@antoniovleonti @tyxia ptal - rebased to main.

@phlax
phlax enabled auto-merge (squash) November 11, 2026 23:37
@phlax
phlax merged commit d1d97c4 into envoyproxy:main Nov 11, 2026
25 checks passed
phlax added a commit to phlax/envoy that referenced this pull request Nov 12, 2026
envoyproxy#49070)

`OnDemandVhdsWithBodyIntegrationTest::initialize()` waited for the
listener before serving the RDS/VHDS streams it warms on, so every case
only proceeded once the 15s `initial_fetch_timeout` had given up on the
route configuration. The 20 non-skipped cases therefore took ~15s each,
putting a 300s test shard on the critical path of any CI job that
invalidates `test/integration`.

Follow the `VhdsIntegrationTest` sequence instead: defer listener
finalization, answer the initial RDS and VHDS requests, then wait for
the listener to warm and the workers to start.

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

`OnDemandVhdsWithBodyIntegrationTest::initialize()` waited for the
listener before serving the RDS/VHDS streams it warms on, so every case
only proceeded once the 15s `initial_fetch_timeout` had given up on the
route configuration. The 20 non-skipped cases therefore took ~15s each,
putting a 300s test shard on the critical path of any CI job that
invalidates `test/integration`.

Follow the `VhdsIntegrationTest` sequence instead: defer listener
finalization, answer the initial RDS and VHDS requests, then wait for
the listener to warm and the workers to start.

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

`OnDemandVhdsWithBodyIntegrationTest::initialize()` waited for the
listener before serving the RDS/VHDS streams it warms on, so every case
only proceeded once the 15s `initial_fetch_timeout` had given up on the
route configuration. The 20 non-skipped cases therefore took ~15s each,
putting a 300s test shard on the critical path of any CI job that
invalidates `test/integration`.

Follow the `VhdsIntegrationTest` sequence instead: defer listener
finalization, answer the initial RDS and VHDS requests, then wait for
the listener to warm and the workers to start.

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

`OnDemandVhdsWithBodyIntegrationTest::initialize()` waited for the
listener before serving the RDS/VHDS streams it warms on, so every case
only proceeded once the 15s `initial_fetch_timeout` had given up on the
route configuration. The 20 non-skipped cases therefore took ~15s each,
putting a 300s test shard on the critical path of any CI job that
invalidates `test/integration`.

Follow the `VhdsIntegrationTest` sequence instead: defer listener
finalization, answer the initial RDS and VHDS requests, then wait for
the listener to warm and the workers to start.

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

`OnDemandVhdsWithBodyIntegrationTest::initialize()` waited for the
listener before serving the RDS/VHDS streams it warms on, so every case
only proceeded once the 15s `initial_fetch_timeout` had given up on the
route configuration. The 20 non-skipped cases therefore took ~15s each,
putting a 300s test shard on the critical path of any CI job that
invalidates `test/integration`.

Follow the `VhdsIntegrationTest` sequence instead: defer listener
finalization, answer the initial RDS and VHDS requests, then wait for
the listener to warm and the workers to start.

Backport note: this branch waits with `waitForGaugeEq()`.

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

`OnDemandVhdsWithBodyIntegrationTest::initialize()` waited for the
listener before serving the RDS/VHDS streams it warms on, so every case
only proceeded once the 15s `initial_fetch_timeout` had given up on the
route configuration. The 20 non-skipped cases therefore took ~15s each,
putting a 300s test shard on the critical path of any CI job that
invalidates `test/integration`.

Follow the `VhdsIntegrationTest` sequence instead: defer listener
finalization, answer the initial RDS and VHDS requests, then wait for
the listener to warm and the workers to start.

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

`OnDemandVhdsWithBodyIntegrationTest::initialize()` waited for the
listener before serving the RDS/VHDS streams it warms on, so every case
only proceeded once the 15s `initial_fetch_timeout` had given up on the
route configuration. The 20 non-skipped cases therefore took ~15s each,
putting a 300s test shard on the critical path of any CI job that
invalidates `test/integration`.

Follow the `VhdsIntegrationTest` sequence instead: defer listener
finalization, answer the initial RDS and VHDS requests, then wait for
the listener to warm and the workers to start.

Backport note: this branch waits with `waitForGaugeEq()`.

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

`OnDemandVhdsWithBodyIntegrationTest::initialize()` waited for the
listener before serving the RDS/VHDS streams it warms on, so every case
only proceeded once the 15s `initial_fetch_timeout` had given up on the
route configuration. The 20 non-skipped cases therefore took ~15s each,
putting a 300s test shard on the critical path of any CI job that
invalidates `test/integration`.

Follow the `VhdsIntegrationTest` sequence instead: defer listener
finalization, answer the initial RDS and VHDS requests, then wait for
the listener to warm and the workers to start.

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

`OnDemandVhdsWithBodyIntegrationTest::initialize()` waited for the
listener before serving the RDS/VHDS streams it warms on, so every case
only proceeded once the 15s `initial_fetch_timeout` had given up on the
route configuration. The 20 non-skipped cases therefore took ~15s each,
putting a 300s test shard on the critical path of any CI job that
invalidates `test/integration`.

Follow the `VhdsIntegrationTest` sequence instead: defer listener
finalization, answer the initial RDS and VHDS requests, then wait for
the listener to warm and the workers to start.

Backport note: this branch waits with `waitForGaugeEq()`.

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

`OnDemandVhdsWithBodyIntegrationTest::initialize()` waited for the
listener before serving the RDS/VHDS streams it warms on, so every case
only proceeded once the 15s `initial_fetch_timeout` had given up on the
route configuration. The 20 non-skipped cases therefore took ~15s each,
putting a 300s test shard on the critical path of any CI job that
invalidates `test/integration`.

Follow the `VhdsIntegrationTest` sequence instead: defer listener
finalization, answer the initial RDS and VHDS requests, then wait for
the listener to warm and the workers to start.

Backport note: this branch waits with `waitForGaugeEq()`.

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

`OnDemandVhdsWithBodyIntegrationTest::initialize()` waited for the
listener before serving the RDS/VHDS streams it warms on, so every case
only proceeded once the 15s `initial_fetch_timeout` had given up on the
route configuration. The 20 non-skipped cases therefore took ~15s each,
putting a 300s test shard on the critical path of any CI job that
invalidates `test/integration`.

Follow the `VhdsIntegrationTest` sequence instead: defer listener
finalization, answer the initial RDS and VHDS requests, then wait for
the listener to warm and the workers to start.

Backport note: this branch waits with `waitForGaugeEq()`.

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

`OnDemandVhdsWithBodyIntegrationTest::initialize()` waited for the
listener before serving the RDS/VHDS streams it warms on, so every case
only proceeded once the 15s `initial_fetch_timeout` had given up on the
route configuration. The 20 non-skipped cases therefore took ~15s each,
putting a 300s test shard on the critical path of any CI job that
invalidates `test/integration`.

Follow the `VhdsIntegrationTest` sequence instead: defer listener
finalization, answer the initial RDS and VHDS requests, then wait for
the listener to warm and the workers to start.

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

`OnDemandVhdsWithBodyIntegrationTest::initialize()` waited for the
listener before serving the RDS/VHDS streams it warms on, so every case
only proceeded once the 15s `initial_fetch_timeout` had given up on the
route configuration. The 20 non-skipped cases therefore took ~15s each,
putting a 300s test shard on the critical path of any CI job that
invalidates `test/integration`.

Follow the `VhdsIntegrationTest` sequence instead: defer listener
finalization, answer the initial RDS and VHDS requests, then wait for
the listener to warm and the workers to start.

Backport note: this branch waits with `waitForGaugeEq()`.

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

`OnDemandVhdsWithBodyIntegrationTest::initialize()` waited for the
listener before serving the RDS/VHDS streams it warms on, so every case
only proceeded once the 15s `initial_fetch_timeout` had given up on the
route configuration. The 20 non-skipped cases therefore took ~15s each,
putting a 300s test shard on the critical path of any CI job that
invalidates `test/integration`.

Follow the `VhdsIntegrationTest` sequence instead: defer listener
finalization, answer the initial RDS and VHDS requests, then wait for
the listener to warm and the workers to start.

Backport note: this branch waits with `waitForGaugeEq()`.

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit d1d97c4)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit that referenced this pull request Nov 17, 2026
#49070)

`OnDemandVhdsWithBodyIntegrationTest::initialize()` waited for the
listener before serving the RDS/VHDS streams it warms on, so every case
only proceeded once the 15s `initial_fetch_timeout` had given up on the
route configuration. The 20 non-skipped cases therefore took ~15s each,
putting a 300s test shard on the critical path of any CI job that
invalidates `test/integration`.

Follow the `VhdsIntegrationTest` sequence instead: defer listener
finalization, answer the initial RDS and VHDS requests, then wait for
the listener to warm and the workers to start.

Backport note: this branch waits with `waitForGaugeEq()`.

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

`OnDemandVhdsWithBodyIntegrationTest::initialize()` waited for the
listener before serving the RDS/VHDS streams it warms on, so every case
only proceeded once the 15s `initial_fetch_timeout` had given up on the
route configuration. The 20 non-skipped cases therefore took ~15s each,
putting a 300s test shard on the critical path of any CI job that
invalidates `test/integration`.

Follow the `VhdsIntegrationTest` sequence instead: defer listener
finalization, answer the initial RDS and VHDS requests, then wait for
the listener to warm and the workers to start.

Backport note: this branch waits with `waitForGaugeEq()`.

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit d1d97c4)
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.

4 participants