-
Notifications
You must be signed in to change notification settings - Fork 1
fix(setup): retry verifier-jar download on transient 5xx (Otto-285) #484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,8 +41,21 @@ grep -vE '^(#|$)' "$MANIFEST" | while IFS= read -r line; do | |
| # Download to a .part suffix then atomic-rename. Protects against | ||
| # partial downloads (network flap, Ctrl-C, OOM) becoming | ||
| # permanently trusted by the TOFU check above. | ||
| # | ||
| # Retries: GitHub's release-asset CDN occasionally returns | ||
| # transient 502 / 5xx responses (most recent observed: 2026-04-25 | ||
| # ~13:52 UTC, hit PR #481 CodeQL csharp + PR #482 markdownlint | ||
| # CI runs). Per Otto-285 (don't use determinism to avoid | ||
| # edge-case handling — handle the network-non-determinism | ||
| # algorithmically), curl handles the retry: `--retry 5` attempts, | ||
| # exponential backoff (2/4/8/16/32 s default), `--retry-all-errors` | ||
| # so 4xx/5xx server errors retry too (curl's default only retries | ||
|
Comment on lines
+50
to
+52
|
||
| # connect / dns / 408 / 429 / 5xx-with-Retry-After). Keeps | ||
| # `-fsSL` semantics — fail at the end if all 5 attempts hit | ||
| # the same transient. | ||
| echo "↓ downloading $target from $url" | ||
| curl -fsSL -o "$dest.part" "$url" | ||
| curl -fsSL --retry 5 --retry-delay 2 --retry-all-errors \ | ||
| -o "$dest.part" "$url" | ||
| mv "$dest.part" "$dest" | ||
| echo "✓ $target" | ||
| fi | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P1: This comment block’s cross-reference looks incorrect: it says “PR #482 markdownlint”, but in this repo PR #482 is a different change (HLL fuzz test). Consider removing the PR-number references (they’ll drift) or updating them to the correct incident/PR IDs so the rationale stays accurate.