fix(acceptance): 支持显式跳过本地验收

在用户明确授权时,将本地原生与 amd64 制品阶段记录为 skipped/waived,并直接使用当前生产脱敏快照进入线上模拟。修复线上报告合并未写入生产 Run ID 导致后续 promote CAS 必然失败的问题。已通过报告回归测试、bash -n、ShellCheck 和 diff 检查。
This commit is contained in:
2026-07-31 23:15:22 +08:00
parent a95184b5b6
commit 0b681275ed
4 changed files with 147 additions and 29 deletions
+10
View File
@@ -132,6 +132,16 @@ scripts/cluster/run-production-acceptance.sh \
--local-report dist/acceptance/local/<本地run-id>/acceptance-report.json
```
只有用户明确要求跳过本地验收时,才允许使用下面的审计豁免。报告会把 `localNative`
`amd64Artifact` 记录为 `skipped`,并保留 `local_acceptance_explicitly_waived` 记录;不得
伪造为通过。线上模拟、真实金丝雀、资源、一致性和发布 CAS 门禁仍全部执行:
```bash
scripts/cluster/run-production-acceptance.sh \
--execute dist/releases/<完整SHA>.json \
--skip-local-acceptance
```
脚本依次执行:
1. 校验工作区、manifest、线上 release SHA、digest、双站点镜像和副本数。