#134170·runtime

[ci-scan] Test failure: System.Net.WebSockets.Client.Tests SendAsync_Cancel_Success under JIT stress

Author: github-actions[bot]Created Sep 18, 2026Updated Sep 18, 2026
Labelsarea-System.Netuntriagedblocking-clean-ci-optionalKnown Build Erroragentic-workflows

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1584280 Build error leg or test failing: linux-x64 Release (libraries-jitstress2-jitstressregs)-System.Net.WebSockets.Client.Tests.CancelTest.SendAsync_Cancel_Success

KBE authoring guidance (ci-failure-scan)
  • Error Details is for readers. Paste the full exception, stack trace, or build error excerpt so the failure is understandable without opening the raw log.
  • Build Analysis parses only the single JSON block under Error Message.
  • ErrorMessage is a case-sensitive ordinal String.Contains substring copied verbatim from the failing log.
  • Set BuildRetry to true only for a clear infrastructure retry case. ExcludeConsoleLog disables Helix console-log scanning.

Error Details

System.Net.WebSockets.Client.Tests SendAsync_Cancel_Success(useSsl: False) fails under JIT stress: the client web socket is still Open when the send is cancelled, and the send frame throws TaskCanceledException. Observed on the libraries-jitstress2-jitstressregs pipeline (definition 119) across builds 1584280 and 1594069 on main, on both the HttpClient_Http2Loopback and Invoker_Loopback cancellation test classes.

System.Net.WebSockets.Client.Tests.CancelTest_HttpClient_Http2Loopback.SendAsync_Cancel_Success(useSsl: False) [FAIL]
  Actual Open when System.Threading.Tasks.TaskCanceledException: A task was canceled.
     at System.Net.WebSockets.ManagedWebSocket.SendFrameFallbackAsync(MessageOpcode opcode, Boolean endOfMessage, Boolean disableCompression, ReadOnlyMemory`1 payloadBuffer, Task lockTask, CancellationToken cancellationToken) in /src/libraries/System.Net.WebSockets/src/System/Net/WebSockets/ManagedWebSocket.cs:line 602
     at System.Net.WebSockets.Client.Tests.ClientWebSocketTestBase.TestCancellation(Func`2 action, Uri server) in /src/libraries/System.Net.WebSockets.Client/tests/ClientWebSocketTestBase.cs:line 74
  Stack Trace:
    at System.Net.WebSockets.Client.Tests.CancelTestBase.RunClient_SendAsync_Cancel_Success(Uri server)

Error Message

json
{
  "ErrorMessage": [
    "SendAsync_Cancel_Success(useSsl: False) [FAIL]",
    "Actual Open when System.Threading.Tasks.TaskCanceledException: A task was canceled."
  ],
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}
Agentic workflow metadata (ci-failure-scan)

Workflow artifact: ci-failure-scan Artifact kind: kbe-verification Verified match count: 1 hits in failure.log


Filed by ci-failure-scan (detection only). ci-failure-fix walks open [ci-scan] KBEs and either opens a small fix PR or comments here to loop in owners — it never disables the test.

[!NOTE] This issue was filed by an AI agent (GitHub Copilot / ci-failure-scan).

Generated by CI Outer-Loop Failure Scanner · opus48 · 997.5 AIC · ⌖ 14.6 AIC · ⊞ 19.2K ·

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0