dotnet / aspire

An opinionated, cloud ready stack for building observable, production ready, distributed applications in .NET
https://learn.microsoft.com/dotnet/aspire
MIT License
3.74k stars 432 forks source link

Failing test `Aspire.Hosting.Tests.DistributedApplicationTests.TestServicesWithMultipleReplicas` #4651

Open radical opened 3 months ago

radical commented 3 months ago

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=719871 Build error leg or test failing: Aspire.Hosting.Tests.DistributedApplicationTests.TestServicesWithMultipleReplicas Pull request: https://github.com/dotnet/aspire.git/pull/4645

System.Net.Http.HttpRequestException : An error occurred while sending the request.
---- System.IO.IOException : Unable to read data from the transport connection: Connection reset by peer.
-------- System.Net.Sockets.SocketException : Connection reset by peer

   at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.GetStringAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
   at Aspire.Hosting.Tests.DistributedApplicationTests.TestServicesWithMultipleReplicas() in /_/tests/Aspire.Hosting.Tests/DistributedApplicationTests.cs:line 191
   at Aspire.Hosting.Tests.DistributedApplicationTests.TestServicesWithMultipleReplicas() in /_/tests/Aspire.Hosting.Tests/DistributedApplicationTests.cs:line 221
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
   at System.Net.Http.HttpConnection.InitialFillAsync(Boolean async)
   at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
----- Inner Stack Trace -----

cc @mitchdenny

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0
davidebbo commented 1 week ago

It would be good to try to re-enable some of these tests, to prevent situations like https://github.com/dotnet/aspire/issues/5898.

This issue title just says TestServicesWithMultipleReplicas, but there are 19 tests in DistributedApplicationTests that are CI disabled and pointing to this issue.