aspnet / ServerTests

[Archived] Tests for Helios, WebListener and Kestrel. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
21 stars 13 forks source link

Test failure: ResponseCompression_AppAndHostCompression #146

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.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.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 ServerComparison.FunctionalTests.ResponseCompressionTests.ResponseCompression(TestVariant variant, Func`3 scenario, Boolean hostCompression, String testName) in /_/test/ServerComparison.FunctionalTests/ResponseCompressionTests.cs:line 142
--- 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 ResponseCompression_AppAndHostCompression-Server: Kestrel, TFM: net461, Type: Standalone, Arch: x64 at 2018-09-20T18:46:14
| [0.001s] TestLifetime Information: Starting test ResponseCompression_AppAndHostCompression_Kestrel_net461_x64_Standalone at 2018-09-20T18:46:14
| [0.001s] Microsoft.AspNetCore.Server.IntegrationTesting.SelfHostDeployer Information: Deploying [Variation] :: ServerType=Kestrel, Runtime=Clr, Arch=x64, BaseUrlHint=, Publish=False
| [0.001s] Microsoft.AspNetCore.Server.IntegrationTesting.SelfHostDeployer Information: Executing C:\BuildAgent\work\33bdfc1cae7b2a38\modules\ServerTests\test\ServerComparison.TestSites\bin\Release\net461\ServerComparison.TestSites.exe  --urls http://127.0.0.1:0/ --server Microsoft.AspNetCore.Server.Kestrel
| [0.002s] Microsoft.AspNetCore.Server.IntegrationTesting.SelfHostDeployer Information: SET ASPNETCORE_ENVIRONMENT=ResponseCompression
| [0.002s] Microsoft.AspNetCore.Server.IntegrationTesting.SelfHostDeployer Information: SET ASPNETCORE_DETAILEDERRORS=true
| [0.002s] Microsoft.AspNetCore.Server.IntegrationTesting.SelfHostDeployer Information: SET ASPNETCORE_CONTENTROOT=C:\BuildAgent\work\33bdfc1cae7b2a38\modules\ServerTests\test\ServerComparison.TestSites
| [0.003s] Microsoft.AspNetCore.Server.IntegrationTesting.SelfHostDeployer Information: Started C:\BuildAgent\work\33bdfc1cae7b2a38\modules\ServerTests\test\ServerComparison.TestSites\bin\Release\net461\ServerComparison.TestSites.exe. Process Id : 7448
| [0.374s] Microsoft.AspNetCore.Server.IntegrationTesting.SelfHostDeployer Information: C:\BuildAgent\work\33bdfc1cae7b2a38\modules\ServerTests\test\ServerComparison.TestSites\bin\Release\net461\ServerComparison.TestSites.exe stdout: Hosting environment: ResponseCompression
| [0.374s] Microsoft.AspNetCore.Server.IntegrationTesting.SelfHostDeployer Information: C:\BuildAgent\work\33bdfc1cae7b2a38\modules\ServerTests\test\ServerComparison.TestSites\bin\Release\net461\ServerComparison.TestSites.exe stdout: Content root path: C:\BuildAgent\work\33bdfc1cae7b2a38\modules\ServerTests\test\ServerComparison.TestSites
| [0.374s] Microsoft.AspNetCore.Server.IntegrationTesting.SelfHostDeployer Information: C:\BuildAgent\work\33bdfc1cae7b2a38\modules\ServerTests\test\ServerComparison.TestSites\bin\Release\net461\ServerComparison.TestSites.exe stdout: Now listening on: http://127.0.0.1:54034
| [0.375s] Microsoft.AspNetCore.Server.IntegrationTesting.SelfHostDeployer Information: C:\BuildAgent\work\33bdfc1cae7b2a38\modules\ServerTests\test\ServerComparison.TestSites\bin\Release\net461\ServerComparison.TestSites.exe stdout: Application started. Press Ctrl+C to shut down.
| [0.375s] Microsoft.AspNetCore.Server.IntegrationTesting.SelfHostDeployer Information: Application ready at URL: http://127.0.0.1:54034/
| [0.375s] ResponseCompression Warning: Retry count 1..
| [0.503s] Microsoft.AspNetCore.Server.IntegrationTesting.SelfHostDeployer Information: C:\BuildAgent\work\33bdfc1cae7b2a38\modules\ServerTests\test\ServerComparison.TestSites\bin\Release\net461\ServerComparison.TestSites.exe stdout: info: Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets[14]
| [0.503s] Microsoft.AspNetCore.Server.IntegrationTesting.SelfHostDeployer Information: C:\BuildAgent\work\33bdfc1cae7b2a38\modules\ServerTests\test\ServerComparison.TestSites\bin\Release\net461\ServerComparison.TestSites.exe stdout:       Connection id "0HLGV55BUEB52" communication error.
| [0.503s] Microsoft.AspNetCore.Server.IntegrationTesting.SelfHostDeployer Information: C:\BuildAgent
...

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 @Eilon (because the bot doesn't know who else to pick)

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

HelloWorld failed with about the same error on master. ResponseCompression_AppCompression failed with about the same error on master. ResponseCompression_AppAndHostCompression failed with about the same error on master. ResponseCompression_AppCompression failed with about the same error on master. ResponseCompression_NoCompression failed with about the same error on master. ResponseCompression_NoCompression failed with about the same error on master. ResponseCompression_AppAndHostCompression failed with about the same error on master. ResponseCompression_AppAndHostCompression failed with about the same error on master. ResponseCompression_AppAndHostCompression failed with about the same error on master.

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

Eilon commented 6 years ago

@muratg can you assign?

aspnet-hello commented 6 years ago

HelloWorld failed with about the same error on master. HelloWorld failed with about the same error on master. ResponseCompression_AppAndHostCompression failed with about the same error on master. HelloWorld failed with about the same error on master. ResponseCompression_NoCompression failed with about the same error on master. HelloWorld failed with about the same error on master. HelloWorld failed with about the same error on master. ResponseCompression_NoCompression failed with about the same error on master. HelloWorld failed with about the same error on master. ResponseCompression_AppAndHostCompression failed with about the same error on master. ResponseCompression_AppAndHostCompression failed with about the same error on master. ResponseCompression_AppCompression failed with about the same error on master. ResponseCompression_AppAndHostCompression failed with about the same error on master. HelloWorld failed with about the same error on master. ResponseCompression_AppAndHostCompression failed with about the same error on master.

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

Tratcher commented 6 years ago

Same issue as elsewhere:

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)
| [0.666s] Microsoft.AspNetCore.Server.IntegrationTesting.SelfHostDeployer Information: C:\BuildAgent\work\33bdfc1cae7b2a38\modules\ServerTests\test\ServerComparison.TestSites\bin\Release\net461\ServerComparison.TestSites.exe stdout: File name: 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

https://github.com/aspnet/Home/issues/3544

aspnet-hello commented 6 years ago

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

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

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

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

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

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

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

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

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

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

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

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

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

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

aspnet-hello commented 6 years ago

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

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

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

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

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

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

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

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

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

muratg commented 6 years ago

Looks like this is ongoing. @Eilon @mkArtakMSFT is there someone who can look into Wes' recommendation here: https://github.com/aspnet/Home/issues/3544#issuecomment-423692971?

aspnet-hello commented 6 years ago

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

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

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

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

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

aspnet-hello commented 6 years ago

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

aspnet-hello commented 6 years ago

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

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

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

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

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

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

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

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

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

ryanbrandenburg commented 6 years ago

This was solved when @natemcmaster fixes aspnet/Home#3544.