runtime icon indicating copy to clipboard operation
runtime copied to clipboard

browser-Release-wasm-Mono_Release-WasmTestOnChrome fails with WebSocketException

Open kunalspathak opened this issue 1 year ago • 1 comments

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=657270 Build error leg or test failing: WasmTestOnChrome-MT-System.Net.Http.Functional.Tests.WorkItemExecution Pull request: https://github.com/dotnet/runtime/pull/101188

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "The remote party closed the WebSocket connection without completing the close handshake",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=657270 Error message validated: [The remote party closed the WebSocket connection without completing the close handshake] Result validation: :white_check_mark: Known issue matched with the provided build. Validation performed at: 4/26/2024 6:13:23 PM UTC

Report

Build Definition Test Pull Request
724917 dotnet/runtime WasmTestOnFirefox-MT-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution dotnet/runtime#104195
724846 dotnet/runtime WasmTestOnFirefox-MT-System.Net.Http.Functional.Tests.WorkItemExecution
724838 dotnet/runtime WasmTestOnFirefox-MT-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#104103
724783 dotnet/runtime WasmTestOnFirefox-MT-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#103837
724651 dotnet/runtime WasmTestOnFirefox-MT-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution dotnet/runtime#104173
723925 dotnet/runtime WasmTestOnChrome-MT-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#103636
721823 dotnet/runtime WasmTestOnFirefox-MT-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#104002
719703 dotnet/runtime WasmTestOnFirefox-MT-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#103959
719390 dotnet/runtime WasmTestOnFirefox-MT-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#103881
719296 dotnet/runtime WasmTestOnChrome-MT-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#103915
717653 dotnet/runtime WasmTestOnFirefox-MT-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#103852
716848 dotnet/runtime WasmTestOnFirefox-MT-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution dotnet/runtime#103574
716673 dotnet/runtime WasmTestOnFirefox-MT-System.Net.Http.Functional.Tests.WorkItemExecution
716206 dotnet/runtime WasmTestOnFirefox-MT-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#103769
710580 dotnet/runtime WasmTestOnFirefox-MT-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#103591
708125 dotnet/runtime System.Net.WebSockets.Client.Tests.HttpClientDeflateTests.SendHelloWithDisableCompression dotnet/runtime#102403
707877 dotnet/runtime WasmTestOnFirefox-MT-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution dotnet/runtime#103413
707489 dotnet/runtime System.Net.WebSockets.Client.Tests.InvokerDeflateTests.SendHelloWithDisableCompression dotnet/runtime#102403
707300 dotnet/runtime System.Net.WebSockets.Tests.WebSocketDeflateTests.Duplex dotnet/runtime#102403
707106 dotnet/runtime System.Net.WebSockets.Client.Tests.HttpClientDeflateTests.SendHelloWithDisableCompression dotnet/runtime#102403
707003 dotnet/runtime WasmTestOnFirefox-MT-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution dotnet/runtime#103436
706105 dotnet/runtime System.Net.WebSockets.Client.Tests.HttpClientDeflateTests.SendHelloWithDisableCompression dotnet/runtime#102403
705694 dotnet/runtime WasmTestOnFirefox-MT-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#97589
704641 dotnet/runtime System.Net.WebSockets.Tests.WebSocketDeflateTests.Duplex dotnet/runtime#102403
704074 dotnet/runtime System.Net.WebSockets.Client.Tests.InvokerDeflateTests.SendHelloWithDisableCompression dotnet/runtime#102403
703569 dotnet/runtime WasmTestOnChrome-MT-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#103273
703399 dotnet/runtime WasmTestOnChrome-MT-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#103272
703393 dotnet/runtime WasmTestOnFirefox-MT-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#103271
703028 dotnet/runtime WasmTestOnChrome-MT-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#103248
701926 dotnet/runtime WasmTestOnChrome-MT-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#103214
701336 dotnet/runtime WasmTestOnFirefox-MT-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#103195
700096 dotnet/runtime System.Net.WebSockets.Client.Tests.InvokerDeflateTests.SendHelloWithDisableCompression dotnet/runtime#102403
699524 dotnet/runtime WasmTestOnFirefox-MT-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#101172
698455 dotnet/runtime WasmTestOnFirefox-MT-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#102379
694372 dotnet/runtime WasmTestOnFirefox-MT-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#102909
693061 dotnet/runtime WasmTestOnFirefox-MT-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#102699

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
5 11 36

kunalspathak avatar Apr 26 '24 18:04 kunalspathak

Tagging subscribers to this area: @dotnet/ncl See info in area-owners.md if you want to be subscribed.

This is complaint by the xharness which is hosting the web server. It doesn't mean that the test failed. It's probably caused by WebWorker being killed while the web-socket which is shipping console log is still open.

I think we should just silence the xharness WasmBrowserTestRunner.RunConsoleMessagesPump is such case or make it just warning.

fail: Microsoft.AspNetCore.Server.Kestrel[13]
      Connection id "0HN4RQAG12KRC", Request id "0HN4RQAG12KRC:00000001": An unhandled exception was thrown by the application.
      System.Net.WebSockets.WebSocketException (2): The remote party closed the WebSocket connection without completing the close handshake.
         at System.Net.WebSockets.ManagedWebSocket.ThrowEOFUnexpected()
         at System.Net.WebSockets.ManagedWebSocket.EnsureBufferContainsAsync(Int32 minimumRequiredBytes, CancellationToken cancellationToken)
         at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
         at System.Net.WebSockets.ManagedWebSocket.ReceiveAsyncPrivate[TResult](Memory`1 payloadBuffer, CancellationToken cancellationToken)
         at System.Net.WebSockets.ManagedWebSocket.ReceiveAsyncPrivate[TResult](Memory`1 payloadBuffer, CancellationToken cancellationToken)
         at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
         at System.Threading.Tasks.ValueTask`1.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)
      --- End of stack trace from previous location ---
         at Microsoft.DotNet.XHarness.CLI.Commands.Wasm.WasmBrowserTestRunner.RunConsoleMessagesPump(WebSocket socket, CancellationToken token) in /_/src/Microsoft.DotNet.XHarness.CLI/Commands/WASM/Browser/WasmBrowserTestRunner.cs:line 174
         at Microsoft.DotNet.XHarness.CLI.Commands.WebServer.TestWebServerStartup.<>c__DisplayClass3_0.<<Configure>b__2>d.MoveNext() in /_/src/Microsoft.DotNet.XHarness.CLI/Commands/WebServer.cs:line 174
      --- End of stack trace from previous location ---
         at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)
         at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)

pavelsavara avatar Jul 04 '24 12:07 pavelsavara

No failures after the fix: https://github.com/dotnet/xharness/pull/1231.

ilonatommy avatar Aug 26 '24 07:08 ilonatommy