Repository navigation
Test Failure: System.Net.WebSockets.Client.Tests.CancelTest_SharedHandler_Loopback.ConnectAsync_Cancel_ThrowsCancellationException #130439
Description
Build Information
Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1586870
Build error leg or test failing: android-x64 Release AllSubsets_CoreCLR_Smoke - System.Net.WebSockets.Client.Tests.CancelTest_HttpClient_Loopback.ConnectAsync_Cancel_ThrowsCancellationException
Pull request: #133404
Error Message
Fill the error message using step by step known issues guidance.
{
"ErrorPattern": "System\\.Net\\.WebSockets\\.Client\\.Tests\\.CancelTest_\\w+Loopback\\.ConnectAsync_Cancel_ThrowsCancellationException",
"BuildRetry": false,
"ExcludeConsoleLog": false
}Known issue validation
Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1500785
Error message validated: [System.Net.WebSockets.Client.Tests.CancelTest_SharedHandler_Loopback.ConnectAsync_Cancel_ThrowsCancellationException(useSsl: False) [FAIL]]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 7/9/2026 10:27:44 PM UTC
Report
| Build | Repository | Test | Pull Request |
|---|---|---|---|
| 1500785 | dotnet/runtime | System.Net.WebSockets.Client.Tests.CancelTest_SharedHandler_Loopback.ConnectAsync_Cancel_ThrowsCancellationException |
Summary
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 0 | 0 | 1 |
Known issue validation
Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1586870
Error message validated: [System\.Net\.WebSockets\.Client\.Tests\.CancelTest_\w+Loopback\.ConnectAsync_Cancel_ThrowsCancellationException]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 9/8/2026 5:07:45 PM UTC
Report
| Build | Repository | Test | Pull Request |
|---|---|---|---|
| 1500785 | dotnet/runtime | System.Net.WebSockets.Client.Tests.CancelTest_SharedHandler_Loopback.ConnectAsync_Cancel_ThrowsCancellationException |
Summary
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 0 | 0 | 1 |
Report
Summary
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 1 | 18 | 65 |
Note
This issue body was updated with GitHub Copilot.
Activity
dotnet-policy-service commentedon Jul 9, 2026
Tagging subscribers to this area: @karelz, @dotnet/ncl
See info in area-owners.md if you want to be subscribed.
lewing commentedon Jul 27, 2026
Broadened the matcher from a fixed
ErrorMessageonCancelTest_SharedHandler_Loopbackto anErrorPatterncovering everyCancelTest_*Loopbackfixture, since the same test method is now failing the same way under other fixtures.{ "ErrorPattern": "System\\.Net\\.WebSockets\\.Client\\.Tests\\.CancelTest_\\w+Loopback\\.ConnectAsync_Cancel_ThrowsCancellationException[^\\n]*\\[FAIL\\]", "BuildRetry": false, "ExcludeConsoleLog": false }The pattern matches
SharedHandler_Loopback,HttpClient_Loopback,Invoker_Loopbackand the*_Http2Loopbackvariants, and does not match*_Externalfixtures or other test methods on the same classes.Recent occurrences
Latest hit is on dotnet/runtime#131401, build 1527384 —
CancelTest_HttpClient_Loopback.ConnectAsync_Cancel_ThrowsCancellationException(useSsl: False)onnet11.0-windows-Debug-x86-coreclr_checked-Windows.10.Amd64.Open:That PR only touches
src/coreclr/jit/lclvars.cppinside a#if ... || defined(TARGET_WASM)guard, so it is a no-op for a Windows x86 leg and cannot be the cause.Failure history from the AzDO test-history API (7-day retention window,
refs/pull/*):CancelTest_HttpClient_LoopbackCancelTest_SharedHandler_LoopbackCancelTest_Invoker_LoopbackSo roughly a 0.02% hit rate, matching what Build Analysis reports. The two
HttpClient_Loopbackhits are on unrelated PRs (#131177 and #131401), which is consistent with infrastructure/timing flakiness rather than a product regression. The originalSharedHandler_Loopbackhit that opened this issue was on 2026-07-09 and has not recurred since.Note
This comment and the issue body update were generated by GitHub Copilot on behalf of @lewing.
JulieLeeMSFT commentedon Aug 4, 2026
Failed in: runtime-coreclr libraries-jitstressregs/20260804.1
JulieLeeMSFT commentedon Aug 5, 2026
@wfurt, this test is blocking the libraries-jitstressregs pipeline from getting green. As we wait for a fix in the future, can you please disable the test?
wfurt commentedon Aug 6, 2026
is there way how to identify hit stress runs? You can make the test conditional if you want to. Any more thoughts on this @karelz?
JulieLeeMSFT commentedon Aug 6, 2026
If you look at the report above, it's also failing daily in runtime pipeline for PR runs.
JulieLeeMSFT commentedon Sep 1, 2026
Failed in (2):
Failed tests:
Stabilize ConnectAsync_Cancel_ThrowsCancellationException loopback te…
Fix ManagedWebSocket send cancellation leaving state Open (#133199)
Fix ManagedWebSocket send cancellation leaving state Open (dotnet#133199