Repository navigation
CI: one kache manifest key per kind of build - #168
Merged
Merged
Conversation
VisualCIdocspring/visualci · build #358 · 392 unchanged · no changes This PR vs base: nothing since #355, across 1 build docspring/visualci · journeys · build #357 · 3 changed, 27 unchanged · approved by visualci coordinator agent (MCP) for Nathan Broadbent
This PR vs base: 3 changed since #353, across 1 build Updated as builds change. Agents can review with VisualCI's MCP tools. |
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.
kache keeps one build manifest per manifest key: the list of artifacts it prefetches when the next job starts, and (with a namespace) its content-addressed shards. None of our jobs set
manifest-key, so clippy, the crates' tests, app's tests, the dev builds and the wasm build all used the default key (the target triple). Each main job overwrote the others' manifest. kache-action's docs say to "use different keys for clippy, test, release builds sharing the same S3 bucket", and kache's job summary warns "Prefetch contributed <20% of hits: check namespace/shard configuration".This gives each kind of build its own key:
visualci-clippy,visualci-app-test,visualci-crates-test,visualci-dev-bins(visual-capture and journeys build the same binaries) andvisualci-wasm. A key also turns on kache's shards (namespace defaults to it).Before (kache's job summaries)
On main, a job often prefetches from a manifest it wrote itself (88–92%). PRs get whichever job wrote last. Per-job keys should give PRs main's prefetch rates.
The new manifests only exist once main has run with them (PRs can't write), so this PR's own run shows no gain. I'll add the numbers from the PRs after its merge here.
Separately: the bucket is in Oceania (placed near where it was created), which is why every on-demand fetch from GitHub's US runners costs ~250 ms. A shared bucket with an ENAM location hint is being set up with talira infra; this PR is independent of it.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.