~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(ci): Optimize CI workflows to reduce timeout and skipped noise
LearningCircuit637d03be4b54
diff --git a/.github/workflows/critical-ui-tests.yml b/.github/workflows/critical-ui-tests.ymlindex 57abdea583..b50b0d1f5c 100644--- a/.github/workflows/critical-ui-tests.yml+++ b/.github/workflows/critical-ui-tests.yml@@ -15,7 +15,9 @@ jobs:runs-on: ubuntu-latest# Increased timeout because registration flow can take 2+ minutes# due to encrypted DB creation, key derivation, and settings import- timeout-minutes: 45+ # With 11 tests each potentially doing registration (1-2 min each),+ # plus database contention, 60 min provides needed buffer+ timeout-minutes: 60# No services needed - using SQLite databases@@ -157,15 +159,10 @@ jobs:echo "Running registration full flow test..."node test_register_full_flow.js || exit 1- # Skipped: change password validation creates dedicated user (slow DB creation)- # echo "Running change password validation test..."- # node test_change_password_validation.js || exit 1-- echo "Running settings validation test..."- node test_settings_validation.js || exit 1-- echo "Running research form validation test..."- node test_research_form_validation.js || exit 1+ # Note: Validation tests moved to extended-ui-tests.yml for faster critical path:+ # - test_change_password_validation.js+ # - test_settings_validation.js+ # - test_research_form_validation.js# Critical research submission testsecho "Running critical research submission tests..."diff --git a/.github/workflows/extended-ui-tests.yml b/.github/workflows/extended-ui-tests.ymlindex 50438fdf2c..40e8b048ab 100644--- a/.github/workflows/extended-ui-tests.yml+++ b/.github/workflows/extended-ui-tests.yml@@ -115,6 +115,11 @@ jobs:const path = require('path');const tests = [+ // Validation tests (moved from critical-ui-tests for faster critical path)+ { name: 'Change Password Validation', file: 'test_change_password_validation.js' },+ { name: 'Settings Validation', file: 'test_settings_validation.js' },+ { name: 'Research Form Validation', file: 'test_research_form_validation.js' },+// Critical flows not in main test suite{ name: 'Research Submit', file: 'test_research_submit.js' },// Skipped: Research Cancellation has flaky 30s navigation timeouts in CIdiff --git a/.github/workflows/osv-scanner-scheduled.yml b/.github/workflows/osv-scanner-scheduled.ymlnew file mode 100644index 0000000000..276b69178e--- /dev/null+++ b/.github/workflows/osv-scanner-scheduled.yml@@ -0,0 +1,35 @@+# This workflow uses actions that are not certified by GitHub.+# They are provided by a third-party and are governed by+# separate terms of service, privacy policy, and support+# documentation.++# Scheduled OSV-Scanner scanning for vulnerabilities.+# Runs on push to main and weekly schedule.+# Split from osv-scanner.yml to prevent "skipped" noise on PRs.+#+# For more examples and options, including how to ignore specific vulnerabilities,+# see https://google.github.io/osv-scanner/github-action/++name: OSV-Scanner (Scheduled)++on:+ schedule:+ - cron: '41 21 * * 1' # Weekly on Monday at 21:41 UTC+ push:+ branches: [ "main" ]+ workflow_dispatch:++permissions: {} # Minimal top-level for OSSF Scorecard Token-Permissions++jobs:+ scan-scheduled:+ permissions:+ security-events: write+ contents: read+ actions: read+ uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@375a0e8ebdc98e99b02ac4338a724f5750f21213" # v2.3.1+ with:+ scan-args: |-+ -r+ --skip-git+ ./diff --git a/.github/workflows/osv-scanner.yml b/.github/workflows/osv-scanner.ymlindex 62caa079df..379e52e012 100644--- a/.github/workflows/osv-scanner.yml+++ b/.github/workflows/osv-scanner.yml@@ -3,8 +3,8 @@# separate terms of service, privacy policy, and support# documentation.-# A sample workflow which sets up periodic OSV-Scanner scanning for vulnerabilities,-# in addition to a PR check which fails if new vulnerabilities are introduced.+# OSV-Scanner PR check which fails if new vulnerabilities are introduced.+# Scheduled scanning is in osv-scanner-scheduled.yml (split to prevent "skipped" noise on PRs).## For more examples and options, including how to ignore specific vulnerabilities,# see https://google.github.io/osv-scanner/github-action/@@ -15,28 +15,12 @@ on:pull_request:branches: [ "main" ]merge_group:- schedule:- - cron: '41 21 * * 1'- push:branches: [ "main" ]permissions: {} # Minimal top-level for OSSF Scorecard Token-Permissionsjobs:- scan-scheduled:- if: ${{ github.event_name == 'push' || github.event_name == 'schedule' }}- permissions:- security-events: write- contents: read- actions: read- uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@375a0e8ebdc98e99b02ac4338a724f5750f21213" # v2.3.1- with:- scan-args: |-- -r- --skip-git- ./scan-pr:- if: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}permissions:security-events: writecontents: readdiff --git a/.github/workflows/owasp-zap-full-scan.yml b/.github/workflows/owasp-zap-full-scan.ymlnew file mode 100644index 0000000000..1a73b9832c--- /dev/null+++ b/.github/workflows/owasp-zap-full-scan.yml@@ -0,0 +1,106 @@+name: OWASP ZAP Full Scan (Scheduled)++# Full security scan runs nightly and on manual trigger.+# Split from owasp-zap-scan.yml to prevent "skipped" noise on PRs.++on:+ schedule:+ # Run full scan nightly at 3 AM UTC+ - cron: '0 3 * * *'+ workflow_dispatch:++# Restrict top-level permissions (jobs define their own)+permissions: {}++jobs:+ zap-full-scan:+ name: ZAP Full Scan+ runs-on: ubuntu-latest+ permissions:+ contents: read+ security-events: write++ steps:+ - name: Harden the runner (Audit all outbound calls)+ uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2.13.3+ with:+ egress-policy: audit++ - name: Checkout code+ uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1++ with:+ persist-credentials: false++ - name: Set up Python+ uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6+ with:+ python-version: '3.11'++ - name: Set up PDM+ uses: pdm-project/setup-pdm@94a823180e06fcde4ad29308721954a521c96ed0 # v4+ with:+ python-version: '3.11'++ - name: Install system dependencies for SQLCipher+ run: |+ sudo apt-get update+ sudo apt-get install -y libsqlcipher-dev++ - name: Install dependencies+ run: |+ pdm sync -d++ - name: Start LDR server for testing+ run: |+ export CI=true+ export LDR_USE_FALLBACK_LLM=true+ export PYTHONPATH=$PWD/src:$PYTHONPATH+ pdm run python -m local_deep_research.web.app > server.log 2>&1 &+ SERVER_PID=$!+ echo "$SERVER_PID" > server.pid++ # Wait for server to start+ for _ in {1..30}; do+ if curl -s http://localhost:5000/api/v1/health > /dev/null; then+ echo "Server started successfully"+ break+ fi+ sleep 1+ done++ # Verify server is running+ if ! curl -s http://localhost:5000/api/v1/health > /dev/null; then+ echo "Server failed to start"+ cat server.log+ exit 1+ fi++ - name: Run ZAP Full Scan+ uses: zaproxy/action-full-scan@3c58388149901b9a03b7718852c5ba889646c27c # v0.13.0+ with:+ target: 'http://localhost:5000'+ rules_file_name: '.zap/rules.tsv'+ cmd_options: '-a -j'+ allow_issue_writing: false+ fail_action: false+ artifact_name: zapfull++ - name: Upload ZAP full scan results+ uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0+ if: always()+ with:+ name: zap-full-scan-results+ path: |+ report_html.html+ report_json.json+ report_md.md+ retention-days: 90++ - name: Stop server+ if: always()+ run: |+ if [ -f server.pid ]; then+ kill "$(cat server.pid)" || true+ rm server.pid+ fidiff --git a/.github/workflows/owasp-zap-scan.yml b/.github/workflows/owasp-zap-scan.ymlindex 73050b6281..d4cc150bac 100644--- a/.github/workflows/owasp-zap-scan.yml+++ b/.github/workflows/owasp-zap-scan.yml@@ -1,13 +1,13 @@name: OWASP ZAP Security Scan+# Baseline and API scans run on push/PR for quick feedback.+# Full scan is in owasp-zap-full-scan.yml (split to prevent "skipped" noise on PRs).+on:push:branches: [ main, dev ]pull_request:branches: [ main, dev ]- schedule:- # Run full scan nightly at 3 AM UTC- - cron: '0 3 * * *'workflow_dispatch:# Restrict top-level permissions (jobs define their own)@@ -17,7 +17,6 @@ jobs:zap-baseline-scan:name: ZAP Baseline Scanruns-on: ubuntu-latest- if: github.event_name != 'schedule'permissions:contents: readsecurity-events: write@@ -107,103 +106,9 @@ jobs:rm server.pidfi- zap-full-scan:- name: ZAP Full Scan- runs-on: ubuntu-latest- if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'- permissions:- contents: read- security-events: write-- steps:- - name: Harden the runner (Audit all outbound calls)- uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0- with:- egress-policy: audit-- - name: Checkout code- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1-- with:- persist-credentials: false-- - name: Set up Python- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6- with:- python-version: '3.11'-- - name: Set up PDM- uses: pdm-project/setup-pdm@94a823180e06fcde4ad29308721954a521c96ed0 # v4- with:- python-version: '3.11'-- - name: Install system dependencies for SQLCipher- run: |- sudo apt-get update- sudo apt-get install -y libsqlcipher-dev-- - name: Install dependencies- run: |- pdm sync -d-- - name: Start LDR server for testing- run: |- export CI=true- export LDR_USE_FALLBACK_LLM=true- export PYTHONPATH=$PWD/src:$PYTHONPATH- pdm run python -m local_deep_research.web.app > server.log 2>&1 &- SERVER_PID=$!- echo "$SERVER_PID" > server.pid-- # Wait for server to start- for _ in {1..30}; do- if curl -s http://localhost:5000/api/v1/health > /dev/null; then- echo "Server started successfully"- break- fi- sleep 1- done-- # Verify server is running- if ! curl -s http://localhost:5000/api/v1/health > /dev/null; then- echo "Server failed to start"- cat server.log- exit 1- fi-- - name: Run ZAP Full Scan- uses: zaproxy/action-full-scan@3c58388149901b9a03b7718852c5ba889646c27c # v0.13.0- with:- target: 'http://localhost:5000'- rules_file_name: '.zap/rules.tsv'- cmd_options: '-a -j'- allow_issue_writing: false- fail_action: false- artifact_name: zapfull-- - name: Upload ZAP full scan results- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0- if: always()- with:- name: zap-full-scan-results- path: |- report_html.html- report_json.json- report_md.md- retention-days: 90-- - name: Stop server- if: always()- run: |- if [ -f server.pid ]; then- kill "$(cat server.pid)" || true- rm server.pid- fi-zap-api-scan:name: ZAP API Scanruns-on: ubuntu-latest- if: github.event_name != 'schedule'permissions:contents: readsecurity-events: write