Skip to content

CI: one kache manifest key per kind of build - #168

Merged
ndbroadbent merged 2 commits into
mainfrom
ci/kache-manifest-keys
Dec 4, 2026
Merged

ndbroadbent merged 2 commits into
mainfrom
ci/kache-manifest-keys

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

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) and visualci-wasm. A key also turns on kache's shards (namespace defaults to it).

Before (kache's job summaries)

job PR run 47262720698: prefetch / overhead per hit PR run 47262085041 main run 47262047233
lint 9.2% / 564 ms 8.4% / 602 ms 35.7% / 486 ms
test 9.9% / 433 ms 9.9% / 519 ms 92.0% / 314 ms
visual-capture 14.1% / 523 ms 14.1% / 524 ms 88.2% / 304 ms
journeys 14.1% / 412 ms 14.1% / 528 ms 88.3% / 324 ms
clients 23.6% / 601 ms 23.6% / 630 ms 23.6% / 574 ms

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-bot with what you need.

@visualci-com

visualci-com Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

VisualCI

docspring/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

#167's deliberate re-baseline (software raster); each matches its approved change. #168 is a CI-only change.

This PR vs base: 3 changed since #353, across 1 build

Snapshot Before After
journeys/open-app-stays-in-the-app/02-site-signed-in (changed)
journeys/reinstall-keeps-the-organization-and-projects/02-picker-after-reinstall (changed)
journeys/setup-picks-from-300-repositories/02-picker (changed)

Updated as builds change. Agents can review with VisualCI's MCP tools.

@ndbroadbent
ndbroadbent merged commit 8fc012e into main Dec 4, 2026
15 checks passed
@ndbroadbent
ndbroadbent deleted the ci/kache-manifest-keys branch December 4, 2026 04:19
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