fix: install playwright chromium before the prerender build step #17

Merged
me merged 4 commits from fix/ci-prerender-playwright into main 2026-08-29 14:31:58 +00:00
Owner

The frontend CI job runs 'bun run build' (tsc -b && vite build && node scripts/prerender.js), and prerender.js launches Chromium via Playwright to prerender the homepage. That job only ran 'bun install' and never installed Playwright's browser binaries — only the separate e2e job did that, which doesn't help the frontend job. Result: 'Failed to prerender: browserType.launch: Executable doesn't exist at .../chromium_headless_shell-1217/...'.

Fix: add a Chromium install step to the frontend job in both .github/workflows/ci.yml (cached, matching the e2e job's pattern but with its own cache key to avoid colliding with e2e's full multi-browser cache) and .forgejo/workflows/ci.yml (uncached, matching that file's existing convention since it has no cache server).

Verified locally: 'bun run build' completes successfully end-to-end (prerender included) once chromium is installed.

The frontend CI job runs 'bun run build' (tsc -b && vite build && node scripts/prerender.js), and prerender.js launches Chromium via Playwright to prerender the homepage. That job only ran 'bun install' and never installed Playwright's browser binaries — only the separate e2e job did that, which doesn't help the frontend job. Result: 'Failed to prerender: browserType.launch: Executable doesn't exist at .../chromium_headless_shell-1217/...'. Fix: add a Chromium install step to the frontend job in both .github/workflows/ci.yml (cached, matching the e2e job's pattern but with its own cache key to avoid colliding with e2e's full multi-browser cache) and .forgejo/workflows/ci.yml (uncached, matching that file's existing convention since it has no cache server). Verified locally: 'bun run build' completes successfully end-to-end (prerender included) once chromium is installed.
fix: install playwright chromium before the prerender build step
Some checks failed
CI / Generate Certificates (pull_request) Successful in 18s
CI / Frontend CI (pull_request) Successful in 1m39s
CI / Backend CI (pull_request) Successful in 55s
CI / E2E Tests (pull_request) Failing after 3m7s
4a77683390
me added 2 commits 2026-08-29 13:28:20 +00:00
fix: install the docker CLI for the forgejo e2e job's dind runner
Some checks failed
CI / Generate Certificates (pull_request) Successful in 18s
CI / Frontend CI (pull_request) Successful in 1m55s
CI / Backend CI (pull_request) Successful in 54s
CI / E2E Tests (pull_request) Failing after 2m24s
d875074f07
refactor: run e2e against native CI services instead of docker compose
All checks were successful
CI / Generate Certificates (pull_request) Successful in 22s
CI / Frontend CI (pull_request) Successful in 1m41s
CI / Backend CI (pull_request) Successful in 51s
CI / E2E Tests (pull_request) Successful in 5m31s
72833e2c58
me merged commit 131857f0d7 into main 2026-08-29 14:31:58 +00:00
me deleted branch fix/ci-prerender-playwright 2026-08-29 14:31:58 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
me/pi-ku!17
No description provided.