Fixes Chrome crashing in the CI container during Lighthouse
Continuous Integration / check (pull_request) Successful in 6m10s
Continuous Integration / lighthouse (pull_request) Failing after 9m39s
Continuous Integration / deploy-test (pull_request) Skipped
Continuous Integration / deploy-production (pull_request) Skipped

The container's /dev/shm is limited to 64 MB, which makes the browser
tab crash on the image-heavy home page. Chrome now uses /tmp instead
via --disable-dev-shm-usage.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-19 00:56:27 +02:00
co-authored by Claude Opus 5.5
parent b8adcd5f93
commit 295adc2a9c
2 changed files with 18 additions and 3 deletions
+6 -3
View File
@@ -135,11 +135,14 @@ jobs:
echo "CHROME_PATH=$CHROME_PATH" >> "$GITHUB_ENV"
"$CHROME_PATH" --version
# Als root in een container weigert Chrome te starten zonder --no-sandbox
# (gelezen door lighthouserc.cjs, zie daar waarom niet via LHCI_*)
# Chrome in een container (gelezen door lighthouserc.cjs, zie daar waarom
# niet via LHCI_*):
# --no-sandbox: als root weigert Chrome anders te starten
# --disable-dev-shm-usage: /dev/shm is in een container maar 64 MB; met
# de grote hero-foto's crasht het tabblad anders (TARGET_CRASHED)
- name: Lighthouse
env:
LIGHTHOUSE_CHROME_FLAGS: '--no-sandbox --headless=new'
LIGHTHOUSE_CHROME_FLAGS: '--no-sandbox --headless=new --disable-dev-shm-usage'
run: pnpm lighthouse
deploy-test:
@@ -666,3 +666,15 @@ Verder heb ik de vraag ook beantwoord"
**Context**: OPERATIONS - Deployment Setup; fixing CI
---
## Deployment Setup - CI Run 528
**Timestamp**: 2026-10-18T22:56:26Z
**User Input**: "(none — monitoring as authorised)"
**AI Response**: "Run 528: check job passed fully (lint, format, 93 tests, build, audit:deps, audit:dev). Lighthouse job: Playwright Chromium 140 for linux-arm64 downloaded and started, healthcheck and preview server OK; first measurement failed with TARGET_CRASHED (browser tab crashed). Cause: container /dev/shm limited to 64 MB. Added --disable-dev-shm-usage to LIGHTHOUSE_CHROME_FLAGS; verified locally that a measurement with the new flags succeeds. Committing, pushing and watching the next run."
**Context**: OPERATIONS - Deployment Setup; fixing CI
---