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: use the hash-locked bootstrap in the fuzz and MCP workflows (#8023)

LearningCircuit524863a087d0
diff --git a/.github/SECURITY_SCORECARD.md b/.github/SECURITY_SCORECARD.md
index 1c4e9e9243..ccf3abd022 100644
--- a/.github/SECURITY_SCORECARD.md
+++ b/.github/SECURITY_SCORECARD.md
@@ -68,13 +68,12 @@ The remaining pip commands use exact version pinning.
| File | Line | Command | Status |
|------|------|---------|--------|
-| Dockerfile | 69-70 | `pip3 install pip==26.2` `pip install pdm==2.26.2...` | Version-pinned |
| Dockerfile | 285 | `pip3 install pip==26.2` | Version-pinned |
| check-env-vars.yml | 36 | `pip install loguru==0.7.3 sqlalchemy==2.0.36...` | Version-pinned |
| checkov.yml | 33 | `pip install checkov==3.2.499` | Version-pinned |
-| fuzz.yml | 51-52 | `pip install pip==25.0` `pip install pdm==2.26.2` | Version-pinned |
-| mypy-type-check.yml | 39,47-48 | `pip install pdm==2.26.2 mypy==1.14.1...` | Version-pinned |
-| publish.yml | 139,328 | `pip install pdm==2.26.2` `pip install wheel==0.46.2` | Version-pinned |
+| fuzz.yml | Install step | `python -m pip install --require-hashes --only-binary=:all: -r requirements/bootstrap-ci.txt` | Hash-pinned (pip + pdm) |
+| mcp-tests.yml | Install step | `python -m pip install --require-hashes --only-binary=:all: -r requirements/bootstrap-ci.txt` | Hash-pinned (pip + pdm) |
+| mypy-type-check.yml | Install step | `python -m pip install --require-hashes --only-binary=:all: -r requirements/bootstrap-ci.txt` | Hash-pinned (pip + pdm) |
| puppeteer-e2e-tests.yml | 65 | `pip install -e .` | Local package |
| semgrep.yml | Install step | `python -m pip install --require-hashes --only-binary=:all: -r requirements/semgrep.txt` | Hash-pinned (Semgrep 1.181.0) |
| dependency-review.yml | Install step | `python -m pip install --require-hashes --only-binary=:all: -r requirements/dependency-review.txt` | Hash-pinned |
diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml
index 0ed4d1945e..8d983e6a99 100644
--- a/.github/workflows/fuzz.yml
+++ b/.github/workflows/fuzz.yml
@@ -9,6 +9,8 @@ on:
- 'tests/fuzz/**'
- 'src/local_deep_research/security/**'
- 'src/local_deep_research/utilities/**'
+ - 'requirements/bootstrap-ci.txt'
+ - '.github/workflows/fuzz.yml'
# No concurrency group — intentionally omitted.
# Previous attempt (#3554, reverted #3599) used cancel-in-progress which
@@ -48,20 +50,30 @@ jobs:
path: |
~/.cache/pdm
.venv
- key: pdm-${{ runner.os }}-${{ hashFiles('pdm.lock') }}
+ key: fuzz-pdm-${{ runner.os }}-${{ hashFiles('requirements/bootstrap-ci.txt') }}-${{ hashFiles('pdm.lock') }}
restore-keys: |
- pdm-${{ runner.os }}-
+ fuzz-pdm-${{ runner.os }}-${{ hashFiles('requirements/bootstrap-ci.txt') }}-
- name: Install dependencies
run: |
- python -m pip install --upgrade pip==25.0
- pip install pdm==2.26.2
- # Retry pdm install up to 3 times with backoff
+ python -m pip install --require-hashes --only-binary=:all: -r requirements/bootstrap-ci.txt
+ # Retry pdm install up to 3 times with backoff; fail the step if
+ # every attempt fails (the loop itself always ends with status 0).
+ installed=false
for i in 1 2 3; do
- pdm install --dev --no-editable && break
- echo "Attempt $i failed, retrying in $((i * 10)) seconds..."
- sleep $((i * 10))
- done || exit 1
+ if pdm install --dev --no-editable; then
+ installed=true
+ break
+ fi
+ if [ "$i" -lt 3 ]; then
+ echo "Attempt $i failed, retrying in $((i * 10)) seconds..."
+ sleep $((i * 10))
+ fi
+ done
+ if [ "$installed" != true ]; then
+ echo "::error::pdm install failed after 3 attempts"
+ exit 1
+ fi
- name: Run fuzz tests
run: |
diff --git a/.github/workflows/mcp-tests.yml b/.github/workflows/mcp-tests.yml
index 7b29689b0c..4461333de3 100644
--- a/.github/workflows/mcp-tests.yml
+++ b/.github/workflows/mcp-tests.yml
@@ -10,6 +10,7 @@ on:
- 'tests/test_cli_and_mcp_entrypoints.py'
- 'tests/security/test_mcp_stdio_only_tripwire.py'
- 'scripts/mcp_smoke_test.sh'
+ - 'requirements/bootstrap-ci.txt'
- '.github/workflows/mcp-tests.yml'
pull_request:
branches: [ main ]
@@ -20,6 +21,7 @@ on:
- 'tests/test_cli_and_mcp_entrypoints.py'
- 'tests/security/test_mcp_stdio_only_tripwire.py'
- 'scripts/mcp_smoke_test.sh'
+ - 'requirements/bootstrap-ci.txt'
- '.github/workflows/mcp-tests.yml'
workflow_dispatch:
@@ -56,8 +58,7 @@ jobs:
- name: Install dependencies
run: |
- python -m pip install pip==25.0
- pip install pdm==2.26.2
+ python -m pip install --require-hashes --only-binary=:all: -r requirements/bootstrap-ci.txt
pdm install --dev --no-editable -G mcp
- name: Check if MCP server module exists
diff --git a/requirements/README.md b/requirements/README.md
index 89a3d84bad..4fbc6e118b 100644
--- a/requirements/README.md
+++ b/requirements/README.md
@@ -5,9 +5,10 @@ with SHA256 hashes. Regenerate `.in` files using the pip-tools command in their
headers on Python 3.12, and review version and hash changes before committing
the input and export together. Installs use `--require-hashes`.
-Mypy and Milvus use the existing `bootstrap-ci.txt` toolchain on Python 3.12.
-The mypy environment cache includes the bootstrap hash so changes to that
-toolchain cannot reuse an environment created by an older bootstrap.
+Mypy, Milvus, fuzz and MCP use the existing `bootstrap-ci.txt` toolchain on
+Python 3.12. The mypy and fuzz environment caches include the bootstrap hash so
+changes to that toolchain cannot reuse an environment created by an older
+bootstrap.
Semgrep is pinned with `==` in `semgrep.in`, and
`tests/ci/test_semgrep_workflow.py` checks that `semgrep.txt` locks the same
diff --git a/requirements/bootstrap-ci.txt b/requirements/bootstrap-ci.txt
index 966a127e37..6691257bcd 100644
--- a/requirements/bootstrap-ci.txt
+++ b/requirements/bootstrap-ci.txt
@@ -18,7 +18,8 @@
# Rotate by bumping the roots to the reviewed versions and regenerating;
# a drifted mirror or wheel-tag makes the install FAIL loudly (by design).
#
-# Used by: milvus-tests.yml and mypy-type-check.yml on Python 3.12 runners.
+# Used by: fuzz.yml, mcp-tests.yml, milvus-tests.yml and mypy-type-check.yml
+# on Python 3.12 runners.
anyio==4.15.1 \
diff --git a/tests/ci/test_package_installer_bootstrap.py b/tests/ci/test_package_installer_bootstrap.py
index 351af9c3cb..e610eda9f3 100644
--- a/tests/ci/test_package_installer_bootstrap.py
+++ b/tests/ci/test_package_installer_bootstrap.py
@@ -113,7 +113,13 @@ def test_dockerfile_hash_checked_installs_enforce_wheels_only():
@pytest.mark.parametrize(
- "workflow_name", ["milvus-tests.yml", "mypy-type-check.yml"]
+ "workflow_name",
+ [
+ "fuzz.yml",
+ "mcp-tests.yml",
+ "milvus-tests.yml",
+ "mypy-type-check.yml",
+ ],
)
def test_ci_bootstrap_install_enforces_wheels_only(workflow_name):
"""CI bootstrap consumers preserve the lock's wheel-only contract.