From 7687950d5147110bd95d5b0c1925522764dadd77 Mon Sep 17 00:00:00 2001 From: igneum-labs <337424239+igneum-labs@users.noreply.github.com> Date: Tue, 6 Oct 2026 17:55:13 +0000 Subject: [PATCH] devnet2-gate: rejects and reorgs counted from the step-1 restart (a joining box's lone-chain reorg is not the release's), bash 3.2 (no mapfile, no associative arrays), the crossing line rewritten --- tools/fleet/devnet2-gate.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/fleet/devnet2-gate.sh b/tools/fleet/devnet2-gate.sh index a6ee990f9..ed58b37a4 100755 --- a/tools/fleet/devnet2-gate.sh +++ b/tools/fleet/devnet2-gate.sh @@ -77,7 +77,10 @@ import json, sys; d=json.load(open(sys.argv[1])); d[sys.argv[2]]=int(sys.argv[3] PY for l in "${BOXES[@]}"; do set -- $l; SCP "$2" "$3" "$ROOT/dn2-override-next.json" && SSH "$2" "$3" "mv /root/fleet/in/dn2-override-next.json /root/fleet/in/dn2-override.json" || fail "$1: override push"; done echo "GATE step2 $(stamp) activation $name=$val at tip $tip (margin $MARGIN); restart on the new object"; restart_all - for i in $(seq 1 120); do sleep 15; d="$(read_box "$SEED_HOST" "$SEED_PORT" | awk '{print $2}')"; [[ "${d:-0}" -ge "$val" ]] && { echo "GATE crossed $name=$val at $(stamp) (daa $d)"; break; }; done + for i in $(seq 1 120); do + sleep 15; d="$(read_box "$SEED_HOST" "$SEED_PORT" | awk '{print $2}')" + if [[ "${d:-0}" -ge "$val" ]]; then echo "GATE crossed $name=$val at $(stamp), daa $d"; break; fi + done fi # 3. run echo "GATE step3 $(stamp) running $MINUTES min"; sleep $((MINUTES * 60))