From e239af3636c63cb169fabe7d441a8d5e17a59a9f Mon Sep 17 00:00:00 2001 From: ruv Date: Tue, 2 Jun 2026 12:11:55 +0200 Subject: [PATCH] =?UTF-8?q?fix(deps):=20declare=20psutil=20in=20requiremen?= =?UTF-8?q?ts.txt=20=E2=80=94=20green=20API=20Documentation=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The API Documentation job (and any env without locust) failed with `ModuleNotFoundError: No module named 'psutil'` when importing the app: psutil is imported by src/api/routers/health.py, services/metrics.py, commands/status.py, and tasks/monitoring.py, but was never declared as a dependency — it only happened to be present where locust (Performance Tests) pulled it in transitively. Declare it explicitly (psutil>=5.9.0). Verified locally: `from src.api.main import app; app.openapi()` (the exact docs-job operation) now succeeds. --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index 95f24633..bdc9ff0a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -36,3 +36,4 @@ scikit-learn>=1.2.0 # Monitoring dependencies prometheus-client>=0.16.0 +psutil>=5.9.0 # system metrics — imported by health.py / metrics.py / status.py / monitoring.py