Repository navigation
Backend CI: back off for about five minutes before giving up on the ruff-unsloth wheel - #17211
Merged
Merged
Conversation
…uff-unsloth wheel
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. Keep it up! 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". |
danielhanchen
added a commit
that referenced
this pull request
Nov 9, 2026
#17221) ## Summary Follow-up to #17211, for the same GitHub release-asset outage. The frontend CI step `Typecheck through bun check` downloads the pinned Bun zip with `curl --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's `Frontend build + bundle sanity` went red with six `curl: (22) The requested URL returned error: 504` lines in a row. This drops the fixed `--retry-delay` and raises `--retry` to 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 the `UNSLOTH_TYPECHECK=bun` gate 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's `curl` line from the workflow and checks that `--retry-all-errors` is 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 - Against a local server that always answers 504, `curl --retry 3` without `--retry-delay` waits 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 from `main` it fails with `assert 15 >= 240`. - The other tests that read `studio-frontend-ci.yml` pass (98 passed), and `scripts/lint_workflow_triggers.py` is clean.
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
The Backend CI step that installs the pinned
ruff-unslothwheel retries 3 times with 5 s and 10 s gaps. Between 05:19 and 05:40 UTC today, GitHub served intermittent 504s for the release asset, and every attempt of an unlucky job landed inside one burst. That turnedRepo tests (CPU, fsdp2 / gloo-cp / gloo-pp / gloo-tp / rest / studio-install)red on #17188, #17191, #17197, #17201 and #17202, while sibling jobs in the same runs installed the wheel fine a minute later.This raises the loop to 6 attempts with exponential backoff (10, 20, 40, 80, 160 s, about 5 minutes total). A healthy download still never sleeps, and a lasting outage still fails the job with the same
::error::line, so the fixed-point formatter guard keeps failing loudly in CI when the wheel is truly unavailable.Changes
.github/workflows/studio-backend-ci.yml: 6 attempts,sleep $((10 << (attempt - 1))).tests/test_ruff_unsloth_install_retries.py: runs the step's ownrun:script under bash withpipandsleepfaked onPATH, and checks thatTesting
pytest tests/test_ruff_unsloth_install_retries.py: 3 passed.main, the burst test fails withruff-unsloth install failed after 3 attempts.studio-backend-ci.ymlpass.