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
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:
@@ -4184,9 +4184,9 @@ jobs:
|
||||
&& [ "$API_DB_ACTIVE_ROLE_CONNECTION_COUNT" -ge 0 ] \
|
||||
&& [ "$WORKER_DB_ACTIVE_ROLE_CONNECTION_COUNT" -ge 0 ] \
|
||||
&& [ "$BROKER_DB_ACTIVE_ROLE_CONNECTION_COUNT" -ge 0 ] \
|
||||
&& [ "$API_DB_AVAILABLE_CONNECTION_HEADROOM" -ge "$API_DB_REQUIRED_CONNECTION_BUDGET" ] \
|
||||
&& [ "$WORKER_DB_AVAILABLE_CONNECTION_HEADROOM" -ge "$WORKER_DB_REQUIRED_CONNECTION_BUDGET" ] \
|
||||
&& [ "$BROKER_DB_AVAILABLE_CONNECTION_HEADROOM" -ge "$BROKER_DB_REQUIRED_CONNECTION_BUDGET" ]; then
|
||||
&& [ "$API_DB_AVAILABLE_CONNECTION_HEADROOM" -ge "$API_DB_REPRESENTATIVE_PROBE_COUNT" ] \
|
||||
&& [ "$WORKER_DB_AVAILABLE_CONNECTION_HEADROOM" -ge "$WORKER_DB_REPRESENTATIVE_PROBE_COUNT" ] \
|
||||
&& [ "$BROKER_DB_AVAILABLE_CONNECTION_HEADROOM" -ge "$BROKER_DB_REPRESENTATIVE_PROBE_COUNT" ]; then
|
||||
CONNECTION_BUDGET_VERIFIED=true
|
||||
fi
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user