From dfd227eaff9e24661ef1f9f8514ad2dfbe3f9e94 Mon Sep 17 00:00:00 2001 From: bdchatham Date: Thu, 21 May 2026 21:49:33 -0700 Subject: [PATCH] fix(scenarios/major-upgrade): tolerate space after colon in gov REST status MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The gov v1beta1 REST endpoint returns pretty-printed JSON: "status": "PROPOSAL_STATUS_PASSED" (space after colon) The sed regex in wait-for-proposal-to-pass matched no-space form only: 's/.*"status":"\([A-Z_]*\)".*/\1/p' All 300 polling attempts returned empty STATUS → "unknown" even though the proposal had passed on-chain (verified by live curl post-mortem). Add [[:space:]]* to tolerate any whitespace between the colon and the opening quote. Co-Authored-By: Claude Opus 4.7 (1M context) --- scenarios/major-upgrade.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scenarios/major-upgrade.yaml b/scenarios/major-upgrade.yaml index 5cd1a86..b2e24f1 100644 --- a/scenarios/major-upgrade.yaml +++ b/scenarios/major-upgrade.yaml @@ -358,7 +358,7 @@ spec: set -eu for i in $(seq 1 300); do STATUS=$(curl -fsS "${VALIDATOR_REST}/cosmos/gov/v1beta1/proposals/${PROPOSAL_ID}" \ - | sed -n 's/.*"status":"\([A-Z_]*\)".*/\1/p' | head -1) + | sed -n 's/.*"status":[[:space:]]*"\([A-Z_]*\)".*/\1/p' | head -1) echo "attempt=${i} proposal=${PROPOSAL_ID} status=${STATUS:-unknown}" [ "${STATUS}" = "PROPOSAL_STATUS_PASSED" ] && exit 0 sleep 1