Skip to content

Fix ChromeHeadless CI timeout on macOS#95

Merged
liuliu-dev merged 2 commits intodependabot/npm_and_yarn/npm_and_yarn-bb3626eb1afrom
copilot/sub-pr-94
Mar 9, 2026
Merged

Fix ChromeHeadless CI timeout on macOS#95
liuliu-dev merged 2 commits intodependabot/npm_and_yarn/npm_and_yarn-bb3626eb1afrom
copilot/sub-pr-94

Conversation

Copy link

Copilot AI commented Mar 3, 2026

ChromeHeadless was consistently timing out (3× 60s) on macos-latest in the Karma test run, failing the Node CI check on this PR.

Changes

  • karma.config.cjs: Replace ChromeHeadless browser with a ChromeHeadlessNoSandbox custom launcher that passes --no-sandbox and --disable-setuid-sandbox — the standard fix for headless Chrome in containerized/CI environments where the sandbox prevents browser startup.
customLaunchers: {
  ChromeHeadlessNoSandbox: {
    base: 'ChromeHeadless',
    flags: ['--no-sandbox', '--disable-setuid-sandbox'],
  },
},
browsers: ['ChromeHeadlessNoSandbox'],

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: francinelucca <40550942+francinelucca@users.noreply.github.com>
Copilot AI changed the title [WIP] Update minimatch version from 3.1.2 to 3.1.5 Fix ChromeHeadless CI timeout on macOS Mar 3, 2026
@liuliu-dev liuliu-dev marked this pull request as ready for review March 9, 2026 21:10
@liuliu-dev liuliu-dev requested a review from a team as a code owner March 9, 2026 21:10
Copilot AI review requested due to automatic review settings March 9, 2026 21:10
@liuliu-dev liuliu-dev merged commit 49770c4 into dependabot/npm_and_yarn/npm_and_yarn-bb3626eb1a Mar 9, 2026
2 checks passed
@liuliu-dev liuliu-dev deleted the copilot/sub-pr-94 branch March 9, 2026 21:11
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a CI timeout issue where ChromeHeadless was failing to start on macos-latest GitHub Actions runners due to sandbox restrictions. It replaces the direct ChromeHeadless browser reference with a custom launcher that disables the sandbox, which is the standard fix for headless Chrome in CI environments.

Changes:

  • Replace ChromeHeadless with a ChromeHeadlessNoSandbox custom launcher in karma.config.cjs, passing --no-sandbox and --disable-setuid-sandbox flags to allow Chrome to start reliably in CI.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants