From 249b2e1e945ab67bf6188748de8db131344fae1c Mon Sep 17 00:00:00 2001 From: Apple Date: Wed, 18 Feb 2026 06:13:15 -0800 Subject: [PATCH] ops: restore canary_all and harden monitor summary script invocation --- ops/canary_all.sh | 17 +++++++++++++++++ ops/monitor_canary_summary.sh | 4 ++-- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100755 ops/canary_all.sh diff --git a/ops/canary_all.sh b/ops/canary_all.sh new file mode 100755 index 00000000..7141ea8d --- /dev/null +++ b/ops/canary_all.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash +set -euo pipefail + +ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" + +run() { + local name="$1" + local script="$2" + echo "[INFO] === ${name} ===" + bash "$script" + echo "[OK] === ${name} ===" +} + +run "gateway_delivery_priority" "$ROOT/ops/canary_gateway_delivery_priority.sh" +run "router_contract" "$ROOT/ops/canary_router_contract.sh" + +echo "[OK] all canaries passed" diff --git a/ops/monitor_canary_summary.sh b/ops/monitor_canary_summary.sh index 215364ef..e179fedb 100644 --- a/ops/monitor_canary_summary.sh +++ b/ops/monitor_canary_summary.sh @@ -10,7 +10,7 @@ TS_START="$(date -u +%Y-%m-%dT%H:%M:%SZ)" mkdir -p "$STATUS_DIR" set +e -out="$(cd "$ROOT" && ./ops/canary_all.sh 2>&1)" +out="$(cd "$ROOT" && bash ./ops/canary_all.sh 2>&1)" rc=$? set -e @@ -38,7 +38,7 @@ PY # Optional notify to SOFIIA (non-fatal for canary status) set +e -notify_out="$("$ROOT/ops/monitor_notify_sofiia.sh" "$STATUS_JSON" 2>&1)" +notify_out="$(bash "$ROOT/ops/monitor_notify_sofiia.sh" "$STATUS_JSON" 2>&1)" notify_rc=$? set -e printf '%s\n' "$notify_out" >> "$STATUS_LOG"