Skip to content

0.10.12 CI: resume the MiMo audio codec download instead of starting over - #2023

Merged
jonathan308 merged 5 commits into
release/candidate-0.10.12dfrom
ci/mimo-audio-fixture-resume-0112
Nov 12, 2026
Merged

jonathan308 merged 5 commits into
release/candidate-0.10.12dfrom
ci/mimo-audio-fixture-resume-0112

Conversation

@jonathan308

@jonathan308 jonathan308 commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

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 as 864a9ec109 (merge commit, no force). Diff against the base: the 7 files below. Reviewed (review-2023.md: ship, no must-fix); a4b05e92b6 applies 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).

What

File Change
scripts/prepare-mimo-audio-fixtures.py download(): up to 8 curl attempts, each --continue-at - (resumes the partial .download file) 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 --retry removed (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 Offline, 7 tests: each attempt resumes; an early error is retried; it stops after the last attempt; the attempts fit the budget (fake clock; pins --max-time 900 first, --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 on 40f3b95f03's script.
.github/workflows/provider-tests.yml The offline fixture step also runs the new test (one line).
scripts/test-provider-ci-workflow.py Its pinned command list for that step gains the line.
changelog.d/ci-mimo-audio-codec-resume.md CI fragment.
docs/developer/test.md, docs/developer/build.md The download's retry rule as it is now; the new offline test in "Check the CI plans".

Proof

  • Red first, workflow test: with the new pinned list, test_the_gate_requires_the_ci_plan_checks_of_every_run fails against provider-tests.yml at 0b52123a18 (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.
  • A cache miss now resumes (local simulation, 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).
    • Old script's curl (--retry): 3 attempts, each restarting at byte 0 (no Range request), exit 28 with 6.2 of 25.2 MB.
    • This PR's prepare() on an empty cache (only --max-time shortened, 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.
  • Real network: a fetch of the pinned tokenizer.json from models.darkbloom.ai with two throttled 2 s attempts resumed to the pinned digest on the third.

Proof of the review's should-fixes (a4b05e92b6)

  • Red first: the patch's two tests on 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:

  • Provider Unit Tests (shard 2): green, on a cache miss. "Restore pinned MiMo audio codec" found nothing; this PR's "Prepare selected MiMo audio fixture" downloaded the codec (1 min 41 s, one attempt on that host) and the native MiMo audio gate passed.
  • Check the CI plans: green (the workflow test with the new pinned list, and the new offline test).
  • 23 other checks pass. Cluster Release Build Checks failed 3 times at checkout: the Darkbloom Sandbox proxy answered CONNECT tunnel failed, response 502 cloning swift-nio-extras, then libs/mlx-swift-lm, libs/mlx-swift and libs/mlx from 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.

#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>
@vercel

vercel Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference-landing Ready Ready Preview Nov 12, 2026 7:42am UTC
darkbloom-status Ready Ready Preview Nov 12, 2026 7:42am UTC
eigen-homepages-darkbloom Ready Ready Preview Nov 12, 2026 7:42am UTC

Request Review

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>
@jonathan308 jonathan308 changed the title 0.10.12 CI: resume the MiMo audio codec download instead of starting over CI: resume the MiMo audio codec download instead of starting over (after 0.10.12) Nov 12, 2026
jonathan308 and others added 2 commits November 11, 2026 22:18
…te) into the MiMo audio download fix

#2023 now targets 0.10.12 (owner, 11-12 morning). Its base moves from
release/candidate-0.10.12c (0e6ac37) to release/candidate-0.10.12d.

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 jonathan308 changed the title CI: resume the MiMo audio codec download instead of starting over (after 0.10.12) 0.10.12 CI: resume the MiMo audio codec download instead of starting over Nov 12, 2026
@jonathan308
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

3 active deployments
Preview – eigen-homepages-darkbloom — a4b05e92 Deployed Nov 12, 2026 by vercel[bot]
Preview – d-inference-landing — a4b05e92 Deployed Nov 12, 2026 by vercel[bot]
Preview – darkbloom-status — a4b05e92 Deployed Nov 12, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant