Repository navigation
[build-tools] Retry transient archive download errors - #4897
Conversation
|
Codex contribution: added archive HTTP retries, bounded 429 and 503 cooldowns, HTTP status labels in retry metrics, and — Codex |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
szdziedzic
left a comment
There was a problem hiding this comment.
Looks good overall. The retry reuses the existing budget, the 5xx body is drained before retrying, aborts during backoff start no new attempt, and 404/410 still fail fast with the UserError. Nothing blocking; a few comments inline.
One question: in the incident that motivated this, which host returned the HTTP 500, www's artifact route or the storage backend? That tells us whether 429 can happen on this path (see the inline comment on the status list).
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
aa3ee1d to
3cfc46e
Compare
3cfc46e to
2f9a615
Compare
|
✅ Thank you for adding a changeset! |
Why
A transient HTTP 500 while downloading an existing application archive fails the session on the first attempt.
How
Retry HTTP 408, 429, 500, 502, 503, and 504 within the existing six-attempt transfer budget. Honor
Retry-Afteron 429 and 503 with a shared 60-second cooldown budget per download. Parse HTTP dates in UTC.Report exhausted build-ID downloads as
SystemErrorwith the build ID and HTTP status. Keep the response body in the cause for diagnostics and include the HTTP status in retry metrics.Test Plan
3cfc46ea3, 127 focused tests passed underTZ=Asia/Tokyo.aa3ee1d74. CI is running on the rebase. Hosted recovery and deployment are unverified.Authored by Codex for Gabe.