Repository navigation
Retry transient upstream failures in the scraper - #35
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 buildpass (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.