Some checks failed
CD Pipeline / build-and-deploy (push) Has been cancelled
根本原因: 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>
17 KiB
17 KiB