M0: Test coverage expansion (151 → 321 tests, 61% → 66% lines) - normalizeKnowledge CRLF/LF normalization fix - gooseReviewer: 11 tests, 97.35% coverage - r2 storage: 22 tests, 100% coverage - triage processor: 11 tests, exported buildTriagePrompt/labelName - webhook processor: 35 tests, 72.39% coverage - conflict resolver: 12 tests - review processor: 7 tests M1: Reliability hardening - Smart retry with jitter, maxTotalTimeoutMs, custom retryable predicate - MergeGuard: in-memory merge dedup tracker (100% coverage) - failureMessages: 7-category failure classifier (100% coverage) M2: Observability - MetricsCollector: Actions-run metrics with snapshot/markdown/reset - 11 tests, 100% coverage New files: 12 test files, 3 source modules All gates: typecheck ✓ lint ✓ format ✓ 321/321 tests ✓ build ✓
# 执行计划
|
|
|
|
## 阶段划分
|
|
|
|
- **M0**: 测试覆盖补齐(覆盖率 61% → 90%+)
|
|
- **M1**: 可靠性(智能重试、陈旧检测、fail-fast)
|
|
- **M2**: 可观测性(全链路日志、Actions 指标、失败分类)
|
|
- **M3-M5**: 架构与性能(大文件拆分、AI Provider、分片审查)
|
|
- **M6-M7**: 智能审查与国际化
|
|
- **最终**: 门禁验证 → 提交 → 推送 → 发布
|
|
|
|
## 并行策略
|
|
|
|
- M0-1 normalizeKnowledge 修复(先执行,确保基线绿)
|
|
- 测试补齐(M0-2 ~ M0-8)→ 并行
|
|
- M1(可靠性)→ 串行于 M0 之后
|
|
- M2(可观测性)→ 并行于 M1 时
|
|
- M3-M5 → 串行
|
|
- M6-M7 → 串行
|
|
|
|
## 当前状态
|
|
|
|
- 基线: 151 tests / 全绿 / 覆盖率 61.41%
|
|
- 目标: 测试全绿 + 覆盖率 90%+ + 门禁通过 + 推送 + 发行版
|