~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.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
fix: Use Playwright's Chromium for Puppeteer tests in Docker
LearningCircuitda4a7ff07f55
diff --git a/Dockerfile b/Dockerfileindex 9b5024adcc..4773740b7b 100644--- a/Dockerfile+++ b/Dockerfile@@ -67,26 +67,25 @@ RUN apt-get update && apt-get install -y \# Set up Puppeteer environmentENV PUPPETEER_CACHE_DIR=/app/puppeteer-cache+ENV DOCKER_ENV=true+ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true# Create puppeteer cache directory with proper permissionsRUN mkdir -p /app/puppeteer-cache && chmod -R 777 /app/puppeteer-cache+# Install Playwright with Chromium first (before npm packages)+RUN playwright install --with-deps chromium+# Copy test package filesCOPY tests/api_tests_with_login/package.json /install/tests/api_tests_with_login/COPY tests/ui_tests/package.json /install/tests/ui_tests/-# Install npm packages (Puppeteer will download Chrome for Testing)+# Install npm packages (Skip Chrome download, will use Playwright's Chromium)WORKDIR /install/tests/api_tests_with_loginRUN npm installWORKDIR /install/tests/ui_testsRUN npm install-# Explicitly install Chrome for Puppeteer-WORKDIR /install/tests/api_tests_with_login-RUN npx puppeteer browsers install chrome-WORKDIR /install/tests/ui_tests-RUN npx puppeteer browsers install chrome-# Copy test files to /app where they will be run fromRUN mkdir -p /app && cp -r /install/tests /app/@@ -95,9 +94,6 @@ RUN chmod -R 755 /app/puppeteer-cacheWORKDIR /install-# Install Playwright for other browser testing needs-RUN playwright install --with-deps chromium-# Install the package using PDMRUN pdm install --check --no-editable# Configure path to default to the venv python.diff --git a/tests/api_tests_with_login/puppeteer_config.js b/tests/api_tests_with_login/puppeteer_config.jsindex 00e92a2f95..b1628457d4 100644--- a/tests/api_tests_with_login/puppeteer_config.js+++ b/tests/api_tests_with_login/puppeteer_config.js@@ -16,7 +16,35 @@ function getPuppeteerLaunchOptions(additionalOptions = {}) {]};- // Remove --single-process as it can cause issues with some operations+ // In Docker/CI environments, explicitly skip Chrome download and use system Chrome/Chromium+ if (process.env.CI || process.env.DOCKER_ENV) {+ // Try to use Playwright's Chromium if available+ const possiblePaths = [+ '/root/.cache/ms-playwright/chromium-*/chrome-linux/chrome',+ '/ms-playwright/chromium-*/chrome-linux/chrome',+ '/usr/lib/chromium/chromium',+ '/usr/bin/chromium-browser',+ '/usr/bin/chromium'+ ];++ const { execSync } = require('child_process');+ for (const pathPattern of possiblePaths) {+ try {+ const chromiumPath = execSync(`ls ${pathPattern} 2>/dev/null | head -1`, { encoding: 'utf8' }).trim();+ if (chromiumPath && chromiumPath.length > 0) {+ console.log(`Using Chromium at: ${chromiumPath}`);+ defaultOptions.executablePath = chromiumPath;+ break;+ }+ } catch (e) {+ // Continue to next path+ }+ }++ if (!defaultOptions.executablePath) {+ console.warn('Could not find Chromium/Chrome binary, Puppeteer will try to use its own');+ }+ }return { ...defaultOptions, ...additionalOptions };}diff --git a/tests/ui_tests/puppeteer_config.js b/tests/ui_tests/puppeteer_config.jsindex 41ecb9dd1a..fe27afcb6d 100644--- a/tests/ui_tests/puppeteer_config.js+++ b/tests/ui_tests/puppeteer_config.js@@ -16,7 +16,35 @@ function getPuppeteerLaunchOptions(additionalOptions = {}) {]};- // Remove --single-process as it can cause issues with some operations+ // In Docker/CI environments, explicitly skip Chrome download and use system Chrome/Chromium+ if (process.env.CI || process.env.DOCKER_ENV) {+ // Try to use Playwright's Chromium if available+ const possiblePaths = [+ '/root/.cache/ms-playwright/chromium-*/chrome-linux/chrome',+ '/ms-playwright/chromium-*/chrome-linux/chrome',+ '/usr/lib/chromium/chromium',+ '/usr/bin/chromium-browser',+ '/usr/bin/chromium'+ ];++ const { execSync } = require('child_process');+ for (const pathPattern of possiblePaths) {+ try {+ const chromiumPath = execSync(`ls ${pathPattern} 2>/dev/null | head -1`, { encoding: 'utf8' }).trim();+ if (chromiumPath && chromiumPath.length > 0) {+ console.log(`Using Chromium at: ${chromiumPath}`);+ defaultOptions.executablePath = chromiumPath;+ break;+ }+ } catch (e) {+ // Continue to next path+ }+ }++ if (!defaultOptions.executablePath) {+ console.warn('Could not find Chromium/Chrome binary, Puppeteer will try to use its own');+ }+ }return { ...defaultOptions, ...additionalOptions };}