fix(cicd): 保留真实 PaC bootstrap 失败
This commit is contained in:
@@ -29,14 +29,13 @@
|
||||
- CEL、marker、creator 与 ServiceAccount;
|
||||
- queue transition、spec/config SHA、版本与 resource epoch;
|
||||
- 默认 RBAC。
|
||||
- 上述观察项不再作为以下入口的阻断条件:
|
||||
- admission/provenance 观察项不再作为以下入口的阻断条件:
|
||||
- 业务 admission 与 bootstrap;
|
||||
- status、history 与 debug;
|
||||
- 外层 PaC delivery eligibility。
|
||||
- admission 与 consumer bootstrap 漂移统一输出结构化字段:
|
||||
- `blocking: false`;
|
||||
- `warning: true|false`;
|
||||
- `warnings` / `reasons`。
|
||||
- admission 漂移输出结构化 `blocking: false` warning;真实 consumer bootstrap 缺失不降级:
|
||||
- runner ServiceAccount、RoleBinding 或 Argo repository credential 未就绪时,status 保持 `ok: false`;
|
||||
- 顶层 status 继续要求 `bootstrap_ready=true`,避免 false green。
|
||||
- PaC bootstrap 的 `pac-admission` 阶段在 live identity 或 generation 尚未精确收敛时显示 `state: warning`,整体结果仍可成功。
|
||||
- 外层 GitHub/Gitea PaC push event 继续作为:
|
||||
- 唯一流水线触发;
|
||||
@@ -57,7 +56,7 @@
|
||||
|
||||
- `sh -n scripts/src/platform-infra-pipelines-as-code-remote.sh`
|
||||
- `bun test scripts/src/platform-infra-pac-provenance.test.ts scripts/src/platform-infra-pipelines-as-code-bootstrap.test.ts`
|
||||
- 结果:`23 pass, 0 fail, 234 expect()`。
|
||||
- 结果:`23 pass, 0 fail, 239 expect()`。
|
||||
- `node` 调用 `runPacStatusFixtureChecks()`:
|
||||
- 结果:`ok=true, checks=34`。
|
||||
- `bun scripts/cli.ts platform-infra pipelines-as-code plan --target NC01`
|
||||
|
||||
Reference in New Issue
Block a user