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

WASM tests failing with Chrome failed to start #108859

Open
ericstj opened this issue Oct 14, 2024 · 3 comments
Open

WASM tests failing with Chrome failed to start #108859

ericstj opened this issue Oct 14, 2024 · 3 comments
Assignees
Labels
arch-wasm WebAssembly architecture area-VM-meta-mono Known Build Error Use this to report build issues in the .NET Helix tab os-browser Browser variant of arch-wasm
Milestone

Comments

@ericstj
Copy link
Member

ericstj commented Oct 14, 2024

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=840205
Build error leg or test failing: Common.Tests.WorkItemExecution
Pull request: #108797

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "OpenQA.Selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Sample log:
https://helixre107v0xd1eu3ibi6ka.blob.core.windows.net/dotnet-runtime-refs-pull-108797-merge-b672a2c11f99427a9e/Microsoft.CSharp.Tests/1/console.618ae569.log?skoid=8eda00af-b5ec-4be9-b69b-0919a2338892&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2024-10-14T19%3A59%3A12Z&ske=2024-10-14T20%3A59%3A12Z&sks=b&skv=2024-05-04&sv=2024-05-04&st=2024-10-14T19%3A59%3A12Z&se=2024-10-14T20%3A59%3A12Z&sr=c&sp=r&sig=zPghjJW77UN3nV9xrZucrdLlqVHObIDrVvS37NXBv9k%3D

ChromeDriver was started successfully.
Connection refused [::ffff:127.0.0.1]:36887 (localhost:36887)
[15:11:06] warn: Failed to start the browser, attempt #0: OpenQA.Selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally.
                   (unknown error: DevToolsActivePort file doesn't exist)
                   (The process started from chrome location /datadisks/disk1/work/AC2B0958/p/chrome-linux/chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
                    at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
                    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)

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=840205
Error message validated: [OpenQA.Selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 10/14/2024 8:05:32 PM UTC

Report

Build Definition Test Pull Request
2614835 dotnet-runtime System.Net.Http.Json.Functional.Tests.WorkItemExecution #46544

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 1
@ericstj ericstj added blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab labels Oct 14, 2024
@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Oct 14, 2024
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Oct 14, 2024
@carlossanlop carlossanlop added arch-wasm WebAssembly architecture os-browser Browser variant of arch-wasm and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Oct 14, 2024
Copy link
Contributor

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

@carlossanlop
Copy link
Member

carlossanlop commented Oct 14, 2024

This failure is heavily impacting the 6.0 PRs CI.

@lewing lewing added this to the 10.0.0 milestone Nov 4, 2024
@dotnet-policy-service dotnet-policy-service bot removed the untriaged New issue has not been triaged by the area owner label Nov 4, 2024
@ilonatommy
Copy link
Member

The error can indicate a mismatch of chromedriver and chrome version. Failing tests are on Linux (we're not testing Windows at all). We are using chromedriver: 84.0.4147.0, chrome: Chromium 84.0.4147.0 there, so they are matching versions:

<ChromiumRevision>768968</ChromiumRevision>

The main difference between net6 and current main is missing --no-sandbox argument that was added to xharness in dotnet/xharness#951. It is reported as a fix for this exact error and it bypasses the OS's security model. I will backport the mentioned PR and see if this helps.

@ilonatommy ilonatommy removed the blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-wasm WebAssembly architecture area-VM-meta-mono Known Build Error Use this to report build issues in the .NET Helix tab os-browser Browser variant of arch-wasm
Projects
None yet
Development

No branches or pull requests

5 participants