Commit Graph

18 Commits

Author SHA1 Message Date
Your Name
ec5eaef31c chore(ci): enable Gitea Actions workflows 2026-05-02 15:20:01 +08:00
OG T
25e69e6870 feat(cicd): ADR-039 完成 - GitHub Actions 停用,Gitea 主倉
Some checks failed
E2E Health Check / e2e-health (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled
- 停用所有 GitHub Actions workflows (.disabled)
- 更新 CLAUDE.md 添加 Gitea CI/CD 章節
- 更新 LOGBOOK.md 記錄遷移狀態
- Gitea 版本: 1.25.5
- Runner 版本: v0.3.1 (host 網絡模式)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-30 01:07:32 +08:00
OG T
feafaa90a1 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
2026-03-29 Claude Code:
- E2E 腳本也添加 3 次重試
- 間隔 5 秒
- 更新 LOGBOOK 記錄

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-29 21:44:55 +08:00
OG T
8cae26eaf3 fix(ci): E2E 健康檢查添加重試機制
2026-03-29 Claude Code:
- 添加 3 次重試,間隔 2 秒
- 顯示詳細連接錯誤信息
- 應對網路抖動問題

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-29 21:41:02 +08:00
OG T
bc5716b8fe fix(ci): 修正 K8s Service 名稱為 awoooi-api-svc
2026-03-29 Claude Code:
- Service 名稱是 awoooi-api-svc 而不是 awoooi-api

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-29 21:39:17 +08:00
OG T
5f45ada137 fix(ci): 簡化 E2E 健康檢查邏輯
2026-03-29 Claude Code:
- 移除 curl -v | head 管道 (導致 SIGPIPE exit code 7)
- 移除不必要的 /dev/tcp 和 nc 診斷
- 簡化為單一 curl 測試
- API URL 已改為 node 121 直連

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-29 21:34:05 +08:00
OG T
1f4c9862a4 fix(e2e): 暫時使用 node 121 直連避開 VIP 不穩定
VIP (192.168.0.125) 間歇性無法連線
暫用 node 121:32334 直連,待後續修復 keepalived

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-29 21:31:54 +08:00
OG T
5b6e23c49f fix(ci): E2E Health Check 診斷強化
2026-03-29 Claude Code:
- 清除舊快取檔案避免讀到 stale response
- 增加 TCP 連接測試 (/dev/tcp)
- curl verbose 模式輸出診斷資訊
- 簡化 HTTP code 取得方式
- 增加 nc 直接測試作為備用

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-29 21:30:48 +08:00
OG T
21e08fbabb fix(e2e): 傳遞 WEBHOOK_HMAC_SECRET 給 E2E 驗證
E2E 腳本需要 HMAC 認證才能發送測試告警到生產環境

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-29 20:38:16 +08:00
OG T
e865e5de4c fix(e2e): 傳遞驗證過的 API URL 給後續步驟
- Health Check 輸出 working_api_url (VIP 或 fallback)
- E2E Verification 使用已驗證可用的 URL
- 解決 VIP 不通時 E2E 腳本連線失敗問題

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-29 20:36:11 +08:00
OG T
09465a128b fix(e2e): 修正 health endpoint 路徑 /health → /api/v1/health
- 正確路徑是 /api/v1/health (已驗證 121:32334 回應正常)
- 備用端點改為 node 121 (VIP 暫時不通)
- 備用成功時不算測試失敗

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-29 20:33:08 +08:00
OG T
0e24f73399 fix(ci): E2E kubectl 診斷改為非阻塞 (graceful fallback)
- 移除對 KUBECONFIG secret 的依賴
- kubectl 無法連線時 graceful 跳過
- 保留 API health check 作為主要驗證

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-29 20:26:30 +08:00
OG T
f3d01bb410 fix(ci): E2E 增加 kubectl 診斷 (Pod/Service/Endpoints)
- 新增 Check K8s Status step
- 檢查 awoooi-api pods 狀態
- 檢查 awoooi-api service 狀態
- 檢查 endpoints 是否正確

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-29 20:24:02 +08:00
OG T
0f3339e977 fix(ci): E2E health check 增加網路診斷
- 增加 ping VIP 診斷
- 增加備用端點 (direct 120) fallback
- 增加 HTTP 狀態碼和回應內容輸出
- 改善錯誤訊息,方便除錯

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-29 20:21:52 +08:00
OG T
12f7a83df8 fix(ci): 修復 Runner _diag/pages 檔案衝突 (徹底解決)
根本原因:
- 41 個殭屍 Runner 進程互相衝突
- _diag/pages 目錄沒有自動清理

解決方案:
- 所有 Workflow Job 第一步清理 _diag/pages
- 覆蓋所有 self-hosted runner jobs

影響範圍:
- runner-healthcheck.yml (2 jobs)
- daily-e2e-health.yaml (1 job)
- nightly-llm.yaml (1 job)
- ci.yaml (9 jobs)
- cd.yaml (已有)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-29 15:09:13 +08:00
OG T
505e81b412 feat(ci): Daily E2E Health 改用 VIP 端點
- 將 API URL 從 192.168.0.120:32334 改為 192.168.0.125:32334
- 使用 keepalived VIP 取代直連單節點
- 提升 CI/CD 高可用性

Ref: ADR-033 Phase K-NET

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-28 18:11:38 +08:00
OG T
25cc0fb4b2 fix(ci): 使用正確的 Telegram Secret 名稱
OPENCLAW_TG_BOT_TOKEN, OPENCLAW_TG_CHAT_ID (已存在)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-26 12:20:42 +08:00
OG T
a61ea2f14d feat(ci): Phase 18.3 Daily E2E Health Check
每日 08:30 (台北) 自動執行 E2E 驗證:
- Alert → AI → Approval → Execution 完整流程
- Safe Mode 防護 (dry_run=true)
- 失敗時 Telegram 通知

需配置 Secrets:
- TELEGRAM_BOT_TOKEN
- TELEGRAM_CHAT_ID

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-26 12:20:14 +08:00