Repository navigation
Retry transient GitHub failures in the firmware list sync - #151
Conversation
Each sync makes ~30 GitHub requests (one comments fetch per open firmware PR), and a single 5xx or network error failed the whole run and filed a pipeline-alert. Retry those up to 3 attempts with backoff; 4xx responses still fail immediately. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
The recent failures reported on #132 were transient upstream errors, not bugs:
TypeError: fetch failed(network error)GitHub 500 Internal Server Errorfetching comments for firmware PR #12155Every scheduled run since has passed. Each sync makes ~30 GitHub requests (one comments fetch per open firmware PR), and
gh()had no retry, so a single blip failed the whole run.Change
gh()intools/fetch-firmware-list.mjsnow retries network errors and 5xx responses up to 3 attempts, with 1s/2s backoff. 4xx responses (including rate limiting) still fail immediately.Testing
fetch: network error → 500 → success on attempt 3; 404 fails on the first call.pnpm test: 62/62 passing.Closes #132
🤖 Generated with Claude Code
Summary by CodeRabbit