Skip to content

ci: save Rust caches only on pushes, and let releases read CI's image caches - #87

Merged
fylorn merged 1 commit into
devfrom
ci/cache-scopes
Oct 8, 2026
Merged

fylorn merged 1 commit into
devfrom
ci/cache-scopes

Conversation

@fylorn

@fylorn fylorn commented Oct 8, 2026

Copy link
Copy Markdown
Contributor
  • ci.yml: rust-cache saves only on pushes to dev and main. A PR can read its
    own caches, its base branch's and the default branch's, never another PR's,
    so a cache saved on a PR served only a later push to that same PR while
    taking as much of the 10 GB quota as dev's (refs/pull/85/merge held 2.2 GB).
  • release.yml: image builds read the caches CI saves on main and write none.
    The release scopes (server-linux-amd64, web-linux-amd64, ...) never
    matched CI's (server-linux/amd64, web), and a tag run can read only its
    own caches and main's, so every release built the images from scratch and
    filed caches under the tag that no later run could read. The tag points at
    a main commit CI has just built from the same Dockerfiles.

🤖 Generated with Claude Code

… caches

- ci.yml: `rust-cache` saves only on pushes to dev and main. A PR can read its
  own caches, its base branch's and the default branch's, never another PR's,
  so a cache saved on a PR served only a later push to that same PR while
  taking as much of the 10 GB quota as dev's (refs/pull/85/merge held 2.2 GB).
- release.yml: image builds read the caches CI saves on main and write none.
  The release scopes (`server-linux-amd64`, `web-linux-amd64`, ...) never
  matched CI's (`server-linux/amd64`, `web`), and a tag run can read only its
  own caches and main's, so every release built the images from scratch and
  filed caches under the tag that no later run could read. The tag points at
  a main commit CI has just built from the same Dockerfiles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fylorn
fylorn merged commit 977cab0 into dev Oct 8, 2026
6 checks passed
@fylorn
fylorn deleted the ci/cache-scopes branch October 8, 2026 03:39
@fylorn fylorn mentioned this pull request Oct 8, 2026
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