ci/ui-test: drop --with-deps now that runner is host-mode
`playwright install --with-deps` shells out to `sudo apt-get install` for the system libraries that headless browsers need. In a job container that runs as root this is silent; on a host-mode runner the non-interactive sudo prompts for a password, fails three times, and the step exits 1. Drop --with-deps. The system .so libraries are installed once on the host via `pnpm exec playwright install-deps` (or the equivalent apt-get incantation); workflow runs only need to fetch the browser binaries themselves, which lives under the runner user's home and needs no privilege. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -45,8 +45,15 @@ jobs:
|
|||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: Install Playwright browsers
|
- name: Install Playwright browsers
|
||||||
|
# `--with-deps` would shell out to `sudo apt-get install` for
|
||||||
|
# the system .so libraries, which the host-mode runner cannot
|
||||||
|
# run non-interactively. The host has the deps installed once,
|
||||||
|
# globally; we only need to fetch the browser binaries here.
|
||||||
|
# If a future run fails with missing libraries, install them
|
||||||
|
# on the host via `pnpm exec playwright install-deps` (one
|
||||||
|
# shot, requires sudo).
|
||||||
working-directory: ui/frontend
|
working-directory: ui/frontend
|
||||||
run: pnpm exec playwright install --with-deps
|
run: pnpm exec playwright install
|
||||||
|
|
||||||
- name: Run Vitest
|
- name: Run Vitest
|
||||||
working-directory: ui/frontend
|
working-directory: ui/frontend
|
||||||
|
|||||||
Reference in New Issue
Block a user