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: remove mcp-tests.yml and owasp-zap-full-scan.yml (round 5) (#2108)

LearningCircuit2c09aad4db0a
diff --git a/.github/workflows/mcp-tests.yml b/.github/workflows/mcp-tests.yml
deleted file mode 100644
index 9c8bacf713..0000000000
--- a/.github/workflows/mcp-tests.yml
+++ /dev/null
@@ -1,124 +0,0 @@
-name: MCP Server Tests
-
-on:
- push:
- branches: [ main, dev ]
- paths:
- - 'src/local_deep_research/mcp/**'
- - 'src/local_deep_research/advanced_search_system/strategies/mcp_strategy.py'
- - 'tests/mcp/**'
- - 'scripts/mcp_smoke_test.sh'
- - '.github/workflows/mcp-tests.yml'
- pull_request:
- branches: [ main, dev ]
- paths:
- - 'src/local_deep_research/mcp/**'
- - 'src/local_deep_research/advanced_search_system/strategies/mcp_strategy.py'
- - 'tests/mcp/**'
- - 'scripts/mcp_smoke_test.sh'
- - '.github/workflows/mcp-tests.yml'
- workflow_dispatch:
-
-permissions:
- contents: read
-
-jobs:
- mcp-tests:
- name: MCP Server Tests
- runs-on: ubuntu-latest
- timeout-minutes: 15
-
- steps:
- - name: Harden the runner (Audit all outbound calls)
- uses: step-security/harden-runner@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1
- with:
- egress-policy: audit
-
- - name: Checkout code
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- with:
- persist-credentials: false
-
- - name: Set up Python
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
- with:
- python-version: '3.12'
-
- - name: Install dependencies
- run: |
- python -m pip install pip==25.0
- pip install pdm==2.26.2
- pdm install --dev --no-editable
- # Install MCP optional dependency
- pdm run pip install "mcp[cli]>=1.2.0"
-
- - name: Check if MCP server module exists
- id: check-mcp
- run: |
- if [ -f "src/local_deep_research/mcp/server.py" ]; then
- echo "mcp_exists=true" >> "$GITHUB_OUTPUT"
- echo "MCP server module found, will run tests"
- else
- echo "mcp_exists=false" >> "$GITHUB_OUTPUT"
- echo "MCP server module not found (feature not yet merged), skipping tests"
- fi
-
- - name: Run MCP smoke tests
- if: steps.check-mcp.outputs.mcp_exists == 'true'
- run: pdm run bash scripts/mcp_smoke_test.sh
-
- - name: Run MCP unit tests
- if: steps.check-mcp.outputs.mcp_exists == 'true'
- run: |
- pdm run pytest tests/mcp/ -v --tb=short -n auto \
- --ignore=tests/mcp/test_mcp_strategy.py
- env:
- LDR_USE_FALLBACK_LLM: "true"
- LDR_TESTING_WITH_MOCKS: "true"
-
- - name: Run MCP strategy tests
- if: steps.check-mcp.outputs.mcp_exists == 'true'
- run: |
- pdm run pytest tests/mcp/test_mcp_strategy.py -v --tb=short -n auto
- env:
- LDR_USE_FALLBACK_LLM: "true"
- LDR_TESTING_WITH_MOCKS: "true"
-
- - name: Skip notice
- if: steps.check-mcp.outputs.mcp_exists != 'true'
- run: |
- echo "::notice::MCP server module not yet implemented. Tests will run once feature/mcp-server is merged."
-
- - name: Generate test summary
- if: always()
- env:
- MCP_EXISTS: ${{ steps.check-mcp.outputs.mcp_exists }}
- run: |
- {
- echo "## MCP Server Test Summary"
- echo ""
- if [ "$MCP_EXISTS" != "true" ]; then
- echo "### ⏭️ Tests Skipped"
- echo ""
- echo "MCP server module (\`src/local_deep_research/mcp/server.py\`) not yet implemented."
- echo "Tests will run automatically once the MCP feature branch is merged."
- else
- echo "### What was tested:"
- echo "- 🔌 MCP server module loading"
- echo "- 🔧 Discovery tools (list_strategies, list_search_engines, get_configuration)"
- echo "- 🧪 Unit tests for all MCP tools"
- echo "- 🤖 MCP strategy (ReAct pattern) tests"
- echo "- 🚀 Server startup verification"
- echo ""
- echo "### MCP Tools Tested:"
- echo "| Tool | Description |"
- echo "|------|-------------|"
- echo "| \`quick_research\` | Fast research summary (1-5 min) |"
- echo "| \`detailed_research\` | Comprehensive analysis (5-15 min) |"
- echo "| \`generate_report\` | Full markdown report (10-30 min) |"
- echo "| \`analyze_documents\` | Search local collections |"
- echo "| \`list_search_engines\` | List available search engines |"
- echo "| \`list_strategies\` | List research strategies |"
- echo "| \`get_configuration\` | Get current config |"
- fi
- } >> "$GITHUB_STEP_SUMMARY"
diff --git a/.github/workflows/owasp-zap-full-scan.yml b/.github/workflows/owasp-zap-full-scan.yml
deleted file mode 100644
index cd7b99515f..0000000000
--- a/.github/workflows/owasp-zap-full-scan.yml
+++ /dev/null
@@ -1,105 +0,0 @@
-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@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1
- with:
- egress-policy: audit
-
- - name: Checkout code
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- with:
- persist-credentials: false
-
- - name: Set up Python
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
- 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
diff --git a/.github/workflows/owasp-zap-scan.yml b/.github/workflows/owasp-zap-scan.yml
index 4dfe04e679..8ecf681770 100644
--- a/.github/workflows/owasp-zap-scan.yml
+++ b/.github/workflows/owasp-zap-scan.yml
@@ -1,7 +1,6 @@
name: OWASP ZAP Security Scan
# Baseline and API scans - called by security-release-gate.yml
-# Full scan is in owasp-zap-full-scan.yml.
on:
workflow_call: # Called by security-release-gate.yml