Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix(ci): resolve Playwright browser mismatch in accessibility tests (#3605)

LearningCircuit3c61c87959cc
diff --git a/.github/workflows/docker-tests.yml b/.github/workflows/docker-tests.yml
index bbb97c48ae..895eac347a 100644
--- a/.github/workflows/docker-tests.yml
+++ b/.github/workflows/docker-tests.yml
@@ -779,8 +779,9 @@ jobs:
-w /app \
${{ env.TEST_IMAGE }} \
bash -c '\
+ if [ ! -x /usr/local/bin/chrome ]; then echo "ERROR: Chrome not found at /usr/local/bin/chrome" >&2; exit 1; fi && \
echo "#!/bin/bash" > /tmp/chrome-wrapper.sh && \
- echo "exec /root/.cache/ms-playwright/chromium-1208/chrome-linux64/chrome --no-sandbox --headless \"\$@\"" >> /tmp/chrome-wrapper.sh && \
+ echo "exec /usr/local/bin/chrome --no-sandbox --headless \"\$@\"" >> /tmp/chrome-wrapper.sh && \
chmod +x /tmp/chrome-wrapper.sh && \
CHROME_PATH=/tmp/chrome-wrapper.sh \
/install/tests/accessibility_tests/node_modules/.bin/lhci autorun --config=/app/lighthouserc.json'
diff --git a/Dockerfile b/Dockerfile
index 736734cc0f..58f2456b9a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -165,18 +165,24 @@ RUN for i in 1 2 3; do if npm ci; then break; else echo "npm ci attempt $i faile
WORKDIR /install/tests/accessibility_tests
RUN for i in 1 2 3; do if npm ci; then break; else echo "npm ci attempt $i failed, retrying..."; sleep 5; fi; done
-# Set CHROME_BIN to help Puppeteer find Chrome from Playwright
-# Try to find and set Chrome binary path from Playwright's installation
-RUN CHROME_PATH=$(find /root/.cache/ms-playwright -name chrome -type f 2>/dev/null | head -1) && \
- if [ -n "$CHROME_PATH" ]; then \
- echo "export CHROME_BIN=$CHROME_PATH" >> /etc/profile.d/chrome.sh; \
- echo "export PUPPETEER_EXECUTABLE_PATH=$CHROME_PATH" >> /etc/profile.d/chrome.sh; \
- fi || true
+# Install Node.js Playwright browsers (version may differ from Python playwright)
+RUN npx playwright install chromium
+
+# Create a stable symlink to Chrome for Puppeteer/Lighthouse.
+# Use `npx playwright executable-path` to get the exact Chrome binary path from
+# the Node.js Playwright installation (avoids hard-coding revision directories).
+RUN CHROME_PATH=$(npx playwright executable-path chromium 2>/dev/null) && \
+ if [ -n "$CHROME_PATH" ] && [ -x "$CHROME_PATH" ]; then \
+ echo "Symlinking Chrome from: $CHROME_PATH"; \
+ ln -sf "$CHROME_PATH" /usr/local/bin/chrome; \
+ else \
+ echo "WARNING: No Chrome binary found for Puppeteer/Lighthouse"; \
+ fi
# Set environment variables for Puppeteer to use Playwright's Chrome
ENV PUPPETEER_SKIP_DOWNLOAD=true
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
-ENV PUPPETEER_EXECUTABLE_PATH=/root/.cache/ms-playwright/chromium-1208/chrome-linux64/chrome
+ENV PUPPETEER_EXECUTABLE_PATH=/usr/local/bin/chrome
# Copy test files to /app where they will be run from
RUN mkdir -p /app && cp -r /install/tests /app/