Skip to content
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

[browser][Windows] Chrome WBT timeout on helix if we update chrome #107466

Closed
ilonatommy opened this issue Sep 6, 2024 · 3 comments
Closed

[browser][Windows] Chrome WBT timeout on helix if we update chrome #107466

ilonatommy opened this issue Sep 6, 2024 · 3 comments
Assignees
Labels
arch-wasm WebAssembly architecture area-Infrastructure-mono os-browser Browser variant of arch-wasm
Milestone

Comments

@ilonatommy
Copy link
Member

ilonatommy commented Sep 6, 2024

PR where we were trying to bump chrome on windows, where failures were discovered: #107259

  1. log from CI:
[wasm test-browser] [16:57:13] info: Closing 1 browser tabs before setting the main tab to config page and quitting.
[wasm test-browser] [16:57:13] fail: [out of order message from the driver]: Timed out receiving message from renderer: 300.000
[wasm test-browser] 
[wasm test-browser] [16:57:13] fail: [out of order message from the driver]: Timed out receiving message from renderer: 300.000
[wasm test-browser] 
[wasm test-browser] [16:57:30] crit: OpenQA.Selenium.WebDriverTimeoutException: timeout: Timed out receiving message from renderer: 300.000
[wasm test-browser]   (Session info: chrome=128.0.6613.0)
[wasm test-browser]                     at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
[wasm test-browser]                     at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
[wasm test-browser]                     at OpenQA.Selenium.Remote.RemoteWebDriver.set_Url(String value)
[wasm test-browser]                     at OpenQA.Selenium.Remote.RemoteNavigator.GoToUrl(String url)
[wasm test-browser]                     at Microsoft.DotNet.XHarness.CLI.Commands.Wasm.WasmBrowserTestRunner.RunTestsWithWebDriver(DriverService driverService, IWebDriver driver) in /_/src/Microsoft.DotNet.XHarness.CLI/Commands/WASM/Browser/WasmBrowserTestRunner.cs:line 78
[wasm test-browser]                     at Microsoft.DotNet.XHarness.CLI.Commands.Wasm.WasmTestBrowserCommand.InvokeInternal(ILogger logger) in /_/src/Microsoft.DotNet.XHarness.CLI/Commands/WASM/Browser/WasmTestBrowserCommand.cs:line 81
[wasm test-browser]                     at Microsoft.DotNet.XHarness.CLI.Commands.XHarnessCommand`1.Invoke(IEnumerable`1 arguments) in /_/src/Microsoft.DotNet.XHarness.CLI/Commands/XHarnessCommand.cs:line 145
[wasm test-browser] XHarness exit code: 71 (GENERAL_FAILURE)

Reason:
not know yet

  1. Log from a local run (different place in the code):
          [wasm test-browser] info: Closing 2 browser tabs before setting the main tab to config page and quitting.
          [wasm test-browser] fail: Error while closing browser: OpenQA.Selenium.NoSuchWindowException: no such window: target window already closed
          [wasm test-browser] from unknown error: web view not found
          [wasm test-browser]   (Session info: chrome=128.0.6613.120)
          [wasm test-browser]          at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
          [wasm test-browser]          at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
          [wasm test-browser]          at OpenQA.Selenium.Remote.RemoteWebDriver.set_Url(String value)
          [wasm test-browser]          at OpenQA.Selenium.Remote.RemoteNavigator.GoToUrl(String url)
          [wasm test-browser]          at Microsoft.DotNet.XHarness.CLI.Commands.Wasm.WasmTestBrowserCommand.InvokeInternal(ILogger logger) in /_/src/Microsoft.DotNet.XHarness.CLI/Commands/WASM/Browser/WasmTestBrowserCommand.cs:line 134

we're trying to open
https://github.com/dotnet/xharness/blob/9e5f5af88fbb456a13f644b5a3d438f407562e89/src/Microsoft.DotNet.XHarness.CLI/Commands/WASM/Browser/WasmTestBrowserCommand.cs#L134

This would be fixed by dotnet/xharness#1265.

  1. [SOLVED] log from local run (different place in the code):
[wasm test-browser] info: Closing 2 browser tabs before setting the main tab to config page and quitting.
          [wasm test-browser] fail: Error while closing browser: System.InvalidOperationException: Sequence contains no elements
          [wasm test-browser]          at System.Linq.ThrowHelper.ThrowNoElementsException()
          [wasm test-browser]          at Microsoft.DotNet.XHarness.CLI.Commands.Wasm.WasmTestBrowserCommand.InvokeInternal(ILogger logger)
          [wasm test-browser] XHarness exit code: 0

Reason:
The offending code was added in dotnet/xharness#1221 but we did not hit this problem till now. New version of chrome might introduce a race, causing WindowHandles to vary between the entrance to the loop and actual switching to it. The fix will be made on xharness side.
Fixed by: dotnet/xharness#1261 - it might also fix the other issue (if we were not closing the tabs properly, after a few tests were run it might have caused timeouts) but not necessarily.

@ilonatommy ilonatommy added arch-wasm WebAssembly architecture area-Infrastructure-mono os-browser Browser variant of arch-wasm labels Sep 6, 2024
@ilonatommy ilonatommy added this to the 10.0.0 milestone Sep 6, 2024
@ilonatommy ilonatommy self-assigned this Sep 6, 2024
Copy link
Contributor

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Copy link
Contributor

Tagging subscribers to this area: @directhex, @matouskozak
See info in area-owners.md if you want to be subscribed.

@ilonatommy
Copy link
Member Author

This is not observable on the CI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-wasm WebAssembly architecture area-Infrastructure-mono os-browser Browser variant of arch-wasm
Projects
None yet
Development

No branches or pull requests

1 participant