Repository navigation
ci: restore the prompt parity fixtures from a verified cache - #1885
Merged
Merged
Conversation
Both Prompt Parity steps downloaded their hash-pinned prompt artifacts (205 MB for the 7 v1 contracts, 87 MB of them unique, and 17 MB for Nemotron) from models.darkbloom.ai on every run, with a flat 120 s per contract. On a slow Darkbloom VM the Nemotron contract timed out at under 142 KB/s (run 42330647893) and failed shard 1. - prepare-prompt-fixtures.py --download-cache takes an artifact from a content-addressed directory (verified_download_cache.py restore_file and store_file) only when the entry is a regular file with the pinned size and SHA-256; any other entry is downloaded and replaced, and a failure to store is ignored. Shared tokenizers download once. - A contract's deadline is 120 s plus its missing bytes at 128 KiB/s, at most 900 s. Each contract prints its cache and download counts. - Provider shard 1 restores the directory keyed by the hash of the prompt-contract manifests and saves it on dev and master pushes after both parity steps pass. Both parity scripts pass PROMPT_PARITY_DOWNLOAD_CACHE through. - Self-tests pin the steps, the key and the save condition, and cover every invalid entry, a read error, a failed store and the deadline. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…le changes prepare-prompt-fixtures.py, which the release lane's prompt parity runs, now imports scripts/verified_download_cache.py. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
11 of 16 tasks
jonathan308
added a commit
that referenced
this pull request
Nov 8, 2026
…ember-relay Three docs conflicts, each kept to both sides' facts: - README.md: dev's text (every choice serves in the background, #1899), with this branch's "darkbloom --opencode on either Mac". That renders dev's <!-- pending LS-3: in a pair, start with opencode on either Mac. --> marker, deleted. - docs/provider/local-first.md: dev's Only me log line and "No start screen prints the key" (bannerShowsKey is gone in dev), with this branch's pair sentences (the pair's API keeps the saved port; it takes this Mac's own key), which replaced "darkbloom restart for the pair's own API" and "the same key on both Macs" (review N4). - docs/reference/configuration.md: the [local] port row has this branch's pair scope (the ownAPIPort clause now names the solo server too) and dev's mode = "local"; the writers table keeps this branch's cluster-service row and dev's new "Nothing" row (mode flags are saved now). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308
added a commit
that referenced
this pull request
Nov 8, 2026
…e-choice One conflict, in docs/reference/configuration.md: the `[local] route` row sits next to #1899's `[local] port` row. Both sides are kept: this PR's `route` row (the running local API reads it again; `account_key_needed`) and #1899's `port` row (the desktop app's local mode saves it with `mode = "local"`). StartCommand+Modes.swift merged by itself, and the four router sites still pass the config file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308
added a commit
that referenced
this pull request
Nov 8, 2026
…at/tools-wait-for-model - StartCommand+Tools.swift: `setUpToolsBesideDaemon` keeps #1899's `waitSeconds` and two-argument `waitForAPI`, and this branch's `noteTools`; the doc comment says both. - cli-reference.md: #1900's banner sentences ("no start screen shows it"), then this branch's step 4, whose run-again rule replaces dev's sentence about a model without a context. - quickstart.md: both pending markers go (LS-1's and LS-4's), each rendered by its own PR. - ToolAddressTests: the hooks test's `waitForAPI` takes #1899's two arguments. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308
added a commit
that referenced
this pull request
Nov 8, 2026
…tools-default-model-and-names #1904's fixes from its independent review (Ctrl-C as the wait ends, `localhost` as this Mac, the run-again line by the process's word, the wiring tests) and its merge of dev (#1899, #1900, #1905, #1885, #1917). - ToolIntegrationStep.configure: #1904's `afterWait` (the wait's list and the process's word), then this branch's `resolve(here:)` for a pair. - local-first.md: this branch's URL in the "already serves" line, then #1899's Only me wait. - developer/test.md: the three new suites in the filter, and both rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7 of 15 tasks
This branch had an error being 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.
Summary
Provider CI downloaded the same hash-pinned prompt parity fixtures from models.darkbloom.ai on every run. On a slow Darkbloom VM this failed shard 1: in run 42330647893 (attempt 1) the 17 MB Nemotron contract did not finish inside the flat 120 s deadline (
prompt fixture provisioning failed: contract download timed out), so the parity summary found no reports.This PR:
Inventory: network fixture downloads in the provider and cluster test jobs
tokenizer.jsonand Qwen itsvocab.jsonfixtures/prompt-contract/v1/manifests/*.jsonfixtures/prompt-contract/nemotron/manifests/*.jsonprepare-mimo-prompt-fixtures.pymimo-metadata-v1-<hash of the pin scripts>prepare-mimo-audio-fixtures.pyFILESMIMO_AUDIOinputs change)FILESmimo-audio-source-v2-<codec sha256>Change
scripts/prepare-prompt-fixtures.py --download-cache DIR(set by both parity scripts fromPROMPT_PARITY_DOWNLOAD_CACHE).DIRholds one file per pinned SHA-256, in the same layout as the MiMo metadata cache. The newrestore_fileandstore_fileinscripts/verified_download_cache.pyread and write it.--max-time 900.provider-tests.yml, provider shard 1):Restore verified prompt fixture downloadsruns before the parity steps. Path:/private/tmp/dinf-ci/prompt-fixture-cache. Key:prompt-fixtures-v1-${{ hashFiles(v1 and Nemotron manifests) }}, exact match only.Save verified prompt fixture downloadsruns onSAVE_CACHES(pushes to dev and master), only if both parity steps passed and the key missed. Pull requests save nothing.Audio codec: already cached, and its cache misses on Darkbloom
The codec cache already existed. Its step times in the 60 most recent CI (dev) runs (2026-11-06 to 2026-11-07):
MIMO_AUDIOinputs.Before and after (prompt parity steps, measured in CI)
Before: the same 60 CI (dev) runs, one row for each job.
Each step time includes the Swift test run (about 30 s).
After: this PR's CI (dev) run 42335305794. In both attempts, shard 1 ran on Blacksmith and missed the cache: no entry exists under the new key until a dev push saves one.
On a miss, the v1 step now downloads each shared artifact once: 87.0 MB instead of 172.5 MB. Before this PR, the v1 step on Darkbloom took 67 s at the median and 283 s at the slowest, of which about 30 s is the Swift test run. On a miss, the download part of that time now moves half the bytes. On a hit, the step downloads nothing.
No Darkbloom number after the change exists yet. The router sent shard 1 of both attempts to Blacksmith, and a dev push has to save the entry before any run can hit it. The first dev push after the merge saves the entry. After that, a run on the same host should show
Cache restored from key: prompt-fixtures-v1-645076f1…andN of N artifacts from the download cache, 0 downloaded.Validation
scripts/test-prepare-prompt-fixtures.pyandscripts/test-provider-ci-workflow.pyin Check the CI plans.restore_filecall, whether the entry came fromactions/cacheor from an earlier contract of the same run. In both attempts, 7 artifacts came from entries that an earlier contract had stored:The
actions/cacheround trip of a flat directory of SHA-named regular files is the same one the MiMo metadata cache already uses. That cache hits in this run:Cache restored from key: mimo-metadata-v1-….CI results for head c35382f:
Provider Unit Tests (shard 1)/Run Swift tests, atMiMoV26EncodedAudiovisualIngressTests.testAFailedAudioReaderPassIsReadAgainAndReported. The same suite fails on dev pushes 42332006438 and 42335000698. Attempt 2 passed in full.Vercel – d-inferenceandVercel – d-inference-console-ui-devfail on other dev PRs too (Read a MiMo audio track again when its reader fails, and keep the cause #1867, cli: darkbloom start --opencode / --hermes (I-D2b, stacked on #1878 + #1873) #1880, Provider CI: pack only what the test jobs read #1882).Refactor pass
Result: PASS, with two small changes.
08530afa15: the deadline comment inprepare-prompt-fixtures.py, the cache comment inprovider-tests.ymlanddocs/developer/test.mdnow describe the code, not its history (no run number, no "before", no size that will drift).13234208c6:provider-release-cache.ymlnow runs its pull request validation whenscripts/verified_download_cache.pychanges. The release lane's prompt parity runsprepare-prompt-fixtures.py, which now imports that module.SAVE_CACHES, exact key, save only on a miss). The key hashes the manifests, and every entry is re-verified by size and SHA-256, so a changed fixture cannot be served stale. A restore failure only warns, and the parity steps do not depend on the restore step, so a miss downloads.ci-component-paths.pyalready lists the module. Check the CI plans passed.origin/devwith signed merge commits (31c6401453,37d0a442f1, which brings in Keep each reader in the test reader trackers so the audio fault tests end the audio reader #1886).CI on
37d0a442f1: CI (dev) 42343792026 and SDK 27 release preparation 42343791852 passed, with both provider shards and Check the CI plans. Shard 1 ran on a Darkbloom host and missed the cache (Cache not found for keys: prompt-fixtures-v1-645076f1…), as expected for a pull request. The v1 step took 34 s and Nemotron 26 s, against a 67 s and 31 s Darkbloom median before. On13234208c6, shard 1 failed only intestAFailedAudioReaderPassIsReadAgainAndReported, the dev flake that #1886 fixed.Limitations
provider-release-build) gets the scaled deadline, but no cache.🤖 Generated with Claude Code