Commit Graph

6 Commits

Author SHA1 Message Date
OG T
efe5f824db test: 移除 Telegram Webhook Mock 測試
全面禁止 Mock 測試鐵律:
- 移除 test_webhook_telegram_integration.py (323 lines of Mock)
- 整合測試必須使用真實資料庫與服務

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-24 10:24:40 +08:00
OG T
4ddaf76b62 test: 移除 Mock 測試 (統帥鐵律)
全面禁止 Mock 測試,所有測試必須使用真實資料庫。
移除 test_stats_api.py (Mock-based unit tests)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-24 10:24:27 +08:00
OG T
e3abc04035 fix(test): Telegram 測試 Mock 返回值修正
問題: OpenClaw.analyze_alert Mock 只返回 3 個值
     但函數簽名要求 5 個值 (result, provider, raw, metrics, trace_url)

修復: return_value=(None, "mock", "") → (None, "mock", "", None, "")

首席架構師審查發現

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-24 10:19:19 +08:00
OG T
b7fb1d962f test(api): Stats API 單元測試 (12 cases)
測試項目:
- IncidentSummary: 空資料庫、解決率計算
- ResolutionStats: 無已解決事件
- IncidentTrends: 空資料、週期參數
- AIPerformance: 空 outcome、評分分佈初始化
- AffectedServices: 空結果、limit 參數
- FeedbackSummary: 空回饋、評分分類、主題萃取

首席架構師審查要求

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-24 10:14:40 +08:00
OG T
6f049877fc fix(lint): ruff auto-fix + lewooogo-core src 加入 git
- Python: ruff --fix 修復 280 個 lint 錯誤
- lewooogo-core: src/ 目錄未追蹤,導致 CI eslint 失敗

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-23 23:51:37 +08:00
OG T
196d269b92 feat: add all application source code
- apps/api: FastAPI backend with Dockerfile
- apps/web: Next.js frontend with Dockerfile
- apps/sensor: Signal collection agent
- packages: shared packages

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-22 18:57:44 +08:00