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

Can't run curriculum tests in gitpod #52453

Closed
moT01 opened this issue Nov 30, 2023 · 2 comments
Closed

Can't run curriculum tests in gitpod #52453

moT01 opened this issue Nov 30, 2023 · 2 comments
Labels
scope: tools/scripts Scripts for supporting dev work, generating config and build artifacts, etc. status: discussing Under discussion threads. Closed as stale after 60 days of inactivity. type: bug Issues that need priority attention. Platform, Curriculum tests (if broken completely), etc.

Comments

@moT01
Copy link
Member

moT01 commented Nov 30, 2023

Originally posted by @eric-do in #52451 (comment)

When you try to run pnpm test:curriculum in gitpod, it doesn't work. Here's copy of the error:

> @freecodecamp/curriculum@0.0.0-next.4 test /workspace/freeCodeCamp/curriculum
> ts-node ./node_modules/mocha/bin/mocha.js --delay --exit --reporter progress --bail

Error: Failed to launch the browser process!
/workspace/freeCodeCamp/node_modules/.pnpm/puppeteer@10.4.0/node_modules/puppeteer/.local-chromium/linux-901912/chrome-linux/chrome: error while loading shared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory


TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md

    at onClose (/workspace/freeCodeCamp/node_modules/.pnpm/puppeteer@10.4.0/node_modules/puppeteer/src/node/BrowserRunner.ts:223:9)
    at Interface.<anonymous> (/workspace/freeCodeCamp/node_modules/.pnpm/puppeteer@10.4.0/node_modules/puppeteer/src/node/BrowserRunner.ts:209:50)
    at Interface.emit (node:events:526:35)
    at Interface.emit (node:domain:488:12)
    at Interface.close (node:internal/readline/interface:527:10)
    at Socket.onend (node:internal/readline/interface:253:10)
    at Socket.emit (node:events:526:35)
    at Socket.emit (node:domain:488:12)
    at endReadableNT (node:internal/streams/readable:1589:12)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
 ELIFECYCLE  Test failed. See above for more details.
 

In my response to the linked comment, I shared a link to part of that troubleshooting suggestion in the error. Seems like there might be some things to try in there.

@moT01 moT01 added type: bug Issues that need priority attention. Platform, Curriculum tests (if broken completely), etc. status: discussing Under discussion threads. Closed as stale after 60 days of inactivity. scope: tools/scripts Scripts for supporting dev work, generating config and build artifacts, etc. labels Nov 30, 2023
@ShaunSHamilton
Copy link
Member

Did you run pnpm run cypress:install-build-tools?

InstallPuppeteer() {
sudo apt-get install -y \
ca-certificates \
fonts-liberation \
libappindicator3-1 \
libatk-bridge2.0-0 \
libatk1.0-0 \
libc6 \
libcairo2 \
libcups2 \
libdbus-1-3 \
libexpat1 \
libfontconfig1 \
libgbm1 \
libgcc1 \
libglib2.0-0 \
libnspr4 \
libpango-1.0-0 \
libpangocairo-1.0-0 \
libstdc++6 \
libx11-6 \
libx11-xcb1 \
libxcb1 \
libxcomposite1 \
libxcursor1 \
libxdamage1 \
libxext6 \
libxfixes3 \
libxi6 \
libxrandr2 \
libxrender1 \
lsb-release \
wget \
xdg-utils
}

@moT01
Copy link
Member Author

moT01 commented Nov 30, 2023

That did the trick, thanks @ShaunSHamilton 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: tools/scripts Scripts for supporting dev work, generating config and build artifacts, etc. status: discussing Under discussion threads. Closed as stale after 60 days of inactivity. type: bug Issues that need priority attention. Platform, Curriculum tests (if broken completely), etc.
Projects
None yet
Development

No branches or pull requests

2 participants