Skip to content

deploy: retry on 5xx/429 and shorten HTML error output - #20

Merged
TinyBrickBoy merged 1 commit into
mainfrom
claude/nice-shannon-l9mipe
Sep 25, 2026
Merged

TinyBrickBoy merged 1 commit into
mainfrom
claude/nice-shannon-l9mipe

Conversation

@TinyBrickBoy

Copy link
Copy Markdown
Owner

The Deploy DNS run failed because skrime.eu (behind Cloudflare) returned 502 Bad gateway for both zones. Cloudflare marked the origin host as the error source, so this was a temporary upstream outage, not a problem with the records.

Changes in .github/scripts/deploy.js:

  • Retry up to 4 times with exponential backoff (5s, 10s, 20s) on HTTP 5xx, 429 and network errors. Other 4xx still fail right away.
  • Log only the <title> of HTML error pages (for example skrime.eu | 502: Bad gateway) instead of the full Cloudflare page.

Tested locally against a mock server that returns 502 twice and then 200: the script retries and exits 0.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Vzw95xoy6RWUeGkRfgbMST


Generated by Claude Code

skrime.eu sits behind Cloudflare and occasionally returns 502 Bad gateway
while the origin is unavailable. Retry up to 4 times with exponential
backoff (5s, 10s, 20s) and log only the page title instead of the full
Cloudflare HTML page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vzw95xoy6RWUeGkRfgbMST
@github-actions

Copy link
Copy Markdown

Changes requested

Thanks for your submission! A few things need fixing before this can be merged:

  • .github/scripts/deploy.js is outside domains/. PRs may only add or edit files in domains/<domain>/<subdomain>/.

Push a new commit to this pull request and I'll re-check automatically.

@github-actions github-actions Bot added the invalid This doesn't seem right label Sep 25, 2026

Copy link
Copy Markdown
Owner Author

The validate check fails by design here. validate-pr.js only accepts changes inside domains/<domain>/<subdomain>/, because it is meant for subdomain submissions. This PR changes the maintainer script .github/scripts/deploy.js, so the check can't pass without changing the validator itself, and that is out of scope for this PR. Nothing is wrong with the code; a maintainer has to merge past this check.


Generated by Claude Code

@TinyBrickBoy
TinyBrickBoy marked this pull request as ready for review September 25, 2026 09:34
@TinyBrickBoy
TinyBrickBoy merged commit 8576f09 into main Sep 25, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

invalid This doesn't seem right

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants