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

cypress/base-12 seems to require libgbm-dev #299

Closed
bitjson opened this issue Jul 21, 2020 · 4 comments
Closed

cypress/base-12 seems to require libgbm-dev #299

bitjson opened this issue Jul 21, 2020 · 4 comments
Assignees

Comments

@bitjson
Copy link

bitjson commented Jul 21, 2020

The orb does not work as expected

  • what version of the orb are you currently using?
    • cypress-io/cypress@1.25.0
  • paste the circle.yml file if possible or at least the relevant portion
version: 2.1
orbs:
  cypress: cypress-io/cypress@1.25.0
workflows:
  build:
    jobs:
      - cypress/run:
          executor: cypress/base-12
          command-prefix: npx percy exec --
          yarn: true
          start: yarn start
          wait-on: 'http://localhost:3000'
          no-workspace: true
          record: true
          store_artifacts: true
          post-steps:
            - run: yarn test:unit
            - store_artifacts:
                path: coverage
  • describe what happens
[percy] created build #6: https://percy.io/8bced43b/bitauth-ide/builds/6192058
    Error: Failed to launch the browser process!
    /root/project/node_modules/puppeteer/.local-chromium/linux-756035/chrome-l
    inux/chrome: error while loading shared libraries: libgbm.so.1: cannot 
    open shared object file: No such file or directory

Failed build

The problem seems easy to resolve – the libgbm-dev package needs to be installed.

Workaround (successful build):

[...]
      - cypress/run:
          post-install:
            - run: apt-get update
            - run: apt-get install -y libgbm-dev
[...]
@bahmutov
Copy link
Contributor

I have updated the cypress/base:12 and cypress/base:latest tags to point at cypress/base:12.18.2 in cypress-io/cypress-docker-images@f17e52c which should resolve this issue

@bitjson
Copy link
Author

bitjson commented Jul 23, 2020

Great! Will cypress/base-12-18-2 be added as an executor in this orb?

@bahmutov
Copy link
Contributor

Probably not, but you can easily set up your own executor in the circle config file

@keremgocen
Copy link

installing libgbm-dev fixed it for me, thanks!

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

3 participants