From 925ebe855652353430fc806db3f8a794cb59973f Mon Sep 17 00:00:00 2001 From: cfdaily Date: Sun, 14 Jun 2026 00:16:11 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=8A=A0=20debug=20=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E5=AE=9A=E4=BD=8D=20test=20failure=20=E6=A0=B9=E5=9B=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index bf96ed3..2d78406 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -45,9 +45,19 @@ jobs: python3 -m venv /tmp/ci-venv-test /tmp/ci-venv-test/bin/pip install --quiet fastapi pydantic pyyaml uvicorn requests pytest pytest-asyncio httpx + - name: Debug environment + run: | + echo "PWD=$(pwd)" + echo "PYTHONPATH=$PYTHONPATH" + python3 -c "import sys; [print(p) for p in sys.path if 'sanguo' in p.lower() or 'openclaw' in p.lower()]" + grep -c "assignee = agent_id" src/daemon/toolchain_handler.py || true + grep -c "_BUSINESS_FAIL_THRESHOLD" src/daemon/toolchain_handler.py || true + - name: Run tests (exclude E2E) run: | - PYTHONPATH=. /tmp/ci-venv-test/bin/pytest tests/ -m "not e2e" -x -q + PYTHONPATH=$(pwd) /tmp/ci-venv-test/bin/pytest tests/ -m "not e2e" -x -q || \ + (echo '=== RETRY WITH VERBOSE ===' && \ + PYTHONPATH=$(pwd) /tmp/ci-venv-test/bin/pytest tests/ -m "not e2e" -x -v 2>&1 | tail -30) # ── Job 3: CI 失败通知 ─────────────────────────────── # 使用 needs..result 直接判断,不查询 commit status API