test(alerts): 對齊心跳告警 SRE 群組契約
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
- 路由殘留掃描:`.gitea` / `apps/api/src` / `apps/api/tests` / `scripts/ops` / `k8s/awoooi-prod` 未命中舊 `TELEGRAM_ALERT_CHAT_ID`、舊 `TELEGRAM_CHAT_ID`、SRE/OpenClaw chat fallback 混用、個人 fallback 或 direct OpenClaw bot sendMessage。
|
||||
- `python3.11 -m py_compile`:Telegram gateway、notification matrix、Telegram provider、recurrence notifier、failover alerter、post verifier、rate limiter、approval execution、Telegram API 與相關 jobs 通過。
|
||||
- `bash -n`:相關 ops scripts 與 CI notify script 通過。
|
||||
- `DATABASE_URL='postgresql+asyncpg://test:test@localhost/test' PYTHONPATH=. python3.11 -m pytest -q tests/test_notification_matrix_group_cutover.py tests/test_alert_converged_recurrence.py tests/test_failover_alerter.py tests/test_telegram_button_consistency.py`:`39 passed`。
|
||||
- `DATABASE_URL='postgresql+asyncpg://test:test@localhost/test' PYTHONPATH=. python3.11 -m pytest -q tests/test_heartbeat_dedup_p0_4.py tests/test_notification_matrix_group_cutover.py tests/test_alert_converged_recurrence.py tests/test_failover_alerter.py tests/test_telegram_button_consistency.py`:`45 passed`;heartbeat 測試同步改成必須設定 `SRE_GROUP_CHAT_ID` 並只允許 `send_to_group`,不得用個人 / 舊群組 fallback。
|
||||
|
||||
**完成度同步**:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user