From 91359918870d35b3473551d83b9b44ce06c8eea4 Mon Sep 17 00:00:00 2001 From: Ilia Denisov Date: Thu, 14 May 2026 01:59:45 +0200 Subject: [PATCH] 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) --- .gitea/workflows/ui-test.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ui-test.yaml b/.gitea/workflows/ui-test.yaml index b064134..5924d3c 100644 --- a/.gitea/workflows/ui-test.yaml +++ b/.gitea/workflows/ui-test.yaml @@ -45,8 +45,15 @@ jobs: run: pnpm install --frozen-lockfile - 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 - run: pnpm exec playwright install --with-deps + run: pnpm exec playwright install - name: Run Vitest working-directory: ui/frontend