Skip to content

fix(unlighthouse): launch Chrome with --no-sandbox in CI - #114

Merged
taraxvoid merged 1 commit into
mainfrom
worktree-chrome-no-sandbox
Oct 2, 2026
Merged

taraxvoid merged 1 commit into
mainfrom
worktree-chrome-no-sandbox

Conversation

@taraxvoid

Copy link
Copy Markdown
Owner

With single-environment: true, soundry and synthomaha now run test:e2e:lighthouse on main, and the runner fails on GitHub runners: FATAL: zygote_host_impl_linux.cc: No usable sandbox! ... Ubuntu 23.10+ ... AppArmor disabled unprivileged user namespaces. The runner had never executed on a runner before (it only ran on PRs into live, which these sites never open).

On Linux with CI set, the runner now points CHROME_PATH / PUPPETEER_EXECUTABLE_PATH at a small wrapper script that execs Chrome with --no-sandbox. Callers change nothing; it only applies in CI, where the browser loads our own static build. Opt out with VOIDFLOW_CHROME_SANDBOX=1.

Unit tests cover the wrapper (executable, argument order, paths with spaces/quotes). Validating on a real runner via a caller PR next; will report the result here.

🤖 Generated with Claude Code

GitHub's ubuntu-24.04 runners disable unprivileged user namespaces, so
Chrome aborts with 'No usable sandbox!' and the unlighthouse runner fails
on every CI run (it had never run on a runner before sites adopted
single-environment). On Linux with CI set, point CHROME_PATH and
PUPPETEER_EXECUTABLE_PATH at a wrapper that adds --no-sandbox. Opt out
with VOIDFLOW_CHROME_SANDBOX=1.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@taraxvoid

Copy link
Copy Markdown
Owner Author

Validated on a real GitHub runner via soundry#79 (temporarily pointing the lighthouse script at this branch): the log shows Using Chromium: ... (--no-sandbox for CI), unlighthouse scanned the site and the score budgets ran and passed (run 37050197714).

@taraxvoid
taraxvoid merged commit 67daebb into main Oct 2, 2026
2 checks passed
@taraxvoid
taraxvoid deleted the worktree-chrome-no-sandbox branch October 2, 2026 18:54
taraxvoid pushed a commit that referenced this pull request Oct 2, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.11.1](v0.11.0...v0.11.1)
(2026-10-02)


### Bug Fixes

* **unlighthouse:** launch Chrome with --no-sandbox in CI
([#114](#114))
([67daebb](67daebb))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: ravenflight-releases[bot] <330165707+ravenflight-releases[bot]@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

1 participant