From 163596c17d48f2011574f924da8beb387ea6e78b Mon Sep 17 00:00:00 2001 From: Edouard Gouilliard Date: Fri, 17 Apr 2026 18:29:21 +0100 Subject: [PATCH] fix(workflow): final-gate creates venv if missing, increase timeout Bash nodes in worktrees don't have .venv. final-gate now creates it if missing (same pattern as preflight). Timeout increased to 5min to accommodate venv creation + test run. Co-Authored-By: Claude Opus 4.6 (1M context) --- .archon/workflows/dev-pipeline.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.archon/workflows/dev-pipeline.yaml b/.archon/workflows/dev-pipeline.yaml index 52c5062..607ddef 100644 --- a/.archon/workflows/dev-pipeline.yaml +++ b/.archon/workflows/dev-pipeline.yaml @@ -480,10 +480,18 @@ nodes: REPO=$(git rev-parse --show-toplevel) cd "$REPO/codegraph" echo "=== Final Gate ===" + + # Ensure venv exists (worktrees don't have it) + if [ ! -f .venv/bin/python ]; then + echo "Creating venv..." + python3 -m venv .venv + .venv/bin/pip install -e ".[python,mcp,test]" -q + fi + 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 echo "FINAL_GATE_PASS" - timeout: 120000 + timeout: 300000 # ═══════════════════════════════════════════════════════════════ # Step 8: Update ROADMAP.md