Skip to content

test/network_ecds: Wait for the workers before connecting - #49202

Merged
phlax merged 1 commit into
envoyproxy:mainfrom
phlax:test-network-ecds-workers-started
Nov 12, 2026
Merged

phlax merged 1 commit into
envoyproxy:mainfrom
phlax:test-network-ecds-workers-started

Conversation

@phlax

@phlax phlax commented Nov 12, 2026

Copy link
Copy Markdown
Member

#49099 added waitUntilListenersReady() before two tests connect, but that can return immediately here: the fixture clears the static listeners, and the server's pending listener count is only set once the server is ready, which in these tests is after the listener finishes warming. The client can still connect before the workers have the listener, and the test then times out waiting for network_extension_config_missing.

Also wait for listener_manager.workers_started, as the other tests in this file already do after waitUntilListenersReady().

Deflake runs of BasicFailWithoutDefault and ConfigUpdateDoesNotApplyToExistingConnection, 1000 runs each:

default tsan
main 4 failed 30 failed
this change 0 failed 0 failed

All of the failures were BasicFailWithoutDefault, timing out on listener.listener_stat.network_extension_config_missing.

Risk Level: test-only
Testing: deflake runs above
Docs Changes: n/a
Release Notes: n/a

envoyproxy#49099 added `waitUntilListenersReady()` before two tests connect, but
that can return immediately here: the fixture clears the static
listeners, and the server's pending listener count is only set once the
server is ready, which in these tests is after the listener finishes
warming. The client can still connect before the workers have the
listener.

Also wait for `listener_manager.workers_started`, as the other tests in
this file already do after `waitUntilListenersReady()`.

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

envoyproxy#49099 added `waitUntilListenersReady()` before two tests connect, but
that can return immediately here: the fixture clears the static
listeners, and the server's pending listener count is only set once the
server is ready, which in these tests is after the listener finishes
warming. The client can still connect before the workers have the
listener.

Also wait for `listener_manager.workers_started`, as the other tests in
this file already do after `waitUntilListenersReady()`.

Backport note: picked from the pull request ahead of its merge to main.

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

phlax commented Nov 12, 2026

Copy link
Copy Markdown
Member Author

/retest flakey infra

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 test-only change that waits for worker startup before opening client connections.

No open issues 🎉

What changed in this PR

This test-only change closes a startup race in two network ECDS integration tests by waiting for workers to start before opening client connections.

Changes:

  • Adds a listener_manager.workers_started gauge wait after waitUntilListenersReady() in BasicFailWithoutDefault and ConfigUpdateDoesNotApplyToExistingConnection.
  • Aligns both tests with the readiness checks already used elsewhere in the file.
File Description
test/​integration/​network_extension_discovery_integration_test.cc Waits for worker startup before connecting in two tests to prevent intermittent failures.

Review effort: Balanced

@phlax
phlax enabled auto-merge (squash) November 12, 2026 10:12
@phlax
phlax merged commit 8def710 into envoyproxy:main Nov 12, 2026
25 checks passed
jwendell pushed a commit that referenced this pull request Nov 12, 2026
#49099 added `waitUntilListenersReady()` before two tests connect, but
that can return immediately here: the fixture clears the static
listeners, and the server's pending listener count is only set once the
server is ready, which in these tests is after the listener finishes
warming. The client can still connect before the workers have the
listener.

Also wait for `listener_manager.workers_started`, as the other tests in
this file already do after `waitUntilListenersReady()`.

Backport note: picked from the pull request ahead of its merge to main.

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

`BasicFailWithoutDefault` connects as soon as the config failure has
completed warming, but the listener only starts listening once the
workers have added it. The client can connect before that, and the test
then times out waiting for `extension_config_missing`.

Wait for the listeners and for `listener_manager.workers_started`, as
the other tests in this file do in `sendDataVerifyResults()`, and as

envoyproxy#49202 did for the same test of network ECDS.

Backport note: picked from the pull request ahead of its merge to main.

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

`BasicFailWithoutDefault` connects as soon as the config failure has
completed warming, but the listener only starts listening once the
workers have added it. The client can connect before that, and the test
then times out waiting for `extension_config_missing`.

Wait for the listeners and for `listener_manager.workers_started`, as
the other tests in this file do in `sendDataVerifyResults()`, and as

envoyproxy#49202 did for the same test of network ECDS.

Backport note: picked from the pull request ahead of its merge to main.

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

`BasicFailWithoutDefault` connects as soon as the config failure has
completed warming, but the listener only starts listening once the
workers have added it. The client can connect before that, and the test
then times out waiting for `extension_config_missing`.

Wait for the listeners and for `listener_manager.workers_started`, as
the other tests in this file do in `sendDataVerifyResults()`, and as

envoyproxy#49202 did for the same test of network ECDS.

Backport note: picked from the pull request ahead of its merge to main.

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

`BasicFailWithoutDefault` connects as soon as the config failure has
completed warming, but the listener only starts listening once the
workers have added it. The client can connect before that, and the test
then times out waiting for `extension_config_missing`.

Wait for the listeners and for `listener_manager.workers_started`, as
the other tests in this file do in `sendDataVerifyResults()`, and as

envoyproxy#49202 did for the same test of network ECDS.

Backport note: picked from the pull request ahead of its merge to main.

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

`BasicFailWithoutDefault` connects as soon as the config failure has
completed warming, but the listener only starts listening once the
workers have added it. The client can connect before that, and the test
then times out waiting for `extension_config_missing`.

Wait for the listeners and for `listener_manager.workers_started`, as
the other tests in this file do in `sendDataVerifyResults()`, and as

envoyproxy#49202 did for the same test of network ECDS.

Backport note: picked from the pull request ahead of its merge to main.

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

`BasicFailWithoutDefault` connects as soon as the config failure has
completed warming, but the listener only starts listening once the
workers have added it. The client can connect before that, and the test
then times out waiting for `extension_config_missing`.

Wait for the listeners and for `listener_manager.workers_started`, as
the other tests in this file do in `sendDataVerifyResults()`, and as

envoyproxy#49202 did for the same test of network ECDS.

Backport note: picked from the pull request ahead of its merge to main.
This branch waits with `waitForCounterGe()` and `waitForGaugeGe()`.

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

`BasicFailWithoutDefault` connects as soon as the config failure has
completed warming, but the listener only starts listening once the
workers have added it. The client can connect before that, and the test
then times out waiting for `extension_config_missing`.

Wait for the listeners and for `listener_manager.workers_started`, as
the other tests in this file do in `sendDataVerifyResults()`, and as

envoyproxy#49202 did for the same test of network ECDS.

Backport note: picked from the pull request ahead of its merge to main.
This branch waits with `waitForCounterGe()` and `waitForGaugeGe()`.

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

`BasicFailWithoutDefault` connects as soon as the config failure has
completed warming, but the listener only starts listening once the
workers have added it. The client can connect before that, and the test
then times out waiting for `extension_config_missing`.

Wait for the listeners and for `listener_manager.workers_started`, as
the other tests in this file do in `sendDataVerifyResults()`, and as

envoyproxy#49202 did for the same test of network ECDS.

Backport note: picked from the pull request ahead of its merge to main.

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

`BasicFailWithoutDefault` connects as soon as the config failure has
completed warming, but the listener only starts listening once the
workers have added it. The client can connect before that, and the test
then times out waiting for `extension_config_missing`.

Wait for the listeners and for `listener_manager.workers_started`, as
the other tests in this file do in `sendDataVerifyResults()`, and as

envoyproxy#49202 did for the same test of network ECDS.

Backport note: picked from the pull request ahead of its merge to main.
This branch waits with `waitForCounterGe()` and `waitForGaugeGe()`.

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

`BasicFailWithoutDefault` connects as soon as the config failure has
completed warming, but the listener only starts listening once the
workers have added it. The client can connect before that, and the test
then times out waiting for `extension_config_missing`.

Wait for the listeners and for `listener_manager.workers_started`, as
the other tests in this file do in `sendDataVerifyResults()`, and as

envoyproxy#49202 did for the same test of network ECDS.

Backport note: picked from the pull request ahead of its merge to main.

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

`BasicFailWithoutDefault` connects as soon as the config failure has
completed warming, but the listener only starts listening once the
workers have added it. The client can connect before that, and the test
then times out waiting for `extension_config_missing`.

Wait for the listeners and for `listener_manager.workers_started`, as
the other tests in this file do in `sendDataVerifyResults()`, and as

envoyproxy#49202 did for the same test of network ECDS.

Backport note: picked from the pull request ahead of its merge to main.
This branch waits with `waitForCounterGe()` and `waitForGaugeGe()`.

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

`BasicFailWithoutDefault` connects as soon as the config failure has
completed warming, but the listener only starts listening once the
workers have added it. The client can connect before that, and the test
then times out waiting for `extension_config_missing`.

Wait for the listeners and for `listener_manager.workers_started`, as
the other tests in this file do in `sendDataVerifyResults()`, and as

envoyproxy#49202 did for the same test of network ECDS.

Backport note: picked from the pull request ahead of its merge to main.
This branch waits with `waitForCounterGe()` and `waitForGaugeGe()`.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit that referenced this pull request Nov 13, 2026
`BasicFailWithoutDefault` connects as soon as the config failure has
completed warming, but the listener only starts listening once the
workers have added it. The client can connect before that, and the test
then times out waiting for `extension_config_missing`.

Wait for the listeners and for `listener_manager.workers_started`, as
the other tests in this file do in `sendDataVerifyResults()`, and as
#49202 did for the same test of network ECDS.

Seen in postsubmit CI on main (tsan, `BasicFailWithoutDefault/2`: `timed
out waiting for listener.listener_stat.extension_config_missing`).

Testing:
`*ListenerExtensionDiscoveryIntegrationTest.BasicFailWithoutDefault*`
with `--config=tsan` on RBE, 1000 runs each:

| | failed |
| --- | --- |
| main (1ad62cc) | 34 |
| this change | 0 |

All of the failures on main were the timeout on
`listener.listener_stat.extension_config_missing`.

Risk Level: low (test only)

Fixes #26939

---------

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

`BasicFailWithoutDefault` connects as soon as the config failure has
completed warming, but the listener only starts listening once the
workers have added it. The client can connect before that, and the test
then times out waiting for `extension_config_missing`.

Wait for the listeners, which only completes once the workers have added
them, as envoyproxy#49202 did for the same test of network ECDS.

Backport note: picked from the pull request ahead of its merge to main.

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

`BasicFailWithoutDefault` connects as soon as the config failure has
completed warming, but the listener only starts listening once the
workers have added it. The client can connect before that, and the test
then times out waiting for `extension_config_missing`.

Wait for the listeners, which only completes once the workers have added
them, as envoyproxy#49202 did for the same test of network ECDS.

Backport note: picked from the pull request ahead of its merge to main.

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

`BasicFailWithoutDefault` connects as soon as the config failure has
completed warming, but the listener only starts listening once the
workers have added it. The client can connect before that, and the test
then times out waiting for `extension_config_missing`.

Wait for the listeners and for `listener_manager.workers_started`, as
the other tests in this file do in `sendDataVerifyResults()`, and as

envoyproxy#49202 did for the same test of network ECDS.

Backport note: picked from the pull request ahead of its merge to main.

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

`BasicFailWithoutDefault` connects as soon as the config failure has
completed warming, but the listener only starts listening once the
workers have added it. The client can connect before that, and the test
then times out waiting for `extension_config_missing`.

Wait for the listeners and for `listener_manager.workers_started`, as
the other tests in this file do in `sendDataVerifyResults()`, and as

envoyproxy#49202 did for the same test of network ECDS.

Backport note: picked from the pull request ahead of its merge to main.
This branch waits with `waitForCounterGe()` and `waitForGaugeGe()`.

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

`BasicFailWithoutDefault` connects as soon as the config failure has
completed warming, but the listener only starts listening once the
workers have added it. The client can connect before that, and the test
then times out waiting for `extension_config_missing`.

Wait for the listeners and for `listener_manager.workers_started`, as
the other tests in this file do in `sendDataVerifyResults()`, and as

envoyproxy#49202 did for the same test of network ECDS.

Backport note: picked from the pull request ahead of its merge to main.
This branch waits with `waitForCounterGe()` and `waitForGaugeGe()`.

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

`BasicFailWithoutDefault` connects as soon as the config failure has
completed warming, but the listener only starts listening once the
workers have added it. The client can connect before that, and the test
then times out waiting for `extension_config_missing`.

Wait for the listeners and for `listener_manager.workers_started`, as
the other tests in this file do in `sendDataVerifyResults()`, and as

envoyproxy#49202 did for the same test of network ECDS.

Backport note: picked from the pull request ahead of its merge to main.
This branch waits with `waitForCounterGe()` and `waitForGaugeGe()`.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit that referenced this pull request Nov 17, 2026
`BasicFailWithoutDefault` connects as soon as the config failure has
completed warming, but the listener only starts listening once the
workers have added it. The client can connect before that, and the test
then times out waiting for `extension_config_missing`.

Wait for the listeners, which only completes once the workers have added
them, as #49202 did for the same test of network ECDS.

Backport note: picked from the pull request ahead of its merge to main.

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

`BasicFailWithoutDefault` connects as soon as the config failure has
completed warming, but the listener only starts listening once the
workers have added it. The client can connect before that, and the test
then times out waiting for `extension_config_missing`.

Wait for the listeners and for `listener_manager.workers_started`, as
the other tests in this file do in `sendDataVerifyResults()`, and as

envoyproxy#49202 did for the same test of network ECDS.

Backport note: picked from the pull request ahead of its merge to main.

(cherry picked from commit 998221c)

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

envoyproxy#49099 added `waitUntilListenersReady()` before two tests connect, but
that can return immediately here: the fixture clears the static
listeners, and the server's pending listener count is only set once the
server is ready, which in these tests is after the listener finishes
warming. The client can still connect before the workers have the
listener, and the test then times out waiting for
`network_extension_config_missing`.

Also wait for `listener_manager.workers_started`, as the other tests in
this file already do after `waitUntilListenersReady()`.

Deflake runs of `BasicFailWithoutDefault` and
`ConfigUpdateDoesNotApplyToExistingConnection`, 1000 runs each:

| | default | tsan |
| --- | --- | --- |
| main | 4 failed | 30 failed |
| this change | 0 failed | 0 failed |

All of the failures were `BasicFailWithoutDefault`, timing out on
`listener.listener_stat.network_extension_config_missing`.

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

envoyproxy#49099 added `waitUntilListenersReady()` before two tests connect, but
that can return immediately here: the fixture clears the static
listeners, and the server's pending listener count is only set once the
server is ready, which in these tests is after the listener finishes
warming. The client can still connect before the workers have the
listener, and the test then times out waiting for
`network_extension_config_missing`.

Also wait for `listener_manager.workers_started`, as the other tests in
this file already do after `waitUntilListenersReady()`.

Deflake runs of `BasicFailWithoutDefault` and
`ConfigUpdateDoesNotApplyToExistingConnection`, 1000 runs each:

| | default | tsan |
| --- | --- | --- |
| main | 4 failed | 30 failed |
| this change | 0 failed | 0 failed |

All of the failures were `BasicFailWithoutDefault`, timing out on
`listener.listener_stat.network_extension_config_missing`.

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

`BasicFailWithoutDefault` connects as soon as the config failure has
completed warming, but the listener only starts listening once the
workers have added it. The client can connect before that, and the test
then times out waiting for `extension_config_missing`.

Wait for the listeners and for `listener_manager.workers_started`, as
the other tests in this file do in `sendDataVerifyResults()`, and as

envoyproxy#49202 did for the same test of network ECDS.

Backport note: picked from the pull request ahead of its merge to main.
This branch waits with `waitForCounterGe()` and `waitForGaugeGe()`.

(cherry picked from commit 998221c)

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

envoyproxy#49099 added `waitUntilListenersReady()` before two tests connect, but
that can return immediately here: the fixture clears the static
listeners, and the server's pending listener count is only set once the
server is ready, which in these tests is after the listener finishes
warming. The client can still connect before the workers have the
listener, and the test then times out waiting for
`network_extension_config_missing`.

Also wait for `listener_manager.workers_started`, as the other tests in
this file already do after `waitUntilListenersReady()`.

Deflake runs of `BasicFailWithoutDefault` and
`ConfigUpdateDoesNotApplyToExistingConnection`, 1000 runs each:

| | default | tsan |
| --- | --- | --- |
| main | 4 failed | 30 failed |
| this change | 0 failed | 0 failed |

All of the failures were `BasicFailWithoutDefault`, timing out on
`listener.listener_stat.network_extension_config_missing`.

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

envoyproxy#49099 added `waitUntilListenersReady()` before two tests connect, but
that can return immediately here: the fixture clears the static
listeners, and the server's pending listener count is only set once the
server is ready, which in these tests is after the listener finishes
warming. The client can still connect before the workers have the
listener, and the test then times out waiting for
`network_extension_config_missing`.

Also wait for `listener_manager.workers_started`, as the other tests in
this file already do after `waitUntilListenersReady()`.

Deflake runs of `BasicFailWithoutDefault` and
`ConfigUpdateDoesNotApplyToExistingConnection`, 1000 runs each:

| | default | tsan |
| --- | --- | --- |
| main | 4 failed | 30 failed |
| this change | 0 failed | 0 failed |

All of the failures were `BasicFailWithoutDefault`, timing out on
`listener.listener_stat.network_extension_config_missing`.

Signed-off-by: Ryan Northey <[email protected]>
Backport note (release/v1.38): with this branch's `waitForGaugeGe()`, as the rest of the
file uses.

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

`BasicFailWithoutDefault` connects as soon as the config failure has
completed warming, but the listener only starts listening once the
workers have added it. The client can connect before that, and the test
then times out waiting for `extension_config_missing`.

Wait for the listeners and for `listener_manager.workers_started`, as
the other tests in this file do in `sendDataVerifyResults()`, and as

envoyproxy#49202 did for the same test of network ECDS.

Backport note: picked from the pull request ahead of its merge to main.
This branch waits with `waitForCounterGe()` and `waitForGaugeGe()`.

(cherry picked from commit 998221c)

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

envoyproxy#49099 added `waitUntilListenersReady()` before two tests connect, but
that can return immediately here: the fixture clears the static
listeners, and the server's pending listener count is only set once the
server is ready, which in these tests is after the listener finishes
warming. The client can still connect before the workers have the
listener, and the test then times out waiting for
`network_extension_config_missing`.

Also wait for `listener_manager.workers_started`, as the other tests in
this file already do after `waitUntilListenersReady()`.

Deflake runs of `BasicFailWithoutDefault` and
`ConfigUpdateDoesNotApplyToExistingConnection`, 1000 runs each:

| | default | tsan |
| --- | --- | --- |
| main | 4 failed | 30 failed |
| this change | 0 failed | 0 failed |

All of the failures were `BasicFailWithoutDefault`, timing out on
`listener.listener_stat.network_extension_config_missing`.

Signed-off-by: Ryan Northey <[email protected]>
Backport note (release/v1.37): with this branch's `waitForGaugeGe()`, as the rest of the
file uses.

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

envoyproxy#49099 added `waitUntilListenersReady()` before two tests connect, but
that can return immediately here: the fixture clears the static
listeners, and the server's pending listener count is only set once the
server is ready, which in these tests is after the listener finishes
warming. The client can still connect before the workers have the
listener, and the test then times out waiting for
`network_extension_config_missing`.

Also wait for `listener_manager.workers_started`, as the other tests in
this file already do after `waitUntilListenersReady()`.

Deflake runs of `BasicFailWithoutDefault` and
`ConfigUpdateDoesNotApplyToExistingConnection`, 1000 runs each:

| | default | tsan |
| --- | --- | --- |
| main | 4 failed | 30 failed |
| this change | 0 failed | 0 failed |

All of the failures were `BasicFailWithoutDefault`, timing out on
`listener.listener_stat.network_extension_config_missing`.

Signed-off-by: Ryan Northey <[email protected]>
Backport note (release/v1.38): with this branch's `waitForGaugeGe()`, as the rest of the
file uses.

(cherry picked from commit 8def710)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit that referenced this pull request Nov 17, 2026
`BasicFailWithoutDefault` connects as soon as the config failure has
completed warming, but the listener only starts listening once the
workers have added it. The client can connect before that, and the test
then times out waiting for `extension_config_missing`.

Wait for the listeners and for `listener_manager.workers_started`, as
the other tests in this file do in `sendDataVerifyResults()`, and as

#49202 did for the same test of network ECDS.

Backport note: picked from the pull request ahead of its merge to main.
This branch waits with `waitForCounterGe()` and `waitForGaugeGe()`.

(cherry picked from commit 998221c)

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

envoyproxy#49099 added `waitUntilListenersReady()` before two tests connect, but
that can return immediately here: the fixture clears the static
listeners, and the server's pending listener count is only set once the
server is ready, which in these tests is after the listener finishes
warming. The client can still connect before the workers have the
listener, and the test then times out waiting for
`network_extension_config_missing`.

Also wait for `listener_manager.workers_started`, as the other tests in
this file already do after `waitUntilListenersReady()`.

Deflake runs of `BasicFailWithoutDefault` and
`ConfigUpdateDoesNotApplyToExistingConnection`, 1000 runs each:

| | default | tsan |
| --- | --- | --- |
| main | 4 failed | 30 failed |
| this change | 0 failed | 0 failed |

All of the failures were `BasicFailWithoutDefault`, timing out on
`listener.listener_stat.network_extension_config_missing`.

Signed-off-by: Ryan Northey <[email protected]>
Backport note (release/v1.38): with this branch's `waitForGaugeGe()`, as the rest of the
file uses.

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

envoyproxy#49099 added `waitUntilListenersReady()` before two tests connect, but
that can return immediately here: the fixture clears the static
listeners, and the server's pending listener count is only set once the
server is ready, which in these tests is after the listener finishes
warming. The client can still connect before the workers have the
listener, and the test then times out waiting for
`network_extension_config_missing`.

Also wait for `listener_manager.workers_started`, as the other tests in
this file already do after `waitUntilListenersReady()`.

Deflake runs of `BasicFailWithoutDefault` and
`ConfigUpdateDoesNotApplyToExistingConnection`, 1000 runs each:

| | default | tsan |
| --- | --- | --- |
| main | 4 failed | 30 failed |
| this change | 0 failed | 0 failed |

All of the failures were `BasicFailWithoutDefault`, timing out on
`listener.listener_stat.network_extension_config_missing`.

Signed-off-by: Ryan Northey <[email protected]>
Backport note (release/v1.37): with this branch's `waitForGaugeGe()`, as the rest of the
file uses.

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

`BasicFailWithoutDefault` connects as soon as the config failure has
completed warming, but the listener only starts listening once the
workers have added it. The client can connect before that, and the test
then times out waiting for `extension_config_missing`.

Wait for the listeners and for `listener_manager.workers_started`, as
the other tests in this file do in `sendDataVerifyResults()`, and as

envoyproxy#49202 did for the same test of network ECDS.

Backport note: picked from the pull request ahead of its merge to main.
This branch waits with `waitForCounterGe()` and `waitForGaugeGe()`.

(cherry picked from commit 998221c)

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

envoyproxy#49099 added `waitUntilListenersReady()` before two tests connect, but
that can return immediately here: the fixture clears the static
listeners, and the server's pending listener count is only set once the
server is ready, which in these tests is after the listener finishes
warming. The client can still connect before the workers have the
listener, and the test then times out waiting for
`network_extension_config_missing`.

Also wait for `listener_manager.workers_started`, as the other tests in
this file already do after `waitUntilListenersReady()`.

Deflake runs of `BasicFailWithoutDefault` and
`ConfigUpdateDoesNotApplyToExistingConnection`, 1000 runs each:

| | default | tsan |
| --- | --- | --- |
| main | 4 failed | 30 failed |
| this change | 0 failed | 0 failed |

All of the failures were `BasicFailWithoutDefault`, timing out on
`listener.listener_stat.network_extension_config_missing`.

Signed-off-by: Ryan Northey <[email protected]>
Backport note (release/v1.37): with this branch's `waitForGaugeGe()`, as the rest of the
file uses.

(cherry picked from commit 8def710)
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