Repository navigation
ci: restore the restate image from the WarpBuild cache - #319
Conversation
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]>
There was a problem hiding this comment.
✅ 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
restateImageCacheKeyinput — an optionalworkflow_callinput that defaults to"". It only takes effect together withrestateCommit. - Cache restore step —
WarpBuilds/cache/[email protected]restoresrestate.tarinto 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-artifactstep is skipped only whencache-hit == 'true'. A miss, a skipped restore or a restore error still downloads the artifact. Theworkflow_dispatchpath is unchanged. actions.lockentry —warpbuilds/[email protected]is pinned to40f3443ae7b70e568d6e2070ea897f3df94d7553. I checked this against the upstreamv1.4.13tag, and theverifycheck 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.
claude-opus-5-5 | 𝕏

What
Adds an optional
restateImageCacheKeyinput tointegration.yaml. When it's set, the job restoresrestate.tarfrom 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.tarartifact (435 MB).actions/download-artifactfetches 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
restateImageCacheKey, because passing an undefined input to a reusable workflow fails the call.🤖 Generated with Claude Code