Open bernardnormier opened 1 month ago
Happening with CI VMs too
Tests triggered 2 unobserved task exceptions [/home/runner/work/icerpc-csharp/icerpc-csharp/tests/IceRpc.Quic.Tests/IceRpc.Quic.Tests.csproj::TargetFramework=net9.0]
[/home/runner/work/icerpc-csharp/icerpc-csharp/tests/IceRpc.Quic.Tests/IceRpc.Quic.Tests.csproj::TargetFramework=net9.0]
+++ Unobserved task exception System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[System.IO.Pipelines.ReadResult,IceRpc.Transports.Quic.Internal.QuicPipeReader+<ReadAsync>d__11]: [/home/runner/work/icerpc-csharp/icerpc-csharp/tests/IceRpc.Quic.Tests/IceRpc.Quic.Tests.csproj::TargetFramework=net9.0]
IceRpc.IceRpcException: An IceRpc call failed with error 'OperationAborted'. [/home/runner/work/icerpc-csharp/icerpc-csharp/tests/IceRpc.Quic.Tests/IceRpc.Quic.Tests.csproj::TargetFramework=net9.0]
---> System.Net.Quic.QuicException: Operation aborted. [/home/runner/work/icerpc-csharp/icerpc-csharp/tests/IceRpc.Quic.Tests/IceRpc.Quic.Tests.csproj::TargetFramework=net9.0]
at System.Net.Quic.ResettableValueTaskSource.TryComplete(Exception exception, Boolean final) [/home/runner/work/icerpc-csharp/icerpc-csharp/tests/IceRpc.Quic.Tests/IceRpc.Quic.Tests.csproj::TargetFramework=net9.0]
at System.Net.Quic.QuicStream.HandleEventShutdownComplete(_SHUTDOWN_COMPLETE_e__Struct& data) [/home/runner/work/icerpc-csharp/icerpc-csharp/tests/IceRpc.Quic.Tests/IceRpc.Quic.Tests.csproj::TargetFramework=net9.0]
at System.Net.Quic.QuicStream.HandleStreamEvent(QUIC_STREAM_EVENT& streamEvent) [/home/runner/work/icerpc-csharp/icerpc-csharp/tests/IceRpc.Quic.Tests/IceRpc.Quic.Tests.csproj::TargetFramework=net9.0]
at System.Net.Quic.QuicStream.NativeCallback(QUIC_HANDLE* stream, Void* context, QUIC_STREAM_EVENT* streamEvent) [/home/runner/work/icerpc-csharp/icerpc-csharp/tests/IceRpc.Quic.Tests/IceRpc.Quic.Tests.csproj::TargetFramework=net9.0]
--- End of stack trace from previous location --- [/home/runner/work/icerpc-csharp/icerpc-csharp/tests/IceRpc.Quic.Tests/IceRpc.Quic.Tests.csproj::TargetFramework=net9.0]
at IceRpc.Transports.Quic.Internal.QuicPipeWriter.<.ctor>g__ClosedAsync|21_0() in /_/src/IceRpc.Transports.Quic/Internal/QuicPipeWriter.cs:line 226 [/home/runner/work/icerpc-csharp/icerpc-csharp/tests/IceRpc.Quic.Tests/IceRpc.Quic.Tests.csproj::TargetFramework=net9.0]
--- End of inner exception stack trace --- [/home/runner/work/icerpc-csharp/icerpc-csharp/tests/IceRpc.Quic.Tests/IceRpc.Quic.Tests.csproj::TargetFramework=net9.0]
at IceRpc.Transports.Quic.Internal.QuicPipeReader.ReadAsync(CancellationToken cancellationToken) in /_/src/IceRpc.Transports.Quic/Internal/QuicPipeReader.cs:line 97 [/home/runner/work/icerpc-csharp/icerpc-csharp/tests/IceRpc.Quic.Tests/IceRpc.Quic.Tests.csproj::TargetFramework=net9.0]
[/home/runner/work/icerpc-csharp/icerpc-csharp/tests/IceRpc.Quic.Tests/IceRpc.Quic.Tests.csproj::TargetFramework=net9.0]
+++ Unobserved task exception System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[IceRpc.Transports.IMultiplexedStream,IceRpc.Transports.Quic.Internal.QuicMultiplexedConnection+<CreateStreamAsync>d__9]: [/home/runner/work/icerpc-csharp/icerpc-csharp/tests/IceRpc.Quic.Tests/IceRpc.Quic.Tests.csproj::TargetFramework=net9.0]
System.ObjectDisposedException: Cannot access a disposed object. [/home/runner/work/icerpc-csharp/icerpc-csharp/tests/IceRpc.Quic.Tests/IceRpc.Quic.Tests.csproj::TargetFramework=net9.0]
Object name: 'System.Net.Quic.QuicConnection'. [/home/runner/work/icerpc-csharp/icerpc-csharp/tests/IceRpc.Quic.Tests/IceRpc.Quic.Tests.csproj::TargetFramework=net9.0]
at System.Net.Quic.QuicConnection.OpenOutboundStreamAsync(QuicStreamType type, CancellationToken cancellationToken) [/home/runner/work/icerpc-csharp/icerpc-csharp/tests/IceRpc.Quic.Tests/IceRpc.Quic.Tests.csproj::TargetFramework=net9.0]
at IceRpc.Transports.Quic.Internal.QuicMultiplexedConnection.CreateStreamAsync(Boolean bidirectional, CancellationToken cancellationToken) in /_/src/IceRpc.Transports.Quic/Internal/QuicMultiplexedConnection.cs:line 80 [/home/runner/work/icerpc-csharp/icerpc-csharp/tests/IceRpc.Quic.Tests/IceRpc.Quic.Tests.csproj::TargetFramework=net9.0]
Seems the failing tests are related to behavior changed in .NET QUIC see https://github.com/dotnet/runtime/pull/92215
[Ignore("TODO: Fix https://github.com/icerpc/icerpc-csharp/issues/3990")]
public async Task Connection_dispose_aborts_pending_operations_with_operation_aborted_error()
[Ignore("TODO: Fix https://github.com/icerpc/icerpc-csharp/issues/3990")]
public async Task Call_accept_on_a_listener_and_then_dispose_it_fails_with_operation_aborted_error()
Once this is fixes, we should enable these two tests disabled in https://github.com/icerpc/icerpc-csharp/commit/904acb031926a4fb2da7969b5c4d4a1328d56943
I am getting the following errors in the dev container: