Skip to content

flowey: include repo names in gh-release-download cache keys#3281

Open
jstarks wants to merge 1 commit intomicrosoft:mainfrom
jstarks:cache_key
Open

flowey: include repo names in gh-release-download cache keys#3281
jstarks wants to merge 1 commit intomicrosoft:mainfrom
jstarks:cache_key

Conversation

@jstarks
Copy link
Copy Markdown
Member

@jstarks jstarks commented Apr 14, 2026

The CI cache key for downloaded GitHub release artifacts was an opaque hash like gh-release-download-c0fe86102c35d692, which made it impossible to tell from the cache UI what each entry contained or why it was created. This made debugging cache bloat and eviction issues needlessly difficult.

Replace the opaque key with a human-readable one that includes the repo name and tag for each downloaded artifact, followed by the hash for uniqueness. A typical key now looks like
gh-release-download-protobuf-27.1_openvmm-deps-0.1.0-20260401.1_<hash>, making it immediately clear what versions are cached and which version bump orphaned a stale entry. The key is truncated to stay within the 512-character GitHub Actions limit.

The CI cache key for downloaded GitHub release artifacts was an opaque
hash like `gh-release-download-c0fe86102c35d692`, which made it
impossible to tell from the cache UI what each entry contained or why
it was created. This made debugging cache bloat and eviction issues
needlessly difficult.

Replace the opaque key with a human-readable one that includes the
repo name and tag for each downloaded artifact, followed by the hash
for uniqueness. A typical key now looks like
`gh-release-download-protobuf-27.1_openvmm-deps-0.1.0-20260401.1_<hash>`,
making it immediately clear what versions are cached and which version
bump orphaned a stale entry. The key is truncated to stay within the
512-character GitHub Actions limit.
@jstarks jstarks requested a review from a team as a code owner April 14, 2026 23:43
Copilot AI review requested due to automatic review settings April 14, 2026 23:43
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the GitHub Actions cache key for downloaded GitHub release artifacts to be human-readable (repo + tag) while retaining a hash suffix for uniqueness, improving diagnostics of cache bloat/eviction in CI.

Changes:

  • Builds a descriptive cache key prefix from repo names and tags for each requested release artifact.
  • Keeps a hash suffix for uniqueness and truncates the descriptive portion to stay under Actions cache key limits.

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.

2 participants