fix(ci): E2E Verification 添加重試機制
Some checks failed
CI / Pre-flight (push) Has been cancelled
CI / Lint & Type Check (push) Has been cancelled
CI / Test (push) Has been cancelled
CI / Build (push) Has been cancelled
CI / API Lint (push) Has been cancelled
CI / API Test (push) Has been cancelled
CI / Ollama Model Test (push) Has been cancelled
CI / OpenAPI Validate (push) Has been cancelled
CI / Docker Verify (api) (push) Has been cancelled
CI / Docker Verify (web) (push) Has been cancelled
Some checks failed
CI / Pre-flight (push) Has been cancelled
CI / Lint & Type Check (push) Has been cancelled
CI / Test (push) Has been cancelled
CI / Build (push) Has been cancelled
CI / API Lint (push) Has been cancelled
CI / API Test (push) Has been cancelled
CI / Ollama Model Test (push) Has been cancelled
CI / OpenAPI Validate (push) Has been cancelled
CI / Docker Verify (api) (push) Has been cancelled
CI / Docker Verify (web) (push) Has been cancelled
2026-03-29 Claude Code: - E2E 腳本也添加 3 次重試 - 間隔 5 秒 - 更新 LOGBOOK 記錄 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
28
.github/workflows/daily-e2e-health.yaml
vendored
28
.github/workflows/daily-e2e-health.yaml
vendored
@@ -143,11 +143,29 @@ jobs:
|
||||
echo " API: $API_URL (verified working)"
|
||||
echo " Dry Run: $DRY_RUN"
|
||||
|
||||
if [ "$DRY_RUN" = "true" ]; then
|
||||
uv run python -m scripts.e2e_tool_call_verification --api-url "$API_URL" --dry-run
|
||||
else
|
||||
uv run python -m scripts.e2e_tool_call_verification --api-url "$API_URL" --no-dry-run
|
||||
fi
|
||||
# 2026-03-29 Claude Code: E2E 重試機制 (最多 3 次)
|
||||
for i in 1 2 3; do
|
||||
echo "📡 E2E 嘗試 #$i..."
|
||||
if [ "$DRY_RUN" = "true" ]; then
|
||||
if uv run python -m scripts.e2e_tool_call_verification --api-url "$API_URL" --dry-run; then
|
||||
echo "✅ E2E 驗證通過"
|
||||
exit 0
|
||||
fi
|
||||
else
|
||||
if uv run python -m scripts.e2e_tool_call_verification --api-url "$API_URL" --no-dry-run; then
|
||||
echo "✅ E2E 驗證通過"
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ $i -lt 3 ]; then
|
||||
echo "⏳ 等待 5 秒後重試..."
|
||||
sleep 5
|
||||
fi
|
||||
done
|
||||
|
||||
echo "❌ E2E 驗證失敗 (3 次嘗試後)"
|
||||
exit 1
|
||||
|
||||
- name: Summary
|
||||
if: always()
|
||||
|
||||
Reference in New Issue
Block a user