fix(cd): apply probe headroom to shell gate
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 1s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 2m35s
CD Pipeline / build-and-deploy (push) Successful in 19m15s
AWOOOI Harbor 110 Local Repair / workflow-shape (push) Successful in 0s
AWOOOI Harbor 110 Local Repair / harbor-110-local-repair (push) Successful in 15s
CD Pipeline / post-deploy-checks (push) Successful in 2m20s

This commit is contained in:
ogt
2026-07-15 14:52:35 +08:00
parent 5655ae3d2b
commit 68ecdf4c44
2 changed files with 14 additions and 3 deletions

View File

@@ -277,6 +277,17 @@ def test_cd_uses_live_spec_rollback_and_non_mutating_post_verifier() -> None:
"available_connection_headroom >= required_connection_budget"
not in normalized_workflow
)
for workload in ("API", "WORKER", "BROKER"):
assert (
f'"${workload}_DB_AVAILABLE_CONNECTION_HEADROOM" -ge '
f'"${workload}_DB_REPRESENTATIVE_PROBE_COUNT"'
in workflow
)
assert (
f'"${workload}_DB_AVAILABLE_CONNECTION_HEADROOM" -ge '
f'"${workload}_DB_REQUIRED_CONNECTION_BUDGET"'
not in workflow
)
assert '"spec": item["spec"]' in workflow
assert '"data": item' not in workflow
assert "get secret '${secret_name}' -n awoooi-prod -o jsonpath" not in workflow