Your Name
|
61f5a6a419
|
fix(telegram): route alerts to SRE war room
CD Pipeline / tests (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled
CD Pipeline / post-deploy-checks (push) Has been cancelled
Code Review / ai-code-review (push) Has been cancelled
|
2026-04-30 15:01:23 +08:00 |
|
Your Name
|
862c4d8676
|
fix(test): 對齊 bb12647e 後群組卡片 6-part 鍵盤升級
CD Pipeline / build-and-deploy (push) Failing after 1m3s
test_group_card_detail_button_correct_format 失敗於 CI(pre-existing):
- Task A 補測時群組卡片是 inline 寫 f"detail:{incident_id}"
- bb12647e 升級成 _build_inline_keyboard 通用建構器(與 DM 相同六鍵佈局)
- 測試 assertion 過嚴 → CI 1155 stop after 1 failure,阻擋全部 8 commits 部署
修法:assertion 接受兩種設計:
- inline 2-part `f"detail:{incident_id}"`
- 通用建構器 `_build_inline_keyboard`
Tests: 14/14 PASSED
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-04-26 20:48:51 +08:00 |
|
Your Name
|
d3a4fb4d15
|
feat(t0): Task A 按鈕一致性測試 + Task C Gitea→Telegram 通知收尾
Task A — Telegram 按鈕鬼魂鐵律測試(補測 production telegram_gateway.py)
- test_telegram_button_consistency.py 新增 14 測試
- send_info_notification 兩鍵 [📋 詳情][📊 歷史]
- _send_approval_card_to_group reply_markup
- callback_data 對齊 INFO_ACTIONS 白名單
- parse_callback_data + handler 完整性
Task C — Gitea CI/CD → Telegram 告警轉發
- GiteaPullRequest.merged 欄位(HasMerged bool json:"merged")
- _send_gitea_notification helper:Redis SET NX EX 600s 去重
- handle_pull_request: closed+merged → PR Merged Telegram 卡片
- handle_workflow_run: status=failure → 部署/構建失敗卡片
- 不加按鈕(feedback_no_ghost_buttons.md 合規)
- test_gitea_webhook.py +247 行新測試
驗收: K8s GITEA_WEBHOOK_SECRET 64 bytes ✅
Gitea hook #4 events: pull_request + push + workflow_run ✅
端點 HMAC 401 驗簽 ✅
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-04-26 20:17:17 +08:00 |
|