feat(scrape): disk preflight on host runner for cron jobs

run-discord-scrape-host.sh runs verify --disk-only before preflight/scrape
so setup-cron monthly jobs fail fast when archive roots are low on space.
Harden bootstrap smoke to surface failures when dry-run fails.
This commit is contained in:
Boden
2026-05-29 16:00:11 -05:00
parent 32b7f47d45
commit 44eadee634
4 changed files with 81 additions and 4 deletions

View File

@@ -41,9 +41,15 @@ cat >"$TMP_DIR/config.json" <<JSON
}
JSON
"$BOOTSTRAP" --dry-run --config "$TMP_DIR/config.json" | grep -q 'Dry run complete' || {
printf 'bootstrap --dry-run did not complete\n' >&2
set +e
bootstrap_output=$("$BOOTSTRAP" --dry-run --config "$TMP_DIR/config.json" 2>&1)
bootstrap_status=$?
set -e
if [[ "$bootstrap_status" -ne 0 ]] || ! grep -q 'Dry run complete' <<<"$bootstrap_output"; then
printf 'bootstrap --dry-run failed (status=%s)\n' "$bootstrap_status" >&2
printf '%s\n' "$bootstrap_output" >&2
exit 1
}
fi
printf 'bootstrap-recurring-scrape-smoke: ok\n'