DiscordChatExporter/docs/plans/2026-05-29-027-feat-host-runner-disk-preflight-plan.md
Boden 44eadee634 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.
2026-05-29 16:00:11 -05:00

1,004 B

title: feat: Disk preflight on host runner (cron path) type: feat status: complete date: 2026-05-29 origin: /lfg — monthly cron calls run-discord-scrape-host.sh directly, bypassing run-documents-scrape disk check

feat: Disk preflight on host runner (cron path)

Summary

setup-cron.sh invokes run-discord-scrape-host.sh scrape, not run-documents-scrape.sh. Run the same --disk-only check in the host wrapper before preflight and scrape so scheduled jobs fail fast when /home is full.

Requirements

ID Requirement
R1 run-discord-scrape-host.sh resolves host config from --config (maps /config/... to repo config)
R2 Calls verify-operator-ready.sh --disk-only when the script exists (skips in minimal fake-repo smokes)
R3 DCE_SKIP_DISK_CHECK=1 bypasses check for tests that need it
R4 run-all-smokes.sh still passes with DCE_MIN_FREE_MB=0

Verification

  • DCE_MIN_FREE_MB=0 ./scripts/run-all-smokes.sh