Repository navigation
test/network_ecds: Wait for the workers before connecting - #49202
Merged
Merged
Conversation
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]>
Member
Author
|
/retest flakey infra |
Contributor
There was a problem hiding this comment.
🟢 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_startedgauge wait afterwaitUntilListenersReady()inBasicFailWithoutDefaultandConfigUpdateDoesNotApplyToExistingConnection. - 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
enabled auto-merge (squash)
November 12, 2026 10:12
jwendell
approved these changes
Nov 12, 2026
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]>
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.
#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 fornetwork_extension_config_missing.Also wait for
listener_manager.workers_started, as the other tests in this file already do afterwaitUntilListenersReady().Deflake runs of
BasicFailWithoutDefaultandConfigUpdateDoesNotApplyToExistingConnection, 1000 runs each:All of the failures were
BasicFailWithoutDefault, timing out onlistener.listener_stat.network_extension_config_missing.Risk Level: test-only
Testing: deflake runs above
Docs Changes: n/a
Release Notes: n/a