Skip to content

Deflake //test/integration:xds_integration_test - #48634

Merged
yanavlasov merged 2 commits into
envoyproxy:mainfrom
ravenblackx:deflake_xds
Nov 3, 2026
Merged

yanavlasov merged 2 commits into
envoyproxy:mainfrom
ravenblackx:deflake_xds

Conversation

@ravenblackx

@ravenblackx ravenblackx commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Commit Message: Deflake //test/integration:xds_integration_test
Additional Description:
Test was flaky: example failure.

  [ RUN      ] IpVersionsAndMatcher/LdsInplaceUpdateHttpIntegrationTest.ReloadConfigUpdatingDefaultFilterChain/1
  test/integration/http_integration.cc:323: Failure
  Value of: codec->connected()
    Actual: false
  Expected: true

The race: receiving the complete response doesn’t guarantee the old connection’s close event has arrived. Its later RemoteClose callback exits the shared dispatcher while the new client is waiting for TLS, returning with connected() == false. Performing that disconnect first removes the ordering hazard and also protects the filter-chain deletion test.
Assisted with Codex Sol, I understand what it's doing.
Risk Level: Test-only
Testing: yes
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a
Fixes: #31803

@ravenblackx
ravenblackx marked this pull request as draft October 23, 2026 20:53
@ravenblackx
ravenblackx marked this pull request as ready for review October 23, 2026 20:59
@ravenblackx

Copy link
Copy Markdown
Contributor Author

/retest (fuzz is not touched by this)

@htuch

htuch commented Oct 24, 2026

Copy link
Copy Markdown
Member

/retest

ravenblackx added a commit that referenced this pull request Oct 26, 2026
Commit Message: Simplify /retest command
Additional Description: In
#48634 I did `/retest
(explanatory comment)`, and it didn't trigger a retest because the
action receives the rest of the line as args, and validates those args
as tokens, and the parens fails that validation. The args aren't
actually used, so the only effect of this extra processing is to
unintentionally fail to /retest under conditions like these. This change
stops forwarding the unused args so a similar comment in future will
still trigger retest. (May be worth also updating the toolshed to remove
[this](https://github.com/envoyproxy/toolshed/blob/9bd3b300cf19f67cd2ef8b6e4aaa920f79894c24/actions/retest/action.yml#L37-L41)
due to the comment will no longer be true.)
Risk Level: Negligible
Testing: No
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a

Signed-off-by: Raven Black <[email protected]>
@yanavlasov
yanavlasov merged commit 899f081 into envoyproxy:main Nov 3, 2026
27 checks passed
phlax pushed a commit to phlax/envoy that referenced this pull request Nov 12, 2026
Test was flaky: [example
failure](https://github.com/envoyproxy/envoy/actions/runs/39863346500/job/120119395813#step:20:751).
```
  [ RUN      ] IpVersionsAndMatcher/LdsInplaceUpdateHttpIntegrationTest.ReloadConfigUpdatingDefaultFilterChain/1
  test/integration/http_integration.cc:323: Failure
  Value of: codec->connected()
    Actual: false
  Expected: true
```
The race: receiving the complete response doesn’t guarantee the old
connection’s close event has arrived. Its later RemoteClose callback
exits the shared dispatcher while the new client is waiting for TLS,
returning with connected() == false. Performing that disconnect first
removes the ordering hazard and also protects the filter-chain deletion
test.
Assisted with Codex Sol, I understand what it's doing.
Risk Level: Test-only
Testing: yes
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a
Fixes: envoyproxy#31803

---------

Signed-off-by: Raven Black <[email protected]>
Signed-off-by: Ryan Northey <[email protected]>
jwendell pushed a commit that referenced this pull request Nov 12, 2026
Test was flaky: [example
failure](https://github.com/envoyproxy/envoy/actions/runs/39863346500/job/120119395813#step:20:751).
```
  [ RUN      ] IpVersionsAndMatcher/LdsInplaceUpdateHttpIntegrationTest.ReloadConfigUpdatingDefaultFilterChain/1
  test/integration/http_integration.cc:323: Failure
  Value of: codec->connected()
    Actual: false
  Expected: true
```
The race: receiving the complete response doesn’t guarantee the old
connection’s close event has arrived. Its later RemoteClose callback
exits the shared dispatcher while the new client is waiting for TLS,
returning with connected() == false. Performing that disconnect first
removes the ordering hazard and also protects the filter-chain deletion
test.
Assisted with Codex Sol, I understand what it's doing.
Risk Level: Test-only
Testing: yes
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a
Fixes: #31803

---------

Signed-off-by: Raven Black <[email protected]>
Signed-off-by: Ryan Northey <[email protected]>
phlax pushed a commit to phlax/envoy that referenced this pull request Nov 16, 2026
Test was flaky: [example
failure](https://github.com/envoyproxy/envoy/actions/runs/39863346500/job/120119395813#step:20:751).
```
  [ RUN      ] IpVersionsAndMatcher/LdsInplaceUpdateHttpIntegrationTest.ReloadConfigUpdatingDefaultFilterChain/1
  test/integration/http_integration.cc:323: Failure
  Value of: codec->connected()
    Actual: false
  Expected: true
```
The race: receiving the complete response doesn’t guarantee the old
connection’s close event has arrived. Its later RemoteClose callback
exits the shared dispatcher while the new client is waiting for TLS,
returning with connected() == false. Performing that disconnect first
removes the ordering hazard and also protects the filter-chain deletion
test.
Assisted with Codex Sol, I understand what it's doing.
Risk Level: Test-only
Testing: yes
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a
Fixes: envoyproxy#31803

---------

Signed-off-by: Raven Black <[email protected]>
(cherry picked from commit 899f081)
Signed-off-by: Ryan Northey <[email protected]>
phlax pushed a commit to phlax/envoy that referenced this pull request Nov 16, 2026
Test was flaky: [example
failure](https://github.com/envoyproxy/envoy/actions/runs/39863346500/job/120119395813#step:20:751).
```
  [ RUN      ] IpVersionsAndMatcher/LdsInplaceUpdateHttpIntegrationTest.ReloadConfigUpdatingDefaultFilterChain/1
  test/integration/http_integration.cc:323: Failure
  Value of: codec->connected()
    Actual: false
  Expected: true
```
The race: receiving the complete response doesn’t guarantee the old
connection’s close event has arrived. Its later RemoteClose callback
exits the shared dispatcher while the new client is waiting for TLS,
returning with connected() == false. Performing that disconnect first
removes the ordering hazard and also protects the filter-chain deletion
test.
Assisted with Codex Sol, I understand what it's doing.
Risk Level: Test-only
Testing: yes
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a
Fixes: envoyproxy#31803

---------

Signed-off-by: Raven Black <[email protected]>
(cherry picked from commit 899f081)
Signed-off-by: Ryan Northey <[email protected]>
phlax pushed a commit to phlax/envoy that referenced this pull request Nov 16, 2026
Test was flaky: [example
failure](https://github.com/envoyproxy/envoy/actions/runs/39863346500/job/120119395813#step:20:751).
```
  [ RUN      ] IpVersionsAndMatcher/LdsInplaceUpdateHttpIntegrationTest.ReloadConfigUpdatingDefaultFilterChain/1
  test/integration/http_integration.cc:323: Failure
  Value of: codec->connected()
    Actual: false
  Expected: true
```
The race: receiving the complete response doesn’t guarantee the old
connection’s close event has arrived. Its later RemoteClose callback
exits the shared dispatcher while the new client is waiting for TLS,
returning with connected() == false. Performing that disconnect first
removes the ordering hazard and also protects the filter-chain deletion
test.
Assisted with Codex Sol, I understand what it's doing.
Risk Level: Test-only
Testing: yes
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a
Fixes: envoyproxy#31803

---------

Signed-off-by: Raven Black <[email protected]>
(cherry picked from commit 899f081)
Signed-off-by: Ryan Northey <[email protected]>
phlax pushed a commit to phlax/envoy that referenced this pull request Nov 16, 2026
Test was flaky: [example
failure](https://github.com/envoyproxy/envoy/actions/runs/39863346500/job/120119395813#step:20:751).
```
  [ RUN      ] IpVersionsAndMatcher/LdsInplaceUpdateHttpIntegrationTest.ReloadConfigUpdatingDefaultFilterChain/1
  test/integration/http_integration.cc:323: Failure
  Value of: codec->connected()
    Actual: false
  Expected: true
```
The race: receiving the complete response doesn’t guarantee the old
connection’s close event has arrived. Its later RemoteClose callback
exits the shared dispatcher while the new client is waiting for TLS,
returning with connected() == false. Performing that disconnect first
removes the ordering hazard and also protects the filter-chain deletion
test.
Assisted with Codex Sol, I understand what it's doing.
Risk Level: Test-only
Testing: yes
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a
Fixes: envoyproxy#31803

---------

Signed-off-by: Raven Black <[email protected]>
(cherry picked from commit 899f081)
Signed-off-by: Ryan Northey <[email protected]>
phlax pushed a commit to phlax/envoy that referenced this pull request Nov 16, 2026
Test was flaky: [example
failure](https://github.com/envoyproxy/envoy/actions/runs/39863346500/job/120119395813#step:20:751).
```
  [ RUN      ] IpVersionsAndMatcher/LdsInplaceUpdateHttpIntegrationTest.ReloadConfigUpdatingDefaultFilterChain/1
  test/integration/http_integration.cc:323: Failure
  Value of: codec->connected()
    Actual: false
  Expected: true
```
The race: receiving the complete response doesn’t guarantee the old
connection’s close event has arrived. Its later RemoteClose callback
exits the shared dispatcher while the new client is waiting for TLS,
returning with connected() == false. Performing that disconnect first
removes the ordering hazard and also protects the filter-chain deletion
test.
Assisted with Codex Sol, I understand what it's doing.
Risk Level: Test-only
Testing: yes
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a
Fixes: envoyproxy#31803

---------

Signed-off-by: Raven Black <[email protected]>
(cherry picked from commit 899f081)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit that referenced this pull request Nov 16, 2026
…gDefaultFilterChain (#49318)

Commit Message: test: deflake
LdsInplaceUpdateHttpIntegrationTest.ReloadConfigUpdatingDefaultFilterChain
Additional Description:
The test runs in this order:
1. It opens a client on the default filter chain.
2. It replaces that filter chain via LDS.
3. It connects a second client.
4. Only then does it send a request on the first client.

The replaced chain is hard-closed `drainTime()` (1s in integration
tests) after the update. Under tsan, the second client's TLS handshake
can run past that deadline. When it does:
- The first client's `RemoteClose` lands on the shared dispatcher, and
`IntegrationCodecClient` exits the dispatcher on it.
- `makeHttpConnection()` therefore returns before the second client has
connected, so `connected()` is false.
- The next request on the closed first client then asserts on `state()
== Open`.

Example:
https://github.com/envoyproxy/envoy/actions/runs/43830092397/job/133173181415

The fix gives this test a drain time it cannot outrun. It never waits
for the drained chain to be removed. #48634 fixed the same hazard in
`expectResponseHeaderConnectionClose`.

Risk Level: Low (test only)
Testing: tsan deflake on envoy-ci-staging, filtered to this test.

| | main | this PR |
|---|---|---|
| forced (1.5s sleep before the second connect) | 20/20 fail
([run](https://github.com/envoyproxy/envoy-ci-staging/actions/runs/43846075670))
| 20/20 pass
([run](https://github.com/envoyproxy/envoy-ci-staging/actions/runs/43846095251))
|
| natural | 2/500 fail
([run](https://github.com/envoyproxy/envoy-ci-staging/actions/runs/43846114293))
| 500/500 pass
([run](https://github.com/envoyproxy/envoy-ci-staging/actions/runs/43846133288))
|

Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A
Previously reported (closed): #29842, #31803, #33250, #38264, #44744

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

Commit Message: test: deflake
LdsInplaceUpdateHttpIntegrationTest.ReloadConfigUpdatingDefaultFilterChain
Additional Description:
The test runs in this order:
1. It opens a client on the default filter chain.
2. It replaces that filter chain via LDS.
3. It connects a second client.
4. Only then does it send a request on the first client.

The replaced chain is hard-closed `drainTime()` (1s in integration
tests) after the update. Under tsan, the second client's TLS handshake
can run past that deadline. When it does:
- The first client's `RemoteClose` lands on the shared dispatcher, and
`IntegrationCodecClient` exits the dispatcher on it.
- `makeHttpConnection()` therefore returns before the second client has
connected, so `connected()` is false.
- The next request on the closed first client then asserts on `state()
== Open`.

Example:
https://github.com/envoyproxy/envoy/actions/runs/43830092397/job/133173181415

The fix gives this test a drain time it cannot outrun. It never waits
for the drained chain to be removed. envoyproxy#48634 fixed the same hazard in
`expectResponseHeaderConnectionClose`.

Risk Level: Low (test only)
Testing: tsan deflake on envoy-ci-staging, filtered to this test.

| | main | this PR |
|---|---|---|
| forced (1.5s sleep before the second connect) | 20/20 fail
([run](https://github.com/envoyproxy/envoy-ci-staging/actions/runs/43846075670))
| 20/20 pass
([run](https://github.com/envoyproxy/envoy-ci-staging/actions/runs/43846095251))
|
| natural | 2/500 fail
([run](https://github.com/envoyproxy/envoy-ci-staging/actions/runs/43846114293))
| 500/500 pass
([run](https://github.com/envoyproxy/envoy-ci-staging/actions/runs/43846133288))
|

Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A
Previously reported (closed): envoyproxy#29842, envoyproxy#31803, envoyproxy#33250, envoyproxy#38264, envoyproxy#44744

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

Commit Message: test: deflake
LdsInplaceUpdateHttpIntegrationTest.ReloadConfigUpdatingDefaultFilterChain
Additional Description:
The test runs in this order:
1. It opens a client on the default filter chain.
2. It replaces that filter chain via LDS.
3. It connects a second client.
4. Only then does it send a request on the first client.

The replaced chain is hard-closed `drainTime()` (1s in integration
tests) after the update. Under tsan, the second client's TLS handshake
can run past that deadline. When it does:
- The first client's `RemoteClose` lands on the shared dispatcher, and
`IntegrationCodecClient` exits the dispatcher on it.
- `makeHttpConnection()` therefore returns before the second client has
connected, so `connected()` is false.
- The next request on the closed first client then asserts on `state()
== Open`.

Example:
https://github.com/envoyproxy/envoy/actions/runs/43830092397/job/133173181415

The fix gives this test a drain time it cannot outrun. It never waits
for the drained chain to be removed. envoyproxy#48634 fixed the same hazard in
`expectResponseHeaderConnectionClose`.

Risk Level: Low (test only)
Testing: tsan deflake on envoy-ci-staging, filtered to this test.

| | main | this PR |
|---|---|---|
| forced (1.5s sleep before the second connect) | 20/20 fail
([run](https://github.com/envoyproxy/envoy-ci-staging/actions/runs/43846075670))
| 20/20 pass
([run](https://github.com/envoyproxy/envoy-ci-staging/actions/runs/43846095251))
|
| natural | 2/500 fail
([run](https://github.com/envoyproxy/envoy-ci-staging/actions/runs/43846114293))
| 500/500 pass
([run](https://github.com/envoyproxy/envoy-ci-staging/actions/runs/43846133288))
|

Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A
Previously reported (closed): envoyproxy#29842, envoyproxy#31803, envoyproxy#33250, envoyproxy#38264, envoyproxy#44744

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

Commit Message: test: deflake
LdsInplaceUpdateHttpIntegrationTest.ReloadConfigUpdatingDefaultFilterChain
Additional Description:
The test runs in this order:
1. It opens a client on the default filter chain.
2. It replaces that filter chain via LDS.
3. It connects a second client.
4. Only then does it send a request on the first client.

The replaced chain is hard-closed `drainTime()` (1s in integration
tests) after the update. Under tsan, the second client's TLS handshake
can run past that deadline. When it does:
- The first client's `RemoteClose` lands on the shared dispatcher, and
`IntegrationCodecClient` exits the dispatcher on it.
- `makeHttpConnection()` therefore returns before the second client has
connected, so `connected()` is false.
- The next request on the closed first client then asserts on `state()
== Open`.

Example:
https://github.com/envoyproxy/envoy/actions/runs/43830092397/job/133173181415

The fix gives this test a drain time it cannot outrun. It never waits
for the drained chain to be removed. #48634 fixed the same hazard in
`expectResponseHeaderConnectionClose`.

Risk Level: Low (test only)
Testing: tsan deflake on envoy-ci-staging, filtered to this test.

| | main | this PR |
|---|---|---|
| forced (1.5s sleep before the second connect) | 20/20 fail
([run](https://github.com/envoyproxy/envoy-ci-staging/actions/runs/43846075670))
| 20/20 pass
([run](https://github.com/envoyproxy/envoy-ci-staging/actions/runs/43846095251))
|
| natural | 2/500 fail
([run](https://github.com/envoyproxy/envoy-ci-staging/actions/runs/43846114293))
| 500/500 pass
([run](https://github.com/envoyproxy/envoy-ci-staging/actions/runs/43846133288))
|

Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A
Previously reported (closed): #29842, #31803, #33250, #38264, #44744

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 9ee2de5)
Signed-off-by: Ryan Northey <[email protected]>
phlax pushed a commit to phlax/envoy that referenced this pull request Nov 17, 2026
Test was flaky: [example
failure](https://github.com/envoyproxy/envoy/actions/runs/39863346500/job/120119395813#step:20:751).
```
  [ RUN      ] IpVersionsAndMatcher/LdsInplaceUpdateHttpIntegrationTest.ReloadConfigUpdatingDefaultFilterChain/1
  test/integration/http_integration.cc:323: Failure
  Value of: codec->connected()
    Actual: false
  Expected: true
```
The race: receiving the complete response doesn’t guarantee the old
connection’s close event has arrived. Its later RemoteClose callback
exits the shared dispatcher while the new client is waiting for TLS,
returning with connected() == false. Performing that disconnect first
removes the ordering hazard and also protects the filter-chain deletion
test.
Assisted with Codex Sol, I understand what it's doing.
Risk Level: Test-only
Testing: yes
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a
Fixes: envoyproxy#31803

---------

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

Commit Message: test: deflake
LdsInplaceUpdateHttpIntegrationTest.ReloadConfigUpdatingDefaultFilterChain
Additional Description:
The test runs in this order:
1. It opens a client on the default filter chain.
2. It replaces that filter chain via LDS.
3. It connects a second client.
4. Only then does it send a request on the first client.

The replaced chain is hard-closed `drainTime()` (1s in integration
tests) after the update. Under tsan, the second client's TLS handshake
can run past that deadline. When it does:
- The first client's `RemoteClose` lands on the shared dispatcher, and
`IntegrationCodecClient` exits the dispatcher on it.
- `makeHttpConnection()` therefore returns before the second client has
connected, so `connected()` is false.
- The next request on the closed first client then asserts on `state()
== Open`.

Example:
https://github.com/envoyproxy/envoy/actions/runs/43830092397/job/133173181415

The fix gives this test a drain time it cannot outrun. It never waits
for the drained chain to be removed. envoyproxy#48634 fixed the same hazard in
`expectResponseHeaderConnectionClose`.

Risk Level: Low (test only)
Testing: tsan deflake on envoy-ci-staging, filtered to this test.

| | main | this PR |
|---|---|---|
| forced (1.5s sleep before the second connect) | 20/20 fail
([run](https://github.com/envoyproxy/envoy-ci-staging/actions/runs/43846075670))
| 20/20 pass
([run](https://github.com/envoyproxy/envoy-ci-staging/actions/runs/43846095251))
|
| natural | 2/500 fail
([run](https://github.com/envoyproxy/envoy-ci-staging/actions/runs/43846114293))
| 500/500 pass
([run](https://github.com/envoyproxy/envoy-ci-staging/actions/runs/43846133288))
|

Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A
Previously reported (closed): envoyproxy#29842, envoyproxy#31803, envoyproxy#33250, envoyproxy#38264, envoyproxy#44744

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 9ee2de5)
Signed-off-by: Ryan Northey <[email protected]>
phlax pushed a commit to phlax/envoy that referenced this pull request Nov 17, 2026
Test was flaky: [example
failure](https://github.com/envoyproxy/envoy/actions/runs/39863346500/job/120119395813#step:20:751).
```
  [ RUN      ] IpVersionsAndMatcher/LdsInplaceUpdateHttpIntegrationTest.ReloadConfigUpdatingDefaultFilterChain/1
  test/integration/http_integration.cc:323: Failure
  Value of: codec->connected()
    Actual: false
  Expected: true
```
The race: receiving the complete response doesn’t guarantee the old
connection’s close event has arrived. Its later RemoteClose callback
exits the shared dispatcher while the new client is waiting for TLS,
returning with connected() == false. Performing that disconnect first
removes the ordering hazard and also protects the filter-chain deletion
test.
Assisted with Codex Sol, I understand what it's doing.
Risk Level: Test-only
Testing: yes
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a
Fixes: envoyproxy#31803

---------

Signed-off-by: Raven Black <[email protected]>
(cherry picked from commit 899f081)
Signed-off-by: Ryan Northey <[email protected]>
phlax pushed a commit to phlax/envoy that referenced this pull request Nov 17, 2026
Test was flaky: [example
failure](https://github.com/envoyproxy/envoy/actions/runs/39863346500/job/120119395813#step:20:751).
```
  [ RUN      ] IpVersionsAndMatcher/LdsInplaceUpdateHttpIntegrationTest.ReloadConfigUpdatingDefaultFilterChain/1
  test/integration/http_integration.cc:323: Failure
  Value of: codec->connected()
    Actual: false
  Expected: true
```
The race: receiving the complete response doesn’t guarantee the old
connection’s close event has arrived. Its later RemoteClose callback
exits the shared dispatcher while the new client is waiting for TLS,
returning with connected() == false. Performing that disconnect first
removes the ordering hazard and also protects the filter-chain deletion
test.
Assisted with Codex Sol, I understand what it's doing.
Risk Level: Test-only
Testing: yes
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a
Fixes: envoyproxy#31803

---------

Signed-off-by: Raven Black <[email protected]>
(cherry picked from commit 899f081)
Signed-off-by: Ryan Northey <[email protected]>
phlax pushed a commit that referenced this pull request Nov 17, 2026
Test was flaky: [example
failure](https://github.com/envoyproxy/envoy/actions/runs/39863346500/job/120119395813#step:20:751).
```
  [ RUN      ] IpVersionsAndMatcher/LdsInplaceUpdateHttpIntegrationTest.ReloadConfigUpdatingDefaultFilterChain/1
  test/integration/http_integration.cc:323: Failure
  Value of: codec->connected()
    Actual: false
  Expected: true
```
The race: receiving the complete response doesn’t guarantee the old
connection’s close event has arrived. Its later RemoteClose callback
exits the shared dispatcher while the new client is waiting for TLS,
returning with connected() == false. Performing that disconnect first
removes the ordering hazard and also protects the filter-chain deletion
test.
Assisted with Codex Sol, I understand what it's doing.
Risk Level: Test-only
Testing: yes
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a
Fixes: #31803

---------

Signed-off-by: Raven Black <[email protected]>
(cherry picked from commit 899f081)
Signed-off-by: Ryan Northey <[email protected]>
phlax pushed a commit to phlax/envoy that referenced this pull request Nov 18, 2026
Test was flaky: [example
failure](https://github.com/envoyproxy/envoy/actions/runs/39863346500/job/120119395813#step:20:751).
```
  [ RUN      ] IpVersionsAndMatcher/LdsInplaceUpdateHttpIntegrationTest.ReloadConfigUpdatingDefaultFilterChain/1
  test/integration/http_integration.cc:323: Failure
  Value of: codec->connected()
    Actual: false
  Expected: true
```
The race: receiving the complete response doesn’t guarantee the old
connection’s close event has arrived. Its later RemoteClose callback
exits the shared dispatcher while the new client is waiting for TLS,
returning with connected() == false. Performing that disconnect first
removes the ordering hazard and also protects the filter-chain deletion
test.
Assisted with Codex Sol, I understand what it's doing.
Risk Level: Test-only
Testing: yes
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a
Fixes: envoyproxy#31803

---------

Signed-off-by: Raven Black <[email protected]>
(cherry picked from commit 899f081)
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.

IpVersionsAndMatcher/LdsInplaceUpdateHttpIntegrationTest.ReloadConfigUpdatingDefaultFilterChain is flakey (tsan)

3 participants