-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Wasm Browser work items failing with OpenQA.Selenium.WebDriverException #44862
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to this area: @directhex Issue Details
|
@radical Not sure what to make of this |
Lots of failed tests there. They seem to be failing with mono assertions, eg:
System.Xml.Xsl.XslTransform.Api.Tests I didn't look at all of them, fyi. |
This might be because of a race. I'll investigate. |
This one is a false positive. It's on a PR that Mitch is fixing. The original listed in this issue is legit, I think. |
Just to make sure I'm reading the exception correctly here, the driver service is just trying to start chrome driver and failing? This is before any of our code is running? |
Yeah, this is one of the first things the xharness command does:
It is failing to launch for some reason. Maybe we can retry if we see |
In some test runs, launching chromedriver failed with (dotnet/runtime#44862): ``` Connection refused Connection refused Connection refused Connection refused [00:03:37] crit: OpenQA.Selenium.WebDriverException: Cannot start the driver service on http://localhost:37245/ at OpenQA.Selenium.DriverService.Start() at OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute) at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters) at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities) at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities) at OpenQA.Selenium.Chromium.ChromiumDriver..ctor(ChromiumDriverService service, ChromiumOptions options, TimeSpan commandTimeout) at OpenQA.Selenium.Chrome.ChromeDriver..ctor(ChromeDriverService service, ChromeOptions options, TimeSpan commandTimeout) at Microsoft.DotNet.XHarness.CLI.Commands.Wasm.WasmTestBrowserCommand.GetChromeDriver(ILogger logger) in /_/src/Microsoft.DotNet.XHarness.CLI/Commands/WASM/Browser/WasmTestBrowserCommand.cs:line 110 at Microsoft.DotNet.XHarness.CLI.Commands.Wasm.WasmTestBrowserCommand.InvokeInternal(ILogger logger) in /_/src/Microsoft.DotNet.XHarness.CLI/Commands/WASM/Browser/WasmTestBrowserCommand.cs:line 53 at Microsoft.DotNet.XHarness.Common.CLI.Commands.XHarnessCommand.Invoke(IEnumerable`1 arguments) in /_/src/Microsoft.DotNet.XHarness.Common/CLI/Commands/XHarnessCommand.cs:line 120 XHarness exit code: 71 ``` As a way to handle this, we'll retry if the exception message contains the string `"Cannot start the driver service"`.
Opened dotnet/xharness#370 . |
#370) In some test runs, launching chromedriver failed with (dotnet/runtime#44862): ``` Connection refused Connection refused Connection refused Connection refused [00:03:37] crit: OpenQA.Selenium.WebDriverException: Cannot start the driver service on http://localhost:37245/ at OpenQA.Selenium.DriverService.Start() at OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute) at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters) at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities) at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities) at OpenQA.Selenium.Chromium.ChromiumDriver..ctor(ChromiumDriverService service, ChromiumOptions options, TimeSpan commandTimeout) at OpenQA.Selenium.Chrome.ChromeDriver..ctor(ChromeDriverService service, ChromeOptions options, TimeSpan commandTimeout) at Microsoft.DotNet.XHarness.CLI.Commands.Wasm.WasmTestBrowserCommand.GetChromeDriver(ILogger logger) in /_/src/Microsoft.DotNet.XHarness.CLI/Commands/WASM/Browser/WasmTestBrowserCommand.cs:line 110 at Microsoft.DotNet.XHarness.CLI.Commands.Wasm.WasmTestBrowserCommand.InvokeInternal(ILogger logger) in /_/src/Microsoft.DotNet.XHarness.CLI/Commands/WASM/Browser/WasmTestBrowserCommand.cs:line 53 at Microsoft.DotNet.XHarness.Common.CLI.Commands.XHarnessCommand.Invoke(IEnumerable`1 arguments) in /_/src/Microsoft.DotNet.XHarness.Common/CLI/Commands/XHarnessCommand.cs:line 120 XHarness exit code: 71 ``` As a way to handle this, we'll retry if the exception message contains the string `"Cannot start the driver service"`.
@steveisok Has this been seen on any other run? How do we check whether the "fix" helped or not? |
This can be closed now. |
Saw this in at least one other build this week as well.
|
Are we using latest xharness on the failing runs? @premun's fix should've fixed this. Perhaps we haven't yet used the latest version on the recent run and it is now fixed? |
I don't think I was fixing this issue. @radical? |
which fix? |
I couldn't find a recent failure of this, so will close for now. Let's reopen if we see a new failure. |
Console log: https://helixre8s23ayyeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-44835-merge-bb0f134359584f1080/System.Text.Encoding.CodePages.Tests/console.1329b837.log?sv=2019-07-07&se=2020-12-07T23%3A45%3A59Z&sr=c&sp=rl&sig=un3ihnU48W%2BrW%2FnAWOvHl%2Fd9djtH7rUx13LlD1Kipe0%3D
Build: https://dev.azure.com/dnceng/public/_build/results?buildId=889822&view=ms.vss-test-web.build-test-results-tab&runId=28458820&resultId=144669&paneView=attachments
cc @steveisok @akoeplinger
The text was updated successfully, but these errors were encountered: