Skip to content

[Chrome driver] Can't start on Linux: the Chrome path is hardcoded to macOS #5

Description

@asabirov

Original request

Not available. A worker found this while attaching screenshots to a pull request on a Linux host, and the coordinator is filing it.

Problem

On Linux, the Chrome driver can't start. scripts/drivers/chrome.mjs:27 hardcodes the macOS path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome, and nothing overrides it. When the Orca driver also can't be used (its browser is signed out, exit 4), mint.sh has no working driver, so workers on Linux hosts can't attach images.

Evidence

  • scripts/drivers/chrome.mjs:27: const CHROME = "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome";
  • The worker's report: "the Orca driver reports its browser signed out of GitHub, exit 4; the Chrome driver hardcodes /Applications/Google Chrome.app/...".

Acceptance criteria

  • The Chrome driver can find Chrome on Linux, for example from an environment variable or the usual install paths, or it refuses with an exit code and message that names the problem.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

triage:P2Worth doing, no deadline pressuretriage:SAbout half a day

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions