Skip to content

Commit 0ca2e49

Browse files
committedFeb 18, 2025·
fix: browser-test job fails in ubuntu-latest
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.
1 parent e9eb2eb commit 0ca2e49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
npm run lint
4949
5050
browser-test:
51-
runs-on: ubuntu-latest
51+
runs-on: ubuntu-22.04
5252
steps:
5353
- uses: actions/checkout@v4
5454
- uses: actions/setup-node@v4

0 commit comments

Comments
 (0)
Please sign in to comment.