Repository navigation
0.10.12 CI: resume the MiMo audio codec download instead of starting over - #2023
Merged
jonathan308 merged 5 commits intoNov 12, 2026
Merged
Conversation
#2021's Provider Unit Tests shard 2 failed at "Prepare selected MiMo audio fixture" twice (run 43132089921): its SDK pin move selects the MiMo audio gate (scripts/ci-component-paths.py MIMO_AUDIO lists libs/mlx-swift-lm), and as a pull request into release/candidate-0.10.12c it cannot read the Darkbloom cache copy that #1970 (into dev) restored, so it downloaded the 1.87 GB codec from models.darkbloom.ai. At about 2 MB/s each 900 s curl attempt stopped short (1.60 and 1.79 of 1.87 GB) and curl's --retry restarted from byte 0, so the step failed after 30 min. download() now runs up to eight 900 s attempts within 45 min, each with --continue-at - so it resumes the partial file, with 5-60 s pauses; curl's own --retry is gone (it restarts from zero). A partial longer than the file is restarted, and a file with the wrong digest is deleted so no later run resumes it. scripts/test-prepare-mimo-audio-fixtures.py (offline, 5 tests, run in provider-tests.yml's offline fixture step) fails 5/5 on the old script; a real fetch of tokenizer.json with two throttled 2 s attempts resumed to the pinned digest on the third. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
jonathan308
added a commit
that referenced
this pull request
Nov 12, 2026
This reverts 38dae15. The release tree stays the reviewed one: this commit's tree equals 8f6e190's (bfe5529). The fix stays in its own PR, #2023, for after 0.10.12; it also needs the pinned command list in scripts/test-provider-ci-workflow.py (CI plan check). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
scripts/test-provider-ci-workflow.py pins the exact commands of provider-tests.yml's "Test the prompt fixture downloaders offline" step, so #2023's new line (python3 scripts/test-prepare-mimo-audio-fixtures.py) turned "Check the CI plans" red (CI run 43145287715). The pinned list now has it. Red first: with this list, test_the_gate_requires_the_ci_plan_checks_of_ every_run fails against provider-tests.yml at 0b52123 (no audio test line) and passes with #2023's workflow; with the old list it fails against #2023's workflow. scripts/test-provider-ci-workflow.py: 35 tests OK; the other "Check the CI plans" commands and the four offline fixture tests pass locally. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308
changed the base branch from
release/candidate-0.10.12c
to
release/candidate-0.10.12d
November 12, 2026 06:22
…a branch scope The Darkbloom cache is each runner host's own (127.0.0.1:3129): #2017, a pull request into dev, missed on one attempt and hit on the next, and #2022, into the candidate branch, missed and downloaded in 53 s. The fragment no longer blames the pull request's base branch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…range is ignored The review of #2023 (review-2023.md, S1-S3 and N1, N3) and its verified patch sf-clamp-range.patch, applied as is: - S1: each attempt's --max-time is min(900, time left), at least 1 s (curl reads 0 as no limit), and no pause runs past the deadline. The step's worst case is 2,700 s again (it was 61.0 min: the last attempt could start at 44:59 and run 900 s; the job limit is 60 min). - S2: curl exit 33 (the server answered 200 to a range request) deletes the partial, so the next attempt starts over instead of every later run failing the same way. - S3: test_the_attempts_fit_in_the_budget (fake clock; pins --max-time 900 first, --fail, --speed-limit 102400 --speed-time 60 and the budget) and test_a_server_that_ignores_the_range_starts_the_file_over. - N1: unlink(missing_ok=True) after a digest mismatch. - N3: docs/developer/test.md no longer says "retries up to 5 times"; build.md lists the new offline test. The CI fragment says "never past 45 minutes from the first" and names the release qualification lane. Red first: the two new tests on 40f3b95's script fail (2715.0 not less than or equal to 2701; the exit-33 test errors) and pass with the script change. Offline: test-prepare-mimo-audio-fixtures.py 7 OK, test-provider-ci-workflow.py 35 OK, the other fixture and plan self-tests OK (Python 3.14). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch was successfully deployed
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.
Status
Draft, for 0.10.12 (owner, 11-12 morning: delayed items go in before the publish; cutoff ~11:00Z). CI-only. Opened by an agent (the #2021 pin owner). Base:
release/candidate-0.10.12d(0b52123a18, the merged 0.10.12 candidate), merged into this branch as864a9ec109(merge commit, no force). Diff against the base: the 7 files below. Reviewed (review-2023.md: ship, no must-fix);a4b05e92b6applies its verified should-fix patch (S1–S3, N1) and the docs nit (N3).Why
Tests / Provider Unit Tests (shard 2)intermittently fails or hangs at "Prepare selected MiMo audio fixture" while every test in the shard passes: #2021 (run 43132089921, both attempts failed; run 43146822738 still downloading after 5 min, cancelled and re-run), #2017 (run 43139677739 attempt 1, cancelled after 16 min; attempt 2 green).http://127.0.0.1:3129/) has no copy of the 1.57 GB entrymimo-audio-source-v2-0770…. That varies by host: Provider: darkbloom status shows the answers in progress #2017 (intodev) missed on attempt 1 and hit on attempt 2; 0.10.12: Bonsai 2 27B prompts batched again on a single Mac (mlx-swift 1b3520fe94); pairs keep per-row arithmetic #2022 (into the candidate branch) missed and downloaded in 53 s; Release preparation: provider 0.10.12 into dev #1970 at0e6ac37885hit (step 1 s). The step runs whenever the MiMo audio gate is selected (scripts/ci-component-paths.pyMIMO_AUDIO, which includeslibs/mlx-swift-lm/**).audio_tokenizer/model.safetensorsfrommodels.darkbloom.aidoes not fit in onecurl --max-time 900attempt (1.60, 1.63 and 1.79 GB, exit 28), and curl's--retryrestarts at byte 0. After--retry-max-time 1800the script raises (~30 min), or the run is cancelled first.What
scripts/prepare-mimo-audio-fixtures.pydownload(): up to 8 curl attempts, each--continue-at -(resumes the partial.downloadfile) with--max-time= min(900 s, time left in a 45-min budget) and no pause past the budget, so the step gives up within 2,700 s at worst (the old script's worst case was 2,705 s); 5–60 s pauses; curl's own--retryremoved (it restarts from zero). Exit 33 (the server ignored the range) deletes the partial so the next attempt starts over. A partial longer than the file restarts; a wrong digest deletes the partial so no later run resumes it.scripts/test-prepare-mimo-audio-fixtures.py--max-time 900first,--fail,--speed-limit 102400 --speed-time 60); a server that ignores the range starts the file over; an oversized partial restarts; a digest mismatch deletes the partial. The first 5 fail on the old script; the 2 budget/range tests fail on40f3b95f03's script..github/workflows/provider-tests.ymlscripts/test-provider-ci-workflow.pychangelog.d/ci-mimo-audio-codec-resume.mddocs/developer/test.md,docs/developer/build.mdProof
test_the_gate_requires_the_ci_plan_checks_of_every_runfails againstprovider-tests.ymlat0b52123a18(no audio test line) and passes with this PR's workflow; with the old list it fails against this PR's workflow (what CI run 43145287715 showed).scripts/test-provider-ci-workflow.py: 35 tests OK. The other "Check the CI plans" commands and the four offline fixture tests pass locally.earnings/paged-alloc-evidence/mimo-resume-sim/): a throttled local HTTP server with Range support serves a 25 MB file at 4 MB/s, and every curl attempt is cut after 2 s (about a third of the file).--retry): 3 attempts, each restarting at byte 0 (no Range request), exit 28 with 6.2 of 25.2 MB.prepare()on an empty cache (only--max-timeshortened, the pauses skipped, the provider fixture generator stubbed): 5 attempts, Range requests at 0, 6,225,920, 12,517,376, 18,743,296 and 24,969,216 bytes; the codec lands in the cache with the pinned digest.tokenizer.jsonfrommodels.darkbloom.aiwith two throttled 2 s attempts resumed to the pinned digest on the third.Proof of the review's should-fixes (
a4b05e92b6)40f3b95f03's script fail (2715.0 not less than or equal to 2701; the exit-33 test errors) and pass with the script change (7/7).CI
Head
a4b05e92b6: CI (dev) run 43176935378 green on the first attempt (shard 2 again on a cache miss: one 3 min download, audio gate passed).Run 43167774051 on
40f3b95f03:CONNECT tunnel failed, response 502cloningswift-nio-extras, thenlibs/mlx-swift-lm,libs/mlx-swiftandlibs/mlxfrom GitHub; other pull requests' runs failed the same way at 06:57–06:58Z. It touches none of this PR's files. Attempt 4 (07:13Z) passed: the run is green.