From 968c9d774157fb0b873e3338c4dafaba50e99af2 Mon Sep 17 00:00:00 2001 From: Edouard Gouilliard Date: Sun, 19 Apr 2026 10:47:17 +0100 Subject: [PATCH] fix(workflow): final-gate always reinstalls deps before testing The venv may exist from preflight but lack deps added during implementation. Always run pip install -e to pick up changes. Co-Authored-By: Claude Opus 4.6 (1M context) --- .archon/workflows/dev-pipeline.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.archon/workflows/dev-pipeline.yaml b/.archon/workflows/dev-pipeline.yaml index 8030e20..f921013 100644 --- a/.archon/workflows/dev-pipeline.yaml +++ b/.archon/workflows/dev-pipeline.yaml @@ -535,12 +535,13 @@ nodes: cd "$REPO/codegraph" echo "=== Final Gate ===" - # Ensure venv exists (worktrees don't have it) + # Ensure venv exists and deps are current if [ ! -f .venv/bin/python ]; then echo "Creating venv..." python3 -m venv .venv - .venv/bin/pip install -e ".[python,mcp,test]" -q fi + # Always re-install to pick up any dependency changes from implementation + .venv/bin/pip install -e ".[python,mcp,test]" -q 2>&1 python3 -m compileall codegraph/ -q 2>&1 && echo "PASS: byte-compile" || exit 1 .venv/bin/python -m pytest tests/ -q 2>&1 && echo "PASS: tests" || exit 1