Skip to content

Flaky test "CanUploadSingleLargeFile" #26331

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Tracked by #29698
BrennanConroy opened this issue Sep 25, 2020 · 5 comments · Fixed by #34589
Closed
Tracked by #29698

Flaky test "CanUploadSingleLargeFile" #26331

BrennanConroy opened this issue Sep 25, 2020 · 5 comments · Fixed by #34589
Assignees
Labels
area-blazor Includes: Blazor, Razor Components Done This issue has been fixed investigate task test-fixed
Milestone

Comments

@BrennanConroy
Copy link
Member

OpenQA.Selenium.NoSuchElementException : no such element: Unable to locate element: {"method":"css selector","selector":"#file\-a1872fb4d95d45c8ba48ec172a01f8dd\.txt"}\n  (Session info: headless chrome=85.0.4183.121)
at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Remote.RemoteWebDriver.FindElement(String mechanism, String value)
at OpenQA.Selenium.By.<>c__DisplayClass22_0.<Id>b__0(ISearchContext context)
at OpenQA.Selenium.By.FindElement(ISearchContext context)
at OpenQA.Selenium.Remote.RemoteWebDriver.FindElement(By by)
at Microsoft.AspNetCore.Components.E2ETest.Tests.InputFileTest.CanUploadSingleLargeFile() in /_/src/Components/test/E2ETest/Tests/InputFileTest.cs:line 79

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

@BrennanConroy BrennanConroy added test-failure area-blazor Includes: Blazor, Razor Components labels Sep 25, 2020
@captainsafia captainsafia added this to the 5.0.0 milestone Sep 28, 2020
@pranavkm
Copy link
Contributor

We made some improvements to tests durations as part of #26519. This should likely address the test and make it eligible to be unquarantined after 11/2.

@ghost ghost locked as resolved and limited conversation to collaborators Nov 14, 2020
@HaoK HaoK reopened this Mar 23, 2021
@HaoK HaoK modified the milestones: 5.0.0, Next sprint planning Mar 23, 2021
@HaoK
Copy link
Member

HaoK commented Mar 23, 2021

Reactivating as its still failing sporadically 3-14 3-17, removing it from the mega tracking list since this is a single test

@TanayParikh
Copy link
Contributor

This should now be resolved via #33015.

@ghost ghost added the Working label Jun 7, 2021
@TanayParikh TanayParikh added Done This issue has been fixed and removed Working labels Jun 7, 2021
@TanayParikh
Copy link
Contributor

We had 1 failure in 323 runs in the past month in quarantine. Thus, this test isn't eligible to be unquarantined yet.

image

Error:

OpenQA.Selenium.BrowserAssertFailedException : Xunit.Sdk.NotEmptyException: Assert.NotEmpty() Failure\r\n   at Xunit.Assert.NotEmpty(IEnumerable collection) in C:\\Dev\\xunit\\xunit\\src\\xunit.assert\\Asserts\\CollectionAsserts.cs:line 331\r\n   at Microsoft.AspNetCore.E2ETesting.WaitAssert.<>c__DisplayClass15_0.<Exists>b__0() in /_/src/Shared/E2ETesting/WaitAssert.cs:line 72\r\n   at Microsoft.AspNetCore.E2ETesting.WaitAssert.<>c__DisplayClass18_0`1.<WaitAssertCore>b__0(IWebDriver _) in /_/src/Shared/E2ETesting/WaitAssert.cs:line 109\r\nScreen shot captured at 'D:\\workspace\\_work\\1\\s\\artifacts\\TestResults\\Release\\Microsoft.AspNetCore.Components.E2ETests\\3a887a71ecd9436a993acc1504bbca45.png'\r\nPage content:\r\n<head></head><body></body>\r\n\r\n---- Assert.NotEmpty() Failure

Stack Trace:

   at Microsoft.AspNetCore.E2ETesting.WaitAssert.WaitAssertCore[TResult](IWebDriver driver, Func`1 assertion, TimeSpan timeout) in /_/src/Shared/E2ETesting/WaitAssert.cs:line 129
   at Microsoft.AspNetCore.E2ETesting.WaitAssert.Exists(IWebDriver driver, By finder, TimeSpan timeout) in /_/src/Shared/E2ETesting/WaitAssert.cs:line 67
   at Microsoft.AspNetCore.Components.E2ETest.BasicTestAppWebDriverExtensions.WaitUntilTestSelectorReady(IWebDriver browser) in /_/src/Components/test/E2ETest/Infrastructure/WebDriverExtensions/BasicTestAppWebDriverExtensions.cs:line 24
   at Microsoft.AspNetCore.Components.E2ETest.BasicTestAppWebDriverExtensions.MountTestComponent[TComponent](IWebDriver browser) in /_/src/Components/test/E2ETest/Infrastructure/WebDriverExtensions/BasicTestAppWebDriverExtensions.cs:line 15
   at Microsoft.AspNetCore.Components.E2ETest.Tests.InputFileTest.InitializeAsyncCore() in /_/src/Components/test/E2ETest/Tests/InputFileTest.cs:line 41
   at Microsoft.AspNetCore.E2ETesting.BrowserTestBase.InitializeAsync(String isolationContext) in /_/src/Shared/E2ETesting/BrowserTestBase.cs:line 71
----- Inner Stack Trace -----
   at Microsoft.AspNetCore.E2ETesting.WaitAssert.<>c__DisplayClass15_0.<Exists>b__0() in /_/src/Shared/E2ETesting/WaitAssert.cs:line 72
   at Microsoft.AspNetCore.E2ETesting.WaitAssert.<>c__DisplayClass18_0`1.<WaitAssertCore>b__0(IWebDriver _) in /_/src/Shared/E2ETesting/WaitAssert.cs:line 109

@TanayParikh TanayParikh added investigate and removed Done This issue has been fixed labels Jul 14, 2021
@ghost ghost added the Working label Jul 21, 2021
@TanayParikh
Copy link
Contributor

Took a second look through things, everything seems to be working as expected and we're seeing a consistent pass rate over the past 30 days:
image

attributing the 1/323 failure on 6/21 as unrelated flakiness and unquarantining this test.

@ghost ghost added Done This issue has been fixed and removed Working labels Jul 21, 2021
@TanayParikh TanayParikh reopened this Jul 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components Done This issue has been fixed investigate task test-fixed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants