From b9ee58f75238a751e72fd740be374f416f5452a8 Mon Sep 17 00:00:00 2001 From: OG T Date: Sun, 5 Apr 2026 22:32:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(cd):=20=E7=A7=BB=E9=99=A4=20parse=5Fmode=3D?= =?UTF-8?q?HTML=20=E9=81=BF=E5=85=8D=20commit=20message=20=E7=89=B9?= =?UTF-8?q?=E6=AE=8A=E5=AD=97=E5=85=83=E9=80=A0=E6=88=90=20400=20(non-fata?= =?UTF-8?q?l)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/cd.yaml | 8 +++++--- docs/LOGBOOK.md | 14 ++++++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml index 4ac1e6d18..3f96f728e 100644 --- a/.gitea/workflows/cd.yaml +++ b/.gitea/workflows/cd.yaml @@ -419,11 +419,13 @@ jobs: MINUTES=$((DURATION / 60)) SECONDS=$((DURATION % 60)) # 2026-04-05 ogt: TG_MSG 必須在 shell 中組裝,才能展開 ${MINUTES}/${SECONDS} 等 shell 變數 - TG_MSG="✅ AWOOOI 部署完成\n├ 📝 ${{ steps.commit.outputs.message }}\n├ 🔖 ${{ steps.commit.outputs.short_sha }}\n├ ⏱️ 耗時: ${MINUTES}m ${SECONDS}s\n├ 📦 API: ✅ Web: ✅\n├ 🩺 Health: ✅\n├ 🔗 Alert Chain: ${ALERT_CHAIN_RESULT}\n├ 📊 Monitoring: ${MONITORING_RESULT}\n└ 🎭 Smoke: ${SMOKE_RESULT}" + # 2026-04-05 ogt: 移除 parse_mode=HTML,避免 commit message 含特殊字元導致 400 + COMMIT_MSG="${{ steps.commit.outputs.message }}" + SHORT_SHA="${{ steps.commit.outputs.short_sha }}" + TG_MSG="✅ AWOOOI 部署完成\n├ 📝 ${COMMIT_MSG}\n├ 🔖 ${SHORT_SHA}\n├ ⏱️ 耗時: ${MINUTES}m ${SECONDS}s\n├ 📦 API: ✅ Web: ✅\n├ 🩺 Health: ✅\n├ 🔗 Alert Chain: ${ALERT_CHAIN_RESULT}\n├ 📊 Monitoring: ${MONITORING_RESULT}\n└ 🎭 Smoke: ${SMOKE_RESULT}" printf '%b' "$TG_MSG" | curl -fS -X POST "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" \ -d "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}" \ - -d "parse_mode=HTML" \ - --data-urlencode "text@-" + --data-urlencode "text@-" || echo "TG notify warning (non-fatal)" - name: Notify Pipeline Failure if: failure() diff --git a/docs/LOGBOOK.md b/docs/LOGBOOK.md index 0d9410ab0..0493d23ca 100644 --- a/docs/LOGBOOK.md +++ b/docs/LOGBOOK.md @@ -5,6 +5,20 @@ --- +## 📍 當前狀態 (2026-04-05 自動修復閉環打通 + repair-bot 部署) + +| 項目 | 狀態 | Commit/備註 | +|------|------|--------| +| auto_repair 閉環打通 (_try_auto_repair_background) | ✅ | 5499169 | +| is_high_quality 冷啟動降閾 (>= 3次, >= 80%) | ✅ | 5499169 | +| TypeScript type-sync 修正 | ✅ | b58178d | +| repair-bot-110.sh 部署到 /home/wooo/bin/ | ✅ | 手動 scp | +| repair-bot-188.sh 部署到 /home/ollama/bin/ | ✅ | 手動 scp | +| CI type-sync-check 跑到 run #499 失敗 → #500/#501 補修 | ⏳ | in_progress | +| API Pod 更新到最新 commit | ⏳ | 等 CD 完成 | + +--- + ## 📍 當前狀態 (2026-04-05 Telegram/CD 顯示修復 + ADR-059 全部完成) | 項目 | 狀態 | Commit |