aspnet / MusicStore

[Archived] MusicStore test application that uses ASP.NET/EF Core. Project moved to https://github.com/aspnet/AspNetCore
1.3k stars 878 forks source link

Test failure: PublishAndRun_Test #868

Closed aspnet-hello closed 6 years ago

aspnet-hello commented 6 years ago

This test fails occasionally with the following error:

System.Net.Http.HttpRequestException : An error occurred while sending the request.
---- System.IO.IOException : Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
-------- System.Net.Sockets.SocketException : An existing connection was forcibly closed by the remote host
   at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.AuthenticationHelper.SendWithNtAuthAsync(HttpRequestMessage request, Uri authUri, ICredentials credentials, Boolean isProxyAuth, HttpConnection connection, HttpConnectionPool connectionPool, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithNtConnectionAuthAsync(HttpConnection connection, HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Server.IntegrationTesting.LoggingHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
   at Microsoft.AspNetCore.Server.IntegrationTesting.RetryHelper.RetryRequest(Func`1 retryBlock, ILogger logger, CancellationToken cancellationToken, Int32 retryCount)
   at Microsoft.AspNetCore.Server.IntegrationTesting.RetryHelper.RetryRequest(Func`1 retryBlock, ILogger logger, CancellationToken cancellationToken, Int32 retryCount)
   at E2ETests.PublishAndRunTests.PublishAndRun_Test(TestVariant variant) in C:\BuildAgent\work\33bdfc1cae7b2a38\modules\MusicStore\test\MusicStore.E2ETests\PublishAndRunTests.cs:line 99
--- End of stack trace from previous location where exception was thrown ---
----- Inner Stack Trace -----
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.GetResult(Int16 token)
   at System.Net.Http.HttpConnection.FillAsync()
   at System.Net.Http.HttpConnection.ReadNextResponseHeaderLineAsync(Boolean foldedHeadersAllowed)
   at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
----- Inner Stack Trace -----
------- Stdout: -------
| [0.001s] TestLifetime Information: Starting test PublishAndRun_Test-Server: Kestrel, TFM: net461, Type: Standalone, Arch: x86 at 2018-09-20T19:32:20
| [0.001s] TestLifetime Information: Starting test PublishAndRunTests_Server: Kestrel, TFM: net461, Type: Standalone, Arch: x86 at 2018-09-20T19:32:20
| [0.001s] Microsoft.AspNetCore.Server.IntegrationTesting.SelfHostDeployer Information: Deploying [Variation] :: ServerType=Kestrel, Runtime=Clr, Arch=x86, BaseUrlHint=, Publish=True
| [0.002s] Microsoft.AspNetCore.Server.IntegrationTesting.SelfHostDeployer Information: Executing command dotnet publish  --output "C:\BuildAgent\temp\buildTmp\8149ef4bde60406596d1f7fbb79f7541" --framework net461 --configuration Release --no-restore -p:VerifyMatchingImplicitPackageVersion=false --runtime win7-x86 
| [0.234s] Microsoft.AspNetCore.Server.IntegrationTesting.SelfHostDeployer Information: dotnet-publish stdout: Microsoft (R) Build Engine version 15.8.166+gd4e8d81a88 for .NET Core
| [0.234s] Microsoft.AspNetCore.Server.IntegrationTesting.SelfHostDeployer Information: dotnet-publish stdout: Copyright (C) Microsoft Corporation. All rights reserved.
| [1.379s] Microsoft.AspNetCore.Server.IntegrationTesting.SelfHostDeployer Information: dotnet-publish stdout:   MusicStore -> C:\BuildAgent\work\33bdfc1cae7b2a38\modules\MusicStore\samples\MusicStore\bin\Release\net461\win7-x86\MusicStore.exe
| [1.385s] Microsoft.AspNetCore.Server.IntegrationTesting.SelfHostDeployer Information: dotnet-publish stdout:   MusicStore -> C:\BuildAgent\work\33bdfc1cae7b2a38\modules\MusicStore\samples\MusicStore\bin\Release\net461\win7-x86\MusicStore.Views.dll
| [2.265s] Microsoft.AspNetCore.Server.IntegrationTesting.SelfHostDeployer Information: dotnet-publish stdout:   MusicStore -> C:\BuildAgent\temp\buildTmp\8149ef4bde60406596d1f7fbb79f7541\
| [2.319s] Microsoft.AspNetCore.Server.IntegrationTesting.SelfHostDeployer Information: dotnet publish finished with exit code : 0
| [2.319s] Microsoft.AspNetCore.Server.IntegrationTesting.SelfHostDeployer Information: Executing C:\BuildAgent\temp\buildTmp\8149ef4bde60406596d1f7fbb79f7541\MusicStore.exe  --urls http://127.0.0.1:0/ --server Microsoft.AspNetCore.Server.Kestrel
| [2.319s] Microsoft.AspNetCore.Server.IntegrationTesting.SelfHostDeployer Information: Removing environment variable ASPNETCORE_ENVIRONMENT
| [2.319s] Microsoft.AspNetCore.Server.IntegrationTesting.SelfHostDeployer Information: SET ASPNETCORE_DETAILEDERRORS=true
| [2.319s] Microsoft.AspNetCore.Server.IntegrationTesting.SelfHostDeployer Information: SET Data__DefaultConnection__ConnectionString=Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=MusicStore_Test_105eb43764654e468242cd7cb511a4d4;Integrated Security=True;MultipleActiveResultSets=True;Connect Timeout=30
| [2.335s] Microsoft.AspNetCore.Server.IntegrationTesting.SelfHostDeployer Information: Started C:\BuildAgent\temp\buildTmp\8149ef4bde60406596d1f7fbb79f7541\MusicStore.exe. Process Id : 12556
| [8.433s] Microsoft.AspNetCore.Server.IntegrationTesting.SelfHostDeployer Information: C:\BuildAgent\temp\buildTmp\8149ef4bde60406596d1f7fbb79f7541\MusicSt
...

Other tests within that build may have failed with a similar message, but they are not listed here. Check the link above for more info.

This test failed on master.

CC @mkArtakMSFT

This issue was made automatically. If there is a problem contact ryanbrandenburg.

aspnet-hello commented 6 years ago

Please use this workflow to address this flaky test issue, including checking applicable checkboxes and filling in the applicable "TODO" entries:

This comment was made automatically. If there is a problem contact ryanbrandenburg.

aspnet-hello commented 6 years ago

PublishAndRun_Test failed with about the same error on master. Smoke_Tests failed with about the same error on master. PublishAndRun_Test failed with about the same error on master. PublishAndRun_Test failed with about the same error on master. PublishAndRun_Test failed with about the same error on master. PublishAndRun_Test failed with about the same error on master. PublishAndRun_Test failed with about the same error on master. OpenIdConnectTestSuite failed with about the same error on master. PublishAndRun_Test failed with about the same error on master.

This comment was made automatically. If there is a problem contact ryanbrandenburg.

mkArtakMSFT commented 6 years ago

@pranavkm, can you please take a look at this? Thanks!

pranavkm commented 6 years ago

Seems like a Kestrel thing:

 System.IO.FileLoadException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
 File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
    at System.Memory`1.op_Implicit(Memory`1 memory)
    at System.IO.Pipelines.BufferSegment.set_End(Int32 value)
    at System.IO.Pipelines.BufferSegment.SetMemory(IMemoryOwner`1 memoryOwner, Int32 start, Int32 end, Boolean readOnly)
    at System.IO.Pipelines.Pipe.AllocateWriteHeadUnsynchronized(Int32 sizeHint)
    at System.IO.Pipelines.Pipe.GetMemory(Int32 sizeHint)
    at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.Internal.SocketConnection.<ProcessReceives>d__27.MoveNext()

Did we pick up a bad package?

aspnet-hello commented 6 years ago

DotnetRun_Tests failed with about the same error on master. OpenIdConnectTestSuite failed with about the same error on master. PublishAndRun_Test failed with about the same error on master. PublishAndRun_Test failed with about the same error on master. PublishAndRun_Test failed with about the same error on master. PublishAndRun_Test failed with about the same error on master. DotnetRun_Tests failed with about the same error on master. PublishAndRun_Test failed with about the same error on master. PublishAndRun_Test failed with about the same error on master. Smoke_Tests failed with about the same error on master. PublishAndRun_Test failed with about the same error on master. PublishAndRun_Test failed with about the same error on master. PublishAndRun_Test failed with about the same error on master. PublishAndRun_Test failed with about the same error on master. OpenIdConnectTestSuite failed with about the same error on master.

This comment was made automatically. If there is a problem contact ryanbrandenburg. There were 8 failures with about the same error on master: DotnetRun_Tests PublishAndRun_Test PublishAndRun_Test

ryanbrandenburg commented 6 years ago

This is the same issue as aspnet/Home#3544.

aspnet-hello commented 6 years ago

There were 8 failures with about the same error on master:

This comment was made automatically. If there is a problem contact ryanbrandenburg. There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

aspnet-hello commented 6 years ago

There were 8 failures with about the same error on master:

This comment was made automatically. If there is a problem contact ryanbrandenburg. There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

aspnet-hello commented 6 years ago

There were 8 failures with about the same error on master:

This comment was made automatically. If there is a problem contact ryanbrandenburg. There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

aspnet-hello commented 6 years ago

There were 8 failures with about the same error on master:

This comment was made automatically. If there is a problem contact ryanbrandenburg. There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

aspnet-hello commented 6 years ago

There were 8 failures with about the same error on master:

This comment was made automatically. If there is a problem contact ryanbrandenburg. There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

There were 8 failures with about the same error on master:

pranavkm commented 6 years ago

Fixed by resolution for https://github.com/aspnet/Home/issues/3544