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

Puppeteer will fail in the GitHub action without this less than ideal workaround #44

Closed
2 tasks done
WayneKeenan opened this issue Feb 7, 2025 · 1 comment
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@WayneKeenan
Copy link
Owner

Before submitting an issue, please check the following

  • I have searched for similar issues (both open and closed) and cannot find a duplicate
  • I agree to follow the Code of Conduct

Describe the bug

The GitHub test step fails with:

FAIL src/browser_extension.test.ts (5.268 s)
  ● should load Chrome Extension popup

    Failed to launch the browser process!
    [2001:2001:0207/134737.523006:FATAL:zygote_host_impl_linux.cc(127)] No usable sandbox! If you are running on Ubuntu 23.10+ or another Linux distro that has disabled unprivileged user namespaces with AppArmor, see https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md. Otherwise see https://chromium.googlesource.com/chromium/src/+/main/docs/linux/suid_sandbox_development.md for more information on developing with the (older) SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.
    [0207/134737.531836:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
    [0207/134737.531879:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)

For the workaround see: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
and: 2cb698f

The workaround disables the sandbox, which is ok for GitHub I guess but not really ideal for local development.

To reproduce

Trigger a GitHub release.

Expected behavior

no error

ClintonCAT version

n/a

Platform

GitHub

Anything else?

No response

@WayneKeenan WayneKeenan added the bug Something isn't working label Feb 7, 2025
@WayneKeenan WayneKeenan changed the title Puppeteer fails in the GitHub action Puppeteer will fail in the GitHub action without this less than ideal workaround Feb 7, 2025
@WayneKeenan
Copy link
Owner Author

closing this unless it's a "real" issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant