Repository navigation
Frontend CI: back off for minutes before giving up on the Bun download - #17221
Merged
Merged
Conversation
Member
Author
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to #17211, for the same GitHub release-asset outage. The frontend CI step
Typecheck through bun checkdownloads the pinned Bun zip withcurl --retry 5 --retry-delay 3, which gives up after about 15 seconds of waiting. GitHub served bursts of 504s for release assets for over two hours today, and #17208'sFrontend build + bundle sanitywent red with sixcurl: (22) The requested URL returned error: 504lines in a row.This drops the fixed
--retry-delayand raises--retryto 8. Without a fixed delay, curl backs off exponentially (1, 2, 4, ... 128 s), so the step now waits about four minutes in total before failing. A healthy download is unchanged, and a download that never recovers still fails the job. The SHA-256 check and theUNSLOTH_TYPECHECK=bungate are untouched.Changes
.github/workflows/studio-frontend-ci.yml:--retry 8 --retry-connrefused --retry-all-errors, no--retry-delay.tests/test_bun_download_retries.py: reads the step'scurlline from the workflow and checks that--retry-all-errorsis set (curl does not retry a 504 without it) and that the total backoff is at least 240 s. A second test pins the backoff arithmetic against curl's documented behaviour.Testing
curl --retry 3without--retry-delaywaits 7 s (1 + 2 + 4), which matches the arithmetic in the test.pytest tests/test_bun_download_retries.py: 2 passed. Against the old step frommainit fails withassert 15 >= 240.studio-frontend-ci.ymlpass (98 passed), andscripts/lint_workflow_triggers.pyis clean.