From 295adc2a9c5059f1f5af69d1d607a490233cae2f Mon Sep 17 00:00:00 2001 From: Sluijsens Date: Mon, 19 Oct 2026 00:56:27 +0200 Subject: [PATCH] Fixes Chrome crashing in the CI container during Lighthouse 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 --- .gitea/workflows/continuous_integration.yaml | 9 ++++++--- aidlc-docs/features/frontend-shell/audit.md | 12 ++++++++++++ 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/continuous_integration.yaml b/.gitea/workflows/continuous_integration.yaml index e18ac8c..f3aedb9 100644 --- a/.gitea/workflows/continuous_integration.yaml +++ b/.gitea/workflows/continuous_integration.yaml @@ -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: diff --git a/aidlc-docs/features/frontend-shell/audit.md b/aidlc-docs/features/frontend-shell/audit.md index 483a369..c200e67 100644 --- a/aidlc-docs/features/frontend-shell/audit.md +++ b/aidlc-docs/features/frontend-shell/audit.md @@ -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 + +---