dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.43k stars 10.02k forks source link

Quarantine `Microsoft.AspNetCore.Components.E2ETest.Tests.ThreadingAppTest.IsStarted`, and `Microsoft.AspNetCore.Components.E2ETest.Tests.ThreadingAppTest.HasHeading` #54754

Closed radical closed 1 month ago

radical commented 7 months ago

Failing build on update PR for winforms: https://dev.azure.com/dnceng-public/public/_build/results?buildId=616801&view=ms.vss-test-web.build-test-results-tab&runId=15087784&resultId=100834&paneView=debug .. and on update PR for symreader: https://dev.azure.com/dnceng-public/public/_build/results?buildId=616798&view=ms.vss-test-web.build-test-results-tab

Failing Test(s)

Identical failures:

Error Message

System.AggregateException : One or more errors occurred. (The HTTP request to the remote WebDriver server for URL http://localhost:33561/session/f900be4a97525f882a679553cb2e96bb/element timed out after 60 seconds.) (The HTTP request to the remote WebDriver server for URL http://localhost:33561/session/f900be4a97525f882a679553cb2e96bb/url timed out after 60 seconds.)
---- OpenQA.Selenium.WebDriverException : The HTTP request to the remote WebDriver server for URL http://localhost:33561/session/f900be4a97525f882a679553cb2e96bb/element timed out after 60 seconds.
-------- System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 60 seconds elapsing.
------------ System.TimeoutException : The operation was canceled.
---------------- System.Threading.Tasks.TaskCanceledException : The operation was canceled.
-------------------- System.IO.IOException : Unable to read data from the transport connection: Operation canceled.
------------------------ System.Net.Sockets.SocketException : Operation canceled
---- OpenQA.Selenium.WebDriverException : The HTTP request to the remote WebDriver server for URL http://localhost:33561/session/f900be4a97525f882a679553cb2e96bb/url timed out after 60 seconds.
-------- System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 60 seconds elapsing.
------------ System.TimeoutException : The operation was canceled.
---------------- System.Threading.Tasks.TaskCanceledException : The operation was canceled.
-------------------- System.IO.IOException : Unable to read data from the transport connection: Operation canceled.
------------------------ System.Net.Sockets.SocketException : Operation canceled

Stacktrace

```text ----- Inner Stack Trace #1 (OpenQA.Selenium.WebDriverException) ----- at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute) at OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute) at OpenQA.Selenium.WebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters) at OpenQA.Selenium.WebDriver.FindElement(String mechanism, String value) at Microsoft.AspNetCore.E2ETesting.WaitAssert.WaitAssertCore[TResult](IWebDriver driver, Func`1 assertion, TimeSpan timeout) in /home/vsts/work/1/s/src/Shared/E2ETesting/WaitAssert.cs:line 119 at Microsoft.AspNetCore.E2ETesting.WaitAssert.Exists(IWebDriver driver, By finder) in /home/vsts/work/1/s/src/Shared/E2ETesting/WaitAssert.cs:line 54 at Microsoft.AspNetCore.Components.E2ETest.Tests.ThreadingAppTest.Dispose() in /home/vsts/work/1/s/src/Components/test/E2ETest/Tests/ThreadingAppTest.cs:line 133 at ReflectionAbstractionExtensions.DisposeTestClass(ITest test, Object testClass, IMessageBus messageBus, ExecutionTimer timer, CancellationTokenSource cancellationTokenSource) in /_/src/xunit.execution/Extensions/ReflectionAbstractionExtensions.cs:line 79 ----- Inner Stack Trace ----- at System.Net.Http.HttpClient.HandleFailure(Exception e, Boolean telemetryStarted, HttpResponseMessage response, CancellationTokenSource cts, CancellationToken cancellationToken, CancellationTokenSource pendingRequestsCts) at System.Net.Http.HttpClient.g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo) at OpenQA.Selenium.Remote.HttpCommandExecutor.<>c__DisplayClass33_0.<b__0>d.MoveNext() --- End of stack trace from previous location --- at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute) ----- Inner Stack Trace ----- ----- Inner Stack Trace ----- 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 System.Net.Http.HttpClient.g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) ----- Inner Stack Trace ----- at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.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 ----- ----- Inner Stack Trace #2 (OpenQA.Selenium.WebDriverException) ----- at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute) at OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute) at OpenQA.Selenium.WebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters) at OpenQA.Selenium.WebDriver.set_Url(String value) at Microsoft.AspNetCore.Components.E2ETest.WebDriverExtensions.Navigate(IWebDriver browser, Uri baseUri, String relativeUrl, Boolean noReload) in /home/vsts/work/1/s/src/Components/test/E2ETest/Infrastructure/WebDriverExtensions/WebDriverExtensions.cs:line 14 at Mic ```

Logs

```text ```

Build

https://dev.azure.com/dnceng-public/public/_build/results?buildId=616801&view=ms.vss-test-web.build-test-results-tab&runId=15087784&resultId=100834&paneView=debug

amcasey commented 2 months ago

Microsoft.AspNetCore.Components.E2ETest.Tests.ThreadingAppTest.HasHeading appears to be failing as recently today:

OpenQA.Selenium.WebDriverException : The HTTP request to the remote WebDriver server for URL http://localhost:34747/session/a019271988f2cfcd52ca8139329f1439/url timed out after 60 seconds.
---- System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 60 seconds elapsing.
-------- System.TimeoutException : The operation was canceled.
------------ System.Threading.Tasks.TaskCanceledException : The operation was canceled.
---------------- System.IO.IOException : Unable to read data from the transport connection: Operation canceled.
-------------------- System.Net.Sockets.SocketException : Operation canceled
amcasey commented 2 months ago

Microsoft.AspNetCore.Components.E2ETest.Tests.ThreadingAppTest.IsStarted appears to also have failed today:

OpenQA.Selenium.WebDriverException : The HTTP request to the remote WebDriver server for URL http://localhost:34747/session/a019271988f2cfcd52ca8139329f1439/url timed out after 60 seconds.
---- System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 60 seconds elapsing.
-------- System.TimeoutException : The operation was canceled.
------------ System.Threading.Tasks.TaskCanceledException : The operation was canceled.
---------------- System.Net.Http.HttpIOException : The response ended prematurely. (ResponseEnded)
amcasey commented 2 months ago

@SteveSandersonMS Am I missing something about https://github.com/dotnet/aspnetcore/pull/54825? Are these recent failures expected/unrelated?

MackinnonBuck commented 2 months ago

Likely a runtime issue, see https://github.com/dotnet/runtime/issues/106788