Skip to content

Retry transient upstream failures in the scraper - #35

Merged
ironicbadger merged 1 commit into
mainfrom
codex/retry-transient-scrape-errors
Sep 14, 2026
Merged

ironicbadger merged 1 commit into
mainfrom
codex/retry-transient-scrape-errors

Conversation

@ironicbadger

@ironicbadger ironicbadger commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

A single transient HTTP 502 from https://linuxactionnews.com/176 caused scheduled run 34870752004 to fail, preventing the scraped notes from being committed and deployed.

Route episode pages and RSS/JSON feeds through a shared fetch helper with three retries, exponential backoff for HTTP 500/502/503/504, and connection/read timeouts. Persistent errors still fail the scrape, and feed-fetch errors now correctly set a nonzero exit code instead of silently succeeding.

Validation: five regression tests pass against a local HTTP server and mocks, covering recovery, exhausted retries, non-retryable 404s, timeouts, and feed failure exit status. Flake8 and mkdocs build pass (the build reports existing content-link warnings). CI now runs the regression tests before scraping.

A full live scrape with the fix also passed, saving 1,851 episodes with exit code 0.

@ironicbadger
ironicbadger merged commit ad03c91 into main Sep 14, 2026
2 checks passed
@ironicbadger
ironicbadger deleted the codex/retry-transient-scrape-errors branch September 14, 2026 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant