Skip to content

Drop registry cache imports that only burned pull quota - #9

Merged
aa8y merged 1 commit into
masterfrom
trim-cache-imports
Aug 31, 2026
Merged

Drop registry cache imports that only burned pull quota#9
aa8y merged 1 commit into
masterfrom
trim-cache-imports

Conversation

@aa8y

@aa8y aa8y commented Aug 31, 2026

Copy link
Copy Markdown
Owner

What

The master publish keeps starving on Docker Hub's hourly pull quota: every attempt lands all but the last couple of tags per shard before the window runs dry, cycle after cycle. Two classes of registry cache imports were spending that quota without buying anything:

  • The push template's --cache-from lines: dave push re-runs a build whose every layer already sits in the local image store of the same daemon that built and tested it, so the rebuild fully cache-hits locally — the 2–3 registry manifest fetches per tag per attempt were pure overhead.
  • The build template's unsuffixed legacy-ref fallback from before the per-arch cache split: one stale-cache lookup per tag per run for weeks-old cache.

The arch-scoped and PR-scoped imports in the build template stay — they're what let a retry rebuild to identical image IDs and hit the integration-test skip stamps.

Verification

  • YAML parses; rendered push template inspected (no --cache-from, --cache-to intact); build templates keep exactly the arch + PR-scope imports.

🤖 Generated with Claude Code

Every registry manifest fetch counts against Docker Hub's hourly pull
quota, and the master publish has been starving on it: each push attempt
landed all but the last couple of tags per shard before the window ran
dry, cycle after cycle.

Two imports were costing quota without buying anything:
- The push template's --cache-from lines. dave push re-runs a build
  whose every layer is already in the local image store of the same
  daemon that just built and tested it, so the rebuild fully cache-hits
  locally and the registry imports were pure overhead -- 2-3 manifest
  fetches per tag per attempt.
- The build template's unsuffixed legacy-ref fallback from before the
  per-arch cache split. One stale-cache lookup per tag per run for a
  cache that is weeks old.

The arch-scoped and PR-scoped imports in the build template stay: those
are what let a retry rebuild to identical image IDs.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@aa8y
aa8y enabled auto-merge (squash) August 31, 2026 05:23
@aa8y
aa8y merged commit d917729 into master Aug 31, 2026
14 of 24 checks passed
@aa8y
aa8y deleted the trim-cache-imports branch August 31, 2026 21:47
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