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.

ci(webkit): split into parallel Desktop/Mobile Safari jobs and run alongside security-gate

LearningCircuitcceb0f9b77f7
diff --git a/.github/workflows/playwright-webkit-tests.yml b/.github/workflows/playwright-webkit-tests.yml
index 19f61273cf..de02da82ab 100644
--- a/.github/workflows/playwright-webkit-tests.yml
+++ b/.github/workflows/playwright-webkit-tests.yml
@@ -9,7 +9,8 @@ on:
permissions: {} # Minimal top-level for OSSF Scorecard Token-Permissions
jobs:
- playwright-webkit-tests:
+ # Shared setup: start server, register user, then run Desktop Safari tests
+ desktop-safari:
runs-on: ubuntu-latest
permissions:
contents: read
@@ -92,7 +93,7 @@ jobs:
npm ci
node register_ci_user.js http://127.0.0.1:5000
- - name: Run Playwright WebKit Tests
+ - name: Run Desktop Safari Tests
working-directory: tests/ui_tests/playwright
env:
CI: true
@@ -101,14 +102,14 @@ jobs:
TEST_PASSWORD: testpass123
run: |
npx playwright test \
- --project="Mobile Safari" --project="Desktop Safari" \
+ --project="Desktop Safari" \
"all-pages-mobile|desktop-layout|interactive-states"
- name: Upload Playwright Report
if: always()
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
- name: playwright-report
+ name: playwright-report-desktop-safari
path: |
tests/ui_tests/playwright/playwright-report/
tests/ui_tests/playwright/test-results/
@@ -118,7 +119,128 @@ jobs:
uses: EnricoMi/publish-unit-test-result-action@27d65e188ec43221b20d26de30f4892fad91df2f # v2.22.0
with:
files: tests/ui_tests/playwright/test-results/results.xml
- check_name: Playwright WebKit Test Results
+ check_name: Desktop Safari Test Results
+ comment_mode: off
+
+ - name: Stop server
+ if: always()
+ run: |
+ if [ -n "$SERVER_PID" ]; then
+ kill "$SERVER_PID" || true
+ fi
+ pkill -f "python -m local_deep_research.web.app" || true
+
+ # Mobile Safari tests run in parallel on a separate runner
+ mobile-safari:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ checks: write
+
+ steps:
+ - name: Harden the runner (Audit all outbound calls)
+ uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
+ with:
+ egress-policy: audit
+
+ - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
+ with:
+ persist-credentials: false
+
+ - name: Set up PDM
+ uses: pdm-project/setup-pdm@94a823180e06fcde4ad29308721954a521c96ed0 # v4
+ with:
+ python-version: '3.12'
+ version: 2.26.2
+ cache: true
+
+ - name: Install Python dependencies
+ run: |
+ pdm install -d
+
+ - name: Setup Node.js
+ uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6
+ with:
+ node-version: '20'
+ cache: 'npm'
+ cache-dependency-path: tests/ui_tests/playwright/package.json
+
+ - name: Install Playwright dependencies
+ working-directory: tests/ui_tests/playwright
+ run: |
+ npm ci
+ # Install chromium for auth setup step + webkit for Safari tests
+ npx playwright install chromium webkit --with-deps
+
+ - name: Setup test directories
+ run: |
+ mkdir -p data/encrypted_databases
+ echo "Created data directories for tests"
+
+ - name: Start LDR server
+ env:
+ CI: true
+ TEST_ENV: true
+ FLASK_ENV: testing
+ LDR_DATA_DIR: ${{ github.workspace }}/data
+ DISABLE_RATE_LIMITING: true
+ SECRET_KEY: test-secret-key-for-ci
+ run: |
+ export PYTHONPATH="$PWD/src:$PYTHONPATH"
+ echo "Starting server with LDR_DATA_DIR=$LDR_DATA_DIR"
+ pdm run python -m local_deep_research.web.app &
+ SERVER_PID=$!
+ echo "SERVER_PID=$SERVER_PID" >> "$GITHUB_ENV"
+
+ # Wait for server to be ready
+ for i in {1..30}; do
+ if curl -s http://127.0.0.1:5000 > /dev/null; then
+ echo "Server is ready"
+ break
+ fi
+ echo "Waiting for server... ($i/30)"
+ sleep 2
+ done
+
+ # Verify server is running
+ if ! curl -s http://127.0.0.1:5000 > /dev/null; then
+ echo "Server failed to start"
+ exit 1
+ fi
+
+ - name: Register CI test user
+ working-directory: tests/ui_tests
+ run: |
+ npm ci
+ node register_ci_user.js http://127.0.0.1:5000
+
+ - name: Run Mobile Safari Tests
+ working-directory: tests/ui_tests/playwright
+ env:
+ CI: true
+ TEST_BASE_URL: http://127.0.0.1:5000
+ TEST_USERNAME: test_admin
+ TEST_PASSWORD: testpass123
+ run: |
+ npx playwright test \
+ --project="Mobile Safari" \
+ "all-pages-mobile|desktop-layout|interactive-states"
+
+ - name: Upload Playwright Report
+ if: always()
+ uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
+ with:
+ name: playwright-report-mobile-safari
+ path: |
+ tests/ui_tests/playwright/playwright-report/
+ tests/ui_tests/playwright/test-results/
+
+ - name: Publish Test Results
+ if: always()
+ uses: EnricoMi/publish-unit-test-result-action@27d65e188ec43221b20d26de30f4892fad91df2f # v2.22.0
+ with:
+ files: tests/ui_tests/playwright/test-results/results.xml
+ check_name: Mobile Safari Test Results
comment_mode: off
- name: Stop server
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 2f093f73cf..af8245dd09 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -38,7 +38,7 @@ jobs:
# This gate is advisory: failures are logged but the release proceeds.
# ============================================================================
test-gate:
- needs: [security-gate]
+ # Runs in parallel with security-gate (no dependency)
uses: ./.github/workflows/playwright-webkit-tests.yml
permissions:
contents: read