docs(scrape): LFG closure — operator handoff in setup guides

Point README and Recurring-Scrape-Setup at operator-handoff.sh, document
disk preflight, and harden operator-handoff smoke against pipefail flakes.
This commit is contained in:
Boden
2026-05-29 16:05:42 -05:00
parent c0818715a8
commit c4371c9f7d
4 changed files with 45 additions and 6 deletions

View File

@@ -34,9 +34,20 @@ JSON
printf 'DISCORD_TOKEN=dummy\n' >"$ENV_PATH"
DCE_MIN_FREE_MB=0 \
DCE_CONFIG_FILE="$CONFIG_PATH" \
DCE_ENV_FILE="$ENV_PATH" \
"$HANDOFF" --config "$CONFIG_PATH" --skip-df | grep -q 'Handoff complete'
set +e
handoff_output=$(
DCE_MIN_FREE_MB=0 \
DCE_CONFIG_FILE="$CONFIG_PATH" \
DCE_ENV_FILE="$ENV_PATH" \
"$HANDOFF" --config "$CONFIG_PATH" --skip-df 2>&1
)
handoff_status=$?
set -e
if [[ "$handoff_status" -ne 0 ]] || ! grep -q 'Handoff complete' <<<"$handoff_output"; then
printf 'operator-handoff failed (status=%s)\n' "$handoff_status" >&2
printf '%s\n' "$handoff_output" >&2
exit 1
fi
printf 'operator-handoff-smoke: ok\n'