-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
fix(launcher): set ARCHPREFERENCE on macOS to prefer arm64 #25014
Conversation
Thanks for taking the time to open a PR!
|
3ca9bf8
to
7470f9f
Compare
Test summaryRun details
View run in Cypress Dashboard ➡️ Flakiness
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
run ci
* fix: declare used babel dependencies * try this??? * unlock deps
[skip ci]
Looks like it's working. Here's a video. I did see cypress config manager as 'intel' - is that correct? The actual app and browser both launched as Apple. vid.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good, I also posted a video of my testing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
@lmiller1990 thanks for testing. This would be expected, since we are using the system Node to launch the config process. Node.js isn't packaged as a universal app so we have to use whatever arch of Node Cy was launched with. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
User facing changelog
Fixed an issue where browsers distributed as universal binaries (Chrome, Firefox) on M1 Macs could be launched in the wrong architecture, resulting in poor performance in-browser.
Additional details
arch
andARCHPREFERENCE
to work around this: https://stackoverflow.com/a/74709144/3474615browsers
list out ofbrowsers.ts
and into aknownBrowsers
object inknown-browsers.ts
, to avoid an issue where it is imported in the app's supportFile, which now causes an error due toexeca
being incompatible with the browser: https://cypressio.slack.com/archives/C01TQQCQLJY/p1671475149587209Steps to test
Validate that it launches Arm browsers on M1 with x64 Node:
Validate that x64 Macs can still launch browsers:
How has the user experience changed?
PR Tasks
cypress-documentation
?type definitions
?