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

ARM64 browsers images do not contain any browser #899

Closed
cedmail opened this issue Jun 8, 2023 · 2 comments
Closed

ARM64 browsers images do not contain any browser #899

cedmail opened this issue Jun 8, 2023 · 2 comments
Assignees

Comments

@cedmail
Copy link

cedmail commented Jun 8, 2023

When using latest browsers images, there is no browser installed on ARM64

cypress  | $ cypress run --browser chrome --config-file cypress.config.ts
cypress  | [STARTED] Task without title.
cypress  | [SUCCESS] Task without title.
cypress  | 
cypress  | DevTools listening on ws://127.0.0.1:41089/devtools/browser/35d62fba-549c-4943-bc2f-bb0f86e6ac61
cypress  | [620:0608/130738.591727:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
cypress  | Missing baseUrl in compilerOptions. tsconfig-paths will be skipped
cypress  | Setting environment
cypress  | Can't run because you've entered an invalid browser name.
cypress  | 
cypress  | Browser: chrome was not found on your system or is not supported by Cypress.
cypress  | 
cypress  | Cypress supports the following browsers:
cypress  |  - electron
cypress  |  - chrome
cypress  |  - chromium
cypress  |  - chrome:canary
cypress  |  - edge
cypress  |  - firefox
cypress  | 
cypress  | You can also use a custom browser: https://on.cypress.io/customize-browsers
cypress  | 
cypress  | Available browsers found on your system are:
cypress  |  - electron
cypress  | Couldn't determine Mocha version
cypress  | Can't run because you've entered an invalid browser name.
cypress  | 
cypress  | Browser: chrome was not found on your system or is not supported by Cypress.
cypress  | 
cypress  | Cypress supports the following browsers:
cypress  |  - electron
cypress  |  - chrome
cypress  |  - chromium
cypress  |  - chrome:canary
cypress  |  - edge
cypress  |  - firefox
cypress  | 
cypress  | You can also use a custom browser: https://on.cypress.io/customize-browsers
cypress  | 
cypress  | Available browsers found on your system are:
cypress  |  - electron
cypress  | error Command failed with exit code 1.

Looking at the image size on docker hub we see a huge discrepancy in size 800MB for AMD64 200MB for ARM64
Please either do not flag/generate ARM64 image or embed the browsers

@andreynav
Copy link

andreynav commented Jun 12, 2023

Hello,
I get the same error for my macbook with M1 chip as your.

Also when I run the command:
docker run -it -v $PWD:/e2e -w /e2e --entrypoint=cypress cypress/included info

I get the message about no known browsers installed

DevTools listening on ws://127.0.0.1:37841/devtools/browser/3269c581-3789-4016-a2ea-36f3fc9e8b20
[200:0612/124212.775494:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
Displaying Cypress info...

Detected no known browsers installed

Proxy Settings: none detected
Environment Variables:
CYPRESS_CACHE_FOLDER: /root/.cache/Cypress
CYPRESS_FACTORY_DEFAULT_NODE_VERSION: 18.16.0

Application Data: /root/.config/cypress/cy/development
Browser Profiles: /root/.config/cypress/cy/development/browsers
Binary Caches: /root/.cache/Cypress

Cypress Version: 12.14.0 (stable)
System Platform: linux (Debian - 11.6)
System Memory: 8.23 GB free 3.9 GB

Just to clarify - the docker image cypress/included must includes pre-installed both Chrome and Firefox browsers correct?

@mike-plummer
Copy link
Contributor

Duplicate of #695

I think we'd be willing to consider a contribution to address this provided viable native binaries for all supported browsers are available for ARM64, but the best approach at this point might be to rely on the new cypress/factory image which allows you to build the exact set of OS + Node + Cypress + Browser(s) that you need for your environment

@mike-plummer mike-plummer closed this as not planned Won't fix, can't repro, duplicate, stale Jun 26, 2023
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

No branches or pull requests

4 participants