Skip to content

Commit

Permalink
fix: browser-test job fails in ubuntu-latest
Browse files Browse the repository at this point in the history
When running `browser-test` job on `ubunty-latest` the following error is emitted:

```
Error: Failed to launch the browser process!
[1999:1999:0210/184211.279511:FATAL:zygote_host_impl_linux.cc(128)] 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.
[0210/184211.290099:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[0210/184211.290150:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
```

The root cause of the error is described at https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md

By locking `browser-test` to `ubuntu-22.04`, we can avoid this error, while a more
elegant solution is found.
  • Loading branch information
mroderick committed Feb 18, 2025
1 parent e9eb2eb commit 0ca2e49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
npm run lint
browser-test:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand Down

0 comments on commit 0ca2e49

Please sign in to comment.