OG T
b5905ae283
CD Pipeline / build-and-deploy (push) Has been cancelled
fix(test): 根治 test_github_webhook.py segfault — 改用最小化 app
根本原因:
from src.main import app
→ import 整個 FastAPI 應用所有路由
→ src.api.v1.knowledge → knowledge_service → knowledge_repository
→ sqlalchemy.ext.asyncio (C extension) → asyncpg.protocol.protocol
→ CI runner (catthehacker/ubuntu:act-22.04) segfault (exit 139)
修復:
改用只掛載 github_webhook router 的最小化 FastAPI app
github_webhook 的 import chain: config → redis_client → structlog
完全不走 DB / sqlalchemy / asyncpg,無 C extension segfault 風險
結果:
- test_github_webhook.py 恢復進入 CI 測試
- 移除 cd.yaml 中 --ignore=tests/test_github_webhook.py
- HMAC 簽章、whitelist、事件類型等 8 個測試全部覆蓋
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-05 13:36:24 +08:00
..
2026-04-04 11:55:09 +08:00
2026-03-26 16:06:20 +08:00
2026-03-26 10:37:45 +08:00
2026-03-31 16:25:00 +08:00
2026-03-25 23:57:24 +08:00
2026-03-29 15:27:49 +08:00
2026-03-29 15:27:49 +08:00
2026-04-01 11:11:50 +08:00
2026-03-29 15:48:03 +08:00
2026-03-31 12:16:54 +08:00
2026-04-05 13:36:24 +08:00
2026-04-01 11:11:50 +08:00
2026-04-05 13:07:59 +08:00
2026-03-31 16:16:16 +08:00
2026-03-31 12:20:29 +08:00
2026-03-26 16:06:20 +08:00
2026-03-26 16:06:20 +08:00
2026-03-29 20:49:23 +08:00
2026-04-03 14:00:21 +08:00
2026-04-05 01:49:06 +08:00
2026-04-04 12:16:28 +08:00
2026-04-05 00:14:50 +08:00
2026-04-05 00:14:50 +08:00
2026-03-26 16:06:20 +08:00
2026-03-31 14:17:36 +08:00
2026-03-29 16:23:30 +08:00
2026-03-23 23:51:37 +08:00
2026-04-04 18:05:25 +08:00
2026-04-01 21:11:45 +08:00
2026-03-29 15:27:49 +08:00
2026-03-29 21:23:07 +08:00
2026-03-31 16:16:16 +08:00
2026-04-01 13:12:02 +08:00