feat(deploy): --skip-preflight for run-all-next-steps-chain138

Allows verify-only / read-only steps when nonce gate fails (e.g. stuck pool)
until operator clears pools with SSH access; unsafe for broadcast deploys.

Made-with: Cursor
This commit is contained in:
defiQUG
2026-04-01 11:24:01 -07:00
parent 0bb4aa41dd
commit e8e22daeb9

View File

@@ -2,8 +2,9 @@
# Run all deployment next steps for Chain 138 in order:
# preflight → (optional mirror+seed pool) → PMM mesh (default) → register c* as GRU → verify.
#
# Usage: ./scripts/deployment/run-all-next-steps-chain138.sh [--dry-run] [--skip-mirror] [--skip-mesh] [--legacy-pools-only] [--mesh-only] [--skip-register-gru] [--skip-verify]
# Usage: ./scripts/deployment/run-all-next-steps-chain138.sh [--dry-run] [--skip-preflight] [--skip-mirror] [--skip-mesh] [--legacy-pools-only] [--mesh-only] [--skip-register-gru] [--skip-verify]
# --dry-run Print steps only; do not run deploy/scripts.
# --skip-preflight Skip preflight-chain138-deploy.sh (e.g. pending nonce / stuck pool; do NOT deploy until preflight passes).
# --skip-mirror Do not deploy TransactionMirror + seed pool step.
# --skip-mesh Do not run full PMM mesh creation script.
# --legacy-pools-only Equivalent to --skip-mesh (keeps legacy mirror+seed behavior only).
@@ -44,6 +45,7 @@ load_smom_env() {
}
DRY_RUN=""
SKIP_PREFLIGHT=""
SKIP_MIRROR=""
SKIP_MESH=""
MESH_ONLY=""
@@ -51,6 +53,7 @@ SKIP_REGISTER_GRU=""
SKIP_VERIFY=""
for a in "$@"; do
[[ "$a" == "--dry-run" ]] && DRY_RUN=1
[[ "$a" == "--skip-preflight" ]] && SKIP_PREFLIGHT=1
[[ "$a" == "--skip-mirror" ]] && SKIP_MIRROR=1
[[ "$a" == "--skip-mesh" ]] && SKIP_MESH=1
[[ "$a" == "--legacy-pools-only" ]] && SKIP_MESH=1
@@ -60,12 +63,17 @@ for a in "$@"; do
done
echo "=== Chain 138 — run all next steps ==="
echo " dry-run: $DRY_RUN skip-mirror: $SKIP_MIRROR skip-mesh: $SKIP_MESH mesh-only: $MESH_ONLY skip-register-gru: $SKIP_REGISTER_GRU skip-verify: $SKIP_VERIFY"
echo " dry-run: $DRY_RUN skip-preflight: $SKIP_PREFLIGHT skip-mirror: $SKIP_MIRROR skip-mesh: $SKIP_MESH mesh-only: $MESH_ONLY skip-register-gru: $SKIP_REGISTER_GRU skip-verify: $SKIP_VERIFY"
echo ""
# 1) Preflight
echo "--- Step 1: Preflight ---"
if [[ -n "$DRY_RUN" ]]; then
if [[ -n "$SKIP_PREFLIGHT" ]]; then
echo "SKIP: --skip-preflight (no nonce/RPC gate). Do not broadcast deploys until preflight-chain138-deploy.sh passes." >&2
if [[ -n "$DRY_RUN" ]]; then
echo "[DRY-RUN] would skip $PROJECT_ROOT/scripts/deployment/preflight-chain138-deploy.sh"
fi
elif [[ -n "$DRY_RUN" ]]; then
echo "[DRY-RUN] $PROJECT_ROOT/scripts/deployment/preflight-chain138-deploy.sh"
else
"$SCRIPT_DIR/preflight-chain138-deploy.sh" || { echo "Preflight failed." >&2; exit 1; }