From 5c9d4663f8cd4219cb7c214a37185ff8633b90d9 Mon Sep 17 00:00:00 2001 From: Mikhail Date: Sun, 30 Aug 2026 12:04:31 +0300 Subject: [PATCH] fix: avoid nested shell quoting in observation --- deploy/run-production-canary.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/run-production-canary.sh b/deploy/run-production-canary.sh index 3fcd49a..50ad776 100644 --- a/deploy/run-production-canary.sh +++ b/deploy/run-production-canary.sh @@ -68,7 +68,7 @@ JSON fi curl -fsS --max-time 10 -X POST "$SUPERVISOR_CONTROL_URL/v1/releases/start-set" -H 'Content-Type: application/json' --data "$release_json" >/dev/null || fail_rollback -observation="$(printf '%s' "$release_json" | python3 -c 'import json,sys,time; s=json.load(sys.stdin); print(json.dumps({"release_id":s["id"],"ready":True,"reason":"all ReleaseSet healthchecks and image revisions passed","observed_at_unix_millis":int(time.time()*1000),"components":{k:{"revision":v["revision"],"health":True,"ready":True} for k,v in s["components"].items()}},separators=(",",":")))')" +observation=$(printf '%s' "$release_json" | python3 -c 'import json,sys,time; s=json.load(sys.stdin); print(json.dumps({"release_id":s["id"],"ready":True,"reason":"all ReleaseSet healthchecks and image revisions passed","observed_at_unix_millis":int(time.time()*1000),"components":{k:{"revision":v["revision"],"health":True,"ready":True} for k,v in s["components"].items()}},separators=(",",":")))') curl -fsS --max-time 10 -X POST "$SUPERVISOR_CONTROL_URL/v1/releases/observe-set" -H 'Content-Type: application/json' --data "$observation" >/dev/null || fail_rollback control /v1/traffic/canary || fail_rollback