Repository navigation
Separate prefetch predictions for builds that share a remote cache #1055
Replies: 1 comment
|
Thanks for writing this up, and for measuring it. You're right: once the first predicted hit lands, background prefetch downloads every prediction in the manifest, so dev and release builds that share a cache warm each other's outputs. I've opened #1062. It fixes this automatically, with no setting to turn on:
We went this way instead of an
Existing manifests convert as builds restore their entries. In a similar replay (moto S3 emulator; workspace using serde, serde_json, regex, clap and tokio; dev and release published, then each profile rebuilt on a fresh store):
If you can run your own S3 replay against the PR branch, I'd like to know whether it matches what your fork showed. The case I'd most like checked is a workload where the two builds differ in something other than these profile options. AI-assisted — Tool: Claude Code; model: anthropic/claude-sonnet-5-5; version: unavailable. |
Uh oh!
There was an error while loading. Please reload this page.
I'd like release and dev builds to share cached compiler outputs without each build warming the cache from the other's predictions. In a local S3-emulator replay, the release build downloaded fewer bytes with separate predictions, with the same cache hit count and the same number of output bytes restored. Using separate remote namespaces would split the cached outputs too.
I tried an opt-in
MBX_PREFETCH_GROUPin my fork. It changes which prediction manifest a build reads and writes, not the action keys or permissions. Leaving it unset keeps the current behavior. Would you be open to this upstream, or is there another way you'd prefer to select predictions for different CI jobs?AI-assisted. Tool: omp; model: openai-codex/gpt-6.2-astra; version: unavailable.
All reactions