Repository navigation
Description
Problem or Motivation
The Service, Runner and MCP jobs export a type=gha cache (.github/workflows/ci.yml:501, 726, 821). The repository cache holds 12.3 GB in 307 entries, more than the 10 GB limit, so an entry that nobody reads lives for about 47 min (measured).
PR caches go to refs/pull/<n>/merge, and other PRs cannot read them. Each build gets 2 CACHED layers. The Service export takes about 73 s on average. The ci.yml comment says that runner-image shares the builder stage through the cache, but the Runner build takes 140.5 s and builds that stage again (measured).
Saving: 2.5-4 runner-min per push (estimated).
Found by the CI and test audit of 2026-11-11. The account runs at most 20 hosted jobs at one time (measured), so each job that does no work makes the queue of each pull request longer.
Proposed Solution & Architectural Design
- Remove
cache-tofrom the three PR image jobs. - Keep one scoped
cache-toinrelease.ymlonmain. A PR can read the cache of its base branch, so each PR can read thebuilderlayers. - Correct the
ci.ymlcomment (AGENTS.md rule 8).
Risk: Low. The smoke tests and the Trivy scans stay.
Target Subsystem
SDLC, Git & PR Governance (.github/workflows/ci.yml, .github/workflows/release.yml).
Existing Tool Considered
The BuildKit gha cache backend and the GitHub Actions cache scope rules (a branch reads the cache of its base branch). No new tool. Cost: about 15,000 tokens and 1 hour.
Acceptance Criteria
- No PR job writes the
ghacache. - One day after the merge, the Actions cache uses 10 GB or less.
- The mean of the Service Image job is 2.2 min or less (from 3.05 min).
- A comment on this issue gives the CACHED layer count of the
builderstage one day after the merge.
Dependencies
None.
Activity
dan-petty commentedon Nov 11, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
perfprefix of the title gives the type.(ci)scope of the title gives the scope.Saves 2.5-4 runner-min per push and keeps cache under the 10 GB limit, but does not block functionality.Reduces queue wait time and prevents cache eviction of useful entries.Remove cache-to from three jobs, keep one in release.yml, and fix one comment.Both optimize caching in ci.yml and release.yml, but the candidate removes BuildKit gha cache export while #99 tunes setup-uv and DevContainer cache settings.devops-cli-service commentedon Nov 12, 2026
Released in v0.119.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.119.0
devops-cli-service commentedon Nov 12, 2026
Live since 2026-11-12 15:46 UTC
perf(ci): keep the image build cache in GHCR (#6530)