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

chore: Use default Chromium binary in M1 Mac tests #15371

Merged
merged 1 commit into from Nov 30, 2021

Conversation

btmills
Copy link
Member

@btmills btmills commented Nov 29, 2021

Prerequisites checklist

What is the purpose of this pull request? (put an "X" next to an item)

[ ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofixing to a rule
[ ] Add a CLI option
[ ] Add something to the core
[x] Other, please explain: Update test config to work automatically on M1 Macs.

What changes did you make? (Give an overview)

On M1 Macs, we're able to use the Chromium binary that Puppeteer downloads as part of its install step. Prior to this change, running npm test on an M1 Mac would fail with "Cannot start ChromeHeadless" because it couldn't find the binary.

Is there anything you'd like reviewers to focus on?

Should I do os.platform !== "darwin" instead? As is, this changes behavior for all ARM-based non-Linux environments. Windows on ARM wouldn't work with the previous version, and it might with this change, but I don't have a way to confirm.

On M1 Macs, we're able to use the Chromium binary that Puppeteer
downloads as part of its install step.
@btmills btmills added accepted There is consensus among the team that this change meets the criteria for inclusion chore This change is not user-facing labels Nov 29, 2021
Copy link
Member

@nzakas nzakas left a comment

Choose a reason for hiding this comment

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

I think this is fine to start. Let’s see what happens.

@btmills btmills merged commit 94b2a8b into main Nov 30, 2021
@btmills btmills deleted the apple-silicon-chrome-headless branch November 30, 2021 06:07
@eslint-github-bot eslint-github-bot bot locked and limited conversation to collaborators May 30, 2022
@eslint-github-bot eslint-github-bot bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label May 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion archived due to age This issue has been archived; please open a new issue for any further discussion chore This change is not user-facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants