fix(ci): read p0 sources in runtime layout
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 14s
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled

This commit is contained in:
Your Name
2026-06-29 13:04:10 +08:00
parent 5920c95ad5
commit 0c8d4e88c3
3 changed files with 67 additions and 1 deletions

View File

@@ -1,3 +1,18 @@
## 2026-06-29 — 13:22 P0-004 source readiness production layout readback 修正
**完成內容**
- `cd.yaml #3879` / `d128f298` 已讀回 `Success`deploy marker `5920c95ad chore(cd): deploy d128f29 [skip ci]` 已進 Gitea main。
- Production health 為 `healthy`,但 `/api/v1/agents/p0-cicd-baseline-source-readiness` 仍讀回 `present=3``missing=8`
- 定位原因production API image 使用 `/app/src/services/...` layoutP0 source readiness snapshot 記錄的是 repo layout `apps/api/src/services/...`loader 未映射 production image path。
- `p0_cicd_baseline_source_readiness` 新增 runtime image path fallback`apps/api/<path>` 不存在時,改查 production image 的 `<path>`
- 測試新增 tmp-path production layout 模擬,確認 source readiness 在 runtime image layout 下仍為 `11/11``100%`
**驗證目標**
- `DATABASE_URL=sqlite:///test.db PYTHONPATH=apps/api python3.11 -m pytest apps/api/tests/test_p0_cicd_baseline_source_readiness_api.py apps/api/tests/test_delivery_closure_workbench_api.py -q`
- `python3.11 -m py_compile apps/api/src/services/p0_cicd_baseline_source_readiness.py``git diff --check`
**邊界**:只修 readback path mapping未 workflow_dispatch未讀 token / `.runner` / cookie / session / secret / auth / `.env`;未操作 host / Docker / K8s / DBworkflow modification / trigger gate 維持 false。
## 2026-06-29 — 13:05 P0-002 product.awoooi.yaml manifest standard readiness
**完成內容**