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
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:
@@ -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/...` layout;P0 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 / DB;workflow modification / trigger gate 維持 false。
|
||||
|
||||
## 2026-06-29 — 13:05 P0-002 product.awoooi.yaml manifest standard readiness
|
||||
|
||||
**完成內容**:
|
||||
|
||||
Reference in New Issue
Block a user