Skip to content

ci: restore the restate image from the WarpBuild cache - #319

Merged
MohamedBassem merged 1 commit into
mainfrom
ci/restate-image-warp-cache
Nov 18, 2026
Merged

MohamedBassem merged 1 commit into
mainfrom
ci/restate-image-warp-cache

Conversation

@MohamedBassem

Copy link
Copy Markdown
Member

What

Adds an optional restateImageCacheKey input to integration.yaml. When it's set, the job restores restate.tar from the WarpBuild cache before the artifact download, and skips the download on a cache hit.

Why

restate's CI hands its image to this workflow as the restate.tar artifact (435 MB). actions/download-artifact fetches it over a single connection, and in recent restate PR runs that took anywhere from 6 s to 8 min per job, often deciding when the whole run finishes. The WarpBuild cache restores at a few hundred MB/s.

Compatibility

  • Nothing changes until restate's CI passes the new input: callers that don't set it, and manual runs, behave exactly as before.
  • The artifact download stays as the fallback when the key is empty or the cache has no entry, so a failed save or a cache miss only costs time.
  • A reusable workflow runs with the caller's repository and ref, which is how the WarpBuild cache scopes entries, so this job should find the entry restate's docker job saved. That gets confirmed on the first restate run that passes the key; on a miss the job falls back to the artifact.
  • This needs to merge before restate's CI starts passing restateImageCacheKey, because passing an undefined input to a reusable workflow fails the call.

🤖 Generated with Claude Code

Add an optional `restateImageCacheKey` input to the integration workflow.
When restate's CI passes it, restate.tar is restored from the WarpBuild
cache instead of being downloaded as an artifact. The artifact download
stays as the fallback when the key is empty or the restore misses.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ No new issues found.

Approach: sound. It restores restate.tar from the WarpBuild cache when a key is passed and keeps the artifact download as the fallback, so callers that don't pass the key behave exactly as before.

Reviewed changes

This run reviewed the new optional cache input, the restore step, and its lockfile entry.

  • New restateImageCacheKey input — an optional workflow_call input that defaults to "". It only takes effect together with restateCommit.
  • Cache restore step — WarpBuilds/cache/[email protected] restores restate.tar into the workspace. It runs on the same conditions as the in-progress artifact download, plus a non-empty key.
  • Artifact download is now the fallback — the in-progress download-artifact step is skipped only when cache-hit == 'true'. A miss, a skipped restore or a restore error still downloads the artifact. The workflow_dispatch path is unchanged.
  • actions.lock entry — warpbuilds/[email protected] is pinned to 40f3443ae7b70e568d6e2070ea897f3df94d7553. I checked this against the upstream v1.4.13 tag, and the verify check passes.

One thing to keep in mind when wiring up the save side in restate's CI: the cache version includes path, the compression method and the runner architecture, not only path. enableCrossArchArchive defaults to false, so the save also has to run on an x64 runner. If it doesn't, the restore always misses and falls back to the slower artifact download, with no error.

Pullfrog  | View workflow run | Using claude-opus-5-5 | 𝕏

@github-actions

Copy link
Copy Markdown

Test Results

  8 files  ±0    8 suites  ±0   3m 42s ⏱️ -2s
 71 tests ±0   71 ✅ ±0  0 💤 ±0  0 ❌ ±0 
322 runs  ±0  322 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 3122c4a. ± Comparison against base commit 79a5a35.

@MohamedBassem
MohamedBassem merged commit fc7eb19 into main Nov 18, 2026
12 checks passed
@MohamedBassem
MohamedBassem deleted the ci/restate-image-warp-cache branch November 18, 2026 12:41
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant