diff --git a/apps/api/tests/test_awooop_truth_chain_service.py b/apps/api/tests/test_awooop_truth_chain_service.py index 22d2318f4..b65d196f6 100644 --- a/apps/api/tests/test_awooop_truth_chain_service.py +++ b/apps/api/tests/test_awooop_truth_chain_service.py @@ -83,7 +83,7 @@ def test_incident_fingerprints_reads_signal_labels() -> None: def test_fetch_truth_chain_can_match_inbound_provider_event_id() -> None: - source = inspect.getsource(fetch_truth_chain) + source = inspect.getsource(_fetch_inbound_conversation_event_rows) assert "provider_event_id = :source_id" in source diff --git a/docs/LOGBOOK.md b/docs/LOGBOOK.md index 40adcbb07..f39d91c73 100644 --- a/docs/LOGBOOK.md +++ b/docs/LOGBOOK.md @@ -51069,6 +51069,19 @@ production browser smoke: - 沒有使用 GitHub / gh / GitHub API / GitHub Actions。 - 沒有重啟主機,沒有 Docker / Nginx / K3s / DB restart,沒有 workflow_dispatch,沒有 DROP / TRUNCATE / restore / prune。 +## 2026-07-01 — 08:55 Truth-chain hot lookup helper test 對齊 + +**完成內容**: +- 最新 Gitea main 已將 inbound truth-chain lookup SQL 移到 `_fetch_inbound_conversation_event_rows()`;本地 focused suite 發現 `test_fetch_truth_chain_can_match_inbound_provider_event_id` 仍 inspect `fetch_truth_chain`,會讓後續 CI 紅。 +- 測試已改為 inspect `_fetch_inbound_conversation_event_rows()`,對齊 source split 後的實作邊界。 + +**本地驗證結果**: +- Focused suite:`192 passed`。 +- `ruff check apps/api/tests/test_awooop_truth_chain_service.py`、`py_compile`、`git diff --check`:通過。 + +**仍維持**: +- 沒有讀 secret / token / `.env` / raw sessions / SQLite / auth;沒有使用 GitHub / gh / GitHub API;沒有 runtime write。 + **下一步**: - 188 DB CPU 已降;110 仍高,原因仍是 `gitea` / queue / `awoooi-host` control path:110 `load5=27.22`、`gitea=3.4019` cores、Harbor repair `#4176 Waiting`、no matching `awoooi-host`。主線下一步繼續 110 Gitea queue / controlled lane recovery,不恢復 generic runner、不重啟主機。