fix(cd): keep telegram matrix on controlled profile
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 49s
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 49s
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled
This commit is contained in:
@@ -1,3 +1,17 @@
|
||||
## 2026-07-02 — 18:35 CIR-P0-TG-001 Telegram matrix CD profile 修正
|
||||
|
||||
**完成內容**:
|
||||
- Gitea CD `#4412` 讀回:`f237b2545 feat(telegram): expose AI automation matrix` 的 tests job 失敗點是 `BLOCKER b5_docker_socket_unavailable`,不是 Telegram matrix 測試失敗;原因是新 `telegram_alert_ai_automation_matrix.py` / test 與 Telegram 模型文件尚未納入 controlled-runtime profile,導致 CD 走 full/B5。
|
||||
- 已將 `docs/awooop/TELEGRAM-INCIDENT-NOTIFICATION-MODEL.md`、`apps/api/src/services/telegram_alert_ai_automation_matrix.py`、`apps/api/tests/test_telegram_alert_ai_automation_matrix_api.py` 加入 `.gitea/workflows/cd.yaml` changed-file allowlist、controlled-runtime `py_compile` 與 focused pytest 清單。
|
||||
- `ops/runner/test_cd_controlled_runtime_profile.py` 新增 regression,確保 Telegram alert AI automation matrix 後續不會再因 metadata/API readback patch 落到 B5 Docker socket 路徑。
|
||||
|
||||
**本地驗證結果**:
|
||||
- `DATABASE_URL=postgresql+asyncpg://test:test@localhost/test PYTHONPATH=apps/api python3.11 -m pytest ops/runner/test_cd_controlled_runtime_profile.py apps/api/tests/test_telegram_alert_ai_automation_matrix_api.py -q -p no:cacheprovider`:`47 passed`。
|
||||
- `python3.11 -m py_compile ops/runner/test_cd_controlled_runtime_profile.py`、`git diff --check`:通過。
|
||||
|
||||
**仍維持**:
|
||||
- 未使用 GitHub / `gh` / GitHub API;未讀 secret / runner token / `.env` / raw sessions / SQLite / auth;未觸發 workflow;未重啟主機 / VM / Docker / Nginx / K3s / DB / firewall;未寫 production DB。
|
||||
|
||||
## 2026-07-02 — 18:25 P0-006 scorecard / workbench runtime freshness readback 分層
|
||||
|
||||
**完成內容**:
|
||||
|
||||
Reference in New Issue
Block a user