feat(adr-076): 戰術 B 四大 Task 全部完成 — 告警聚合+重試+自動報告
All checks were successful
CD Pipeline / build-and-deploy (push) Successful in 17m34s
All checks were successful
CD Pipeline / build-and-deploy (push) Successful in 17m34s
Task 2: AlertGroupingService — Redis 5分鐘滑動視窗,防告警風暴 - apps/api/src/services/alert_grouping_service.py (新增) - webhooks.py 整合:指紋生成後/LLM前短路子告警 - Threshold=3,Graceful Degradation,16 tests Task 3: approval_execution.py 執行失敗重試 - MAX_RETRY=2, RETRY_DELAY_SECONDS=30 - _is_transient_error() 瞬態/永久分類,永久錯誤不重試 - Timeline 記錄重試進度,成功後標注重試次數,29 tests Task 4: report_generation_service.py 自動報告 - 日度巡檢報告:每日 08:00 台北時間,Telegram SRE 群組推送 - Postmortem:Incident resolved + duration > 10 分鐘自動觸發 - main.py lifespan 掛載 run_daily_report_loop(),30 tests 測試: 600 → 675 通過 (+75),0 failed Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -6,7 +6,52 @@
|
||||
|
||||
---
|
||||
|
||||
## 📍 當前狀態 (2026-04-12 深夜 — ADR-075 Phase 1+2+CR 全完成,git push gitea main ✅)
|
||||
## 📍 當前狀態 (2026-04-14 — 戰術 B 四大 Task 全部完成,675 tests ✅)
|
||||
|
||||
**本次 session 新增(4 Task,6 檔案,75 新測試)**:
|
||||
- `feat(adr-076): Task 2` — `alert_grouping_service.py` — 5分鐘滑動視窗告警聚合引擎 + 16 tests
|
||||
- `feat(adr-076): Task 3` — `approval_execution.py` — 執行失敗重試(MAX_RETRY=2, 30s, 瞬態/永久分類)+ 29 tests
|
||||
- `feat(adr-076): Task 4` — `report_generation_service.py` — 日度巡檢報告(08:00台北) + Postmortem + 30 tests
|
||||
- `webhooks.py` — ADR-076 聚合邏輯整合(指紋後/LLM前)
|
||||
- `main.py` — 日度報告迴圈掛進 lifespan
|
||||
|
||||
**測試**: 600 → 675 通過(+75),10 skipped,0 failed
|
||||
|
||||
**下一步**:git push gitea main → Pod 部署驗證 → 觀察 E2E
|
||||
|
||||
---
|
||||
|
||||
## 📍 前次狀態 (2026-04-14 — MASTER AIOps Blueprint 完成,等待統帥批准)
|
||||
|
||||
**本次 session 新增(無 commit,純文件工作)**:
|
||||
- `docs/superpowers/plans/2026-04-14-MASTER-aiops-full-automation-blueprint.md` — 整合4份計畫文件的主計畫書 v1.0
|
||||
- Memory: `aiops_current_architecture_diagnosis.md` — 完整架構診斷報告
|
||||
|
||||
**飛輪現況**: Pod 38ff2bb,飛輪 83% 完整,4 Phase 等待批准後實作
|
||||
|
||||
**業界標準文件缺口**(已識別,尚未建立):SLO/SLI、AI Model Card、Human-in-Loop Spec、Alert Taxonomy Catalog、Configuration Reference
|
||||
|
||||
**下一步**:等統帥批准 MASTER 計畫書後,開始 Phase 1 實作
|
||||
|
||||
---
|
||||
|
||||
## 📍 前次狀態 (2026-04-14 — 飛輪 Bug 修補完成,全面部署 38ff2bb ✅)
|
||||
|
||||
**本次 session 修補(6 commits,全已部署,Pod 跑 38ff2bb)**:
|
||||
- `38ff2bb` heartbeat → ADR-075 TYPE-1 格式(INFO 樹狀結構)
|
||||
- `f1face4` HostHighCpuLoad 獨立規則 → NO_ACTION(停止 kubectl scale unknown)
|
||||
- `1a4b52e` fingerprint 加 alertname 防跨告警指紋衝突 + 心跳分類補入
|
||||
- `b17a677` gitea webhook analysis.model_dump() dict bug
|
||||
- `0c88f67` DIAGNOSE 強制 deepseek-r1:14b(不用 gemma3:4b)
|
||||
- `09134f5` incident.title bug + DIAGNOSE→NEMOTRON confidence=0.0 修復
|
||||
|
||||
**飛輪狀態**:規格書層次一二三四全完成,ADR-075 全完成,本次額外修補已補齊
|
||||
|
||||
**下一步**:觀察自動修復 E2E,或繼續 ADR-075 Phase 3(Prometheus 規則)
|
||||
|
||||
---
|
||||
|
||||
## 📍 前次狀態 (2026-04-12 深夜 — ADR-075 Phase 1+2+CR 全完成,git push gitea main ✅)
|
||||
|
||||
**ADR-075 全部完成**(3 commits: 2cef209 → 561c1d8 → 1cb654c):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user