Skip to content

Mods discovery: retry GitHub's 5xx and keep going after a failed proposal - #35

Open
sh-ayu wants to merge 1 commit into
LiteLDev:mainfrom
sh-ayu:fix-discover-retry
Open

sh-ayu wants to merge 1 commit into
LiteLDev:mainfrom
sh-ayu:fix-discover-retry

Conversation

@sh-ayu

@sh-ayu sh-ayu commented Nov 28, 2026

Copy link
Copy Markdown

The 2026-11-27 19:26 UTC Discover run stopped at POST repos/LiteLDev/liteldev.github.io/git/refs: HTTP 502. The candidates after the failed one weren't proposed until the next run.

  • api() retries HTTP 500/502/503/504 up to 3 times (about 5 s, 15 s, then 45 s). Retrying a write GitHub had already made is safe: propose() reuses an existing branch, and any other duplicate write fails with a 4xx, which is still thrown.
  • A failed propose() logs a warning and moves on to the next candidate. The failed repository has no pull request yet, so the next run proposes it again. A rate limit still stops the run, as before.

Checked with eslint and node scripts/mods/discover.mjs --dry-run.

🤖 Generated with Claude Code

…osal

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants