dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.36k stars 4.75k forks source link

System.Net.Quic.Tests.MsQuicTests.WriteTests failed with "System.Net.Quic.QuicException : The connection timed out from inactivity." #105177

Open jakobbotsch opened 3 months ago

jakobbotsch commented 3 months ago

E.g.

    System.Net.Quic.Tests.MsQuicTests.WriteTests(writes: [[1000004, 1], [1, 15003], [1000004, 1000004], [15003, 15003], [1, 502]]) [FAIL]
      System.Net.Quic.QuicException : The connection timed out from inactivity.
      Stack Trace:
        /_/src/libraries/System.Net.Quic/src/System/Net/Quic/QuicConnection.cs(630,0): at System.Net.Quic.QuicConnection.HandleEventShutdownInitiatedByTransport(_SHUTDOWN_INITIATED_BY_TRANSPORT_e__Struct& data)
        /_/src/libraries/System.Net.Quic/src/System/Net/Quic/QuicConnection.cs(732,0): at System.Net.Quic.QuicConnection.HandleConnectionEvent(QUIC_CONNECTION_EVENT& connectionEvent)
        /_/src/libraries/System.Net.Quic/src/System/Net/Quic/QuicConnection.cs(767,0): at System.Net.Quic.QuicConnection.NativeCallback(QUIC_HANDLE* connection, Void* context, QUIC_CONNECTION_EVENT* connectionEvent)
        --- End of stack trace from previous location ---
        /_/src/libraries/System.Net.Quic/src/System/Net/Quic/QuicConnection.cs(561,0): at System.Net.Quic.QuicConnection.AcceptInboundStreamAsync(CancellationToken cancellationToken)
        /_/src/libraries/System.Net.Quic/tests/FunctionalTests/MsQuicTests.cs(1029,0): at System.Net.Quic.Tests.MsQuicTests.<>c__DisplayClass23_0.<<WriteTests>b__1>d.MoveNext()
        --- End of stack trace from previous location ---
        /_/src/libraries/System.Net.Quic/tests/FunctionalTests/QuicTestBase.cs(295,0): at System.Net.Quic.Tests.QuicTestBase.<>c__DisplayClass39_1.<<RunClientServer>b__0>d.MoveNext()
        --- End of stack trace from previous location ---
        /_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs(120,0): at System.Threading.Tasks.TaskTimeoutExtensions.GetRealException(Task task)
        --- End of stack trace from previous location ---
        /_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs(90,0): at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks)
        /_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs(55,0): at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks, Int32 millisecondsTimeout)
        /_/src/libraries/System.Net.Quic/tests/FunctionalTests/QuicTestBase.cs(291,0): at System.Net.Quic.Tests.QuicTestBase.RunClientServer(Func`2 clientFunction, Func`2 serverFunction, Int32 iterations, Int32 millisecondsTimeout, QuicListenerOptions listenerOptions)
        /_/src/libraries/System.Net.Quic/tests/FunctionalTests/QuicTestBase.cs(322,0): at System.Net.Quic.Tests.QuicTestBase.RunClientServer(Func`2 clientFunction, Func`2 serverFunction, Int32 iterations, Int32 millisecondsTimeout, QuicListenerOptions listenerOptions)
        /_/src/libraries/System.Net.Quic/tests/FunctionalTests/QuicTestBase.cs(322,0): at System.Net.Quic.Tests.QuicTestBase.RunClientServer(Func`2 clientFunction, Func`2 serverFunction, Int32 iterations, Int32 millisecondsTimeout, QuicListenerOptions listenerOptions)
        /_/src/libraries/System.Net.Quic/tests/FunctionalTests/QuicTestBase.cs(285,0): at System.Net.Quic.Tests.QuicTestBase.RunClientServer(Func`2 clientFunction, Func`2 serverFunction, Int32 iterations, Int32 millisecondsTimeout, QuicListenerOptions listenerOptions)
        /_/src/libraries/System.Net.Quic/tests/FunctionalTests/MsQuicTests.cs(1012,0): at System.Net.Quic.Tests.MsQuicTests.WriteTests(Int32[][] writes)
        --- End of stack trace from previous location ---

Console log: https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-105169-merge-e8c1f9b799044b5882/System.Net.Quic.Functional.Tests/1/console.64747ae3.log?helixlogtype=result

Looks like we had a known failure #91757 before, but it was closed yesterday with #105109, cc @liveans. Note that the failure I saw here is on osx-x64, not arm32.

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=748550 Build error leg or test failing: System.Net.Quic.Tests.MsQuicTests.WriteTests Pull request: https://github.com/dotnet/runtime/pull/105169

Error Message

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

{
  "ErrorMessage": "System.Net.Quic.QuicException : The connection timed out from inactivity",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=748550 Error message validated: [System.Net.Quic.QuicException : The connection timed out from inactivity] Result validation: :x: Known issue did not match with the provided build. Validation performed at: 7/20/2024 10:17:43 AM UTC

Report

Build Definition Test Pull Request
869790 dotnet/runtime System.Net.Quic.Tests.MsQuicTests.CertificateCallbackThrowPropagates dotnet/runtime#109819
869504 dotnet/runtime System.Net.Quic.Tests.MsQuicTests.CertificateCallbackThrowPropagates dotnet/runtime#109806
869412 dotnet/runtime System.Net.Quic.Tests.MsQuicTests.CertificateCallbackThrowPropagates dotnet/runtime#109731
868368 dotnet/runtime System.Net.Quic.Tests.MsQuicTests.CertificateCallbackThrowPropagates dotnet/runtime#109758
867413 dotnet/runtime System.Net.Http.Functional.Tests.SocksProxyTest_Http1_Async.TestLoopbackAsync
865986 dotnet/runtime System.Net.Quic.Tests.MsQuicTests.CertificateCallbackThrowPropagates dotnet/runtime#109684
864857 dotnet/runtime System.Net.Quic.Tests.MsQuicTests.CertificateCallbackThrowPropagates dotnet/runtime#109645
864584 dotnet/runtime System.Net.Quic.Tests.MsQuicTests.CertificateCallbackThrowPropagates dotnet/runtime#108559
864578 dotnet/runtime System.Net.Quic.Tests.MsQuicTests.CertificateCallbackThrowPropagates dotnet/runtime#109634
864308 dotnet/runtime System.Net.Quic.Tests.MsQuicTests.CertificateCallbackThrowPropagates dotnet/runtime#109631
863462 dotnet/runtime System.Net.Quic.Tests.MsQuicTests.CertificateCallbackThrowPropagates dotnet/runtime#109232
862543 dotnet/runtime System.Net.Quic.Tests.MsQuicTests.CertificateCallbackThrowPropagates dotnet/runtime#109580
861286 dotnet/runtime System.Net.Quic.Tests.MsQuicTests.CertificateCallbackThrowPropagates dotnet/runtime#109438
858680 dotnet/runtime System.Net.Quic.Tests.MsQuicTests.CertificateCallbackThrowPropagates dotnet/runtime#109454
856866 dotnet/runtime System.Net.Quic.Tests.MsQuicTests.CertificateCallbackThrowPropagates dotnet/runtime#109380
856598 dotnet/runtime System.Net.Quic.Tests.MsQuicTests.CertificateCallbackThrowPropagates dotnet/runtime#109357
854234 dotnet/runtime System.Net.Quic.Tests.MsQuicTests.CertificateCallbackThrowPropagates dotnet/runtime#109221
849336 dotnet/runtime System.Net.Quic.Tests.MsQuicTests.CertificateCallbackThrowPropagates dotnet/runtime#109030

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 6 18
dotnet-policy-service[bot] commented 3 months ago

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

liveans commented 3 months ago

Related to #103482