Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/actions.lock
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ workflows:
- 'docker/[email protected]'
- 'docker/[email protected]'
- 'restatedev/[email protected]'
- 'warpbuilds/[email protected]'
'.github/workflows/pullfrog.yml':
- 'actions/[email protected]'
- 'astral-sh/[email protected]'
Expand Down Expand Up @@ -175,3 +176,8 @@ dependencies:
- 'actions/setup-java@v4'
- 'actions/upload-artifact@v4'
- 'enricomi/publish-unit-test-result-action@v2'
'warpbuilds/[email protected]':
ref: 'v1.4.13'
commit: 'sha1-40f3443ae7b70e568d6e2070ea897f3df94d7553'
owner_id: 142974432
repo_id: 721583430
18 changes: 17 additions & 1 deletion .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ on:
required: false
default: ""
type: string
restateImageCacheKey:
description: "WarpBuild cache key of restate.tar, saved by the calling restate workflow. Restored instead of downloading the artifact, which stays the fallback; used together with restateCommit"
required: false
default: ""
type: string
restateImage:
description: "restate image, superseded by restate commit"
required: false
Expand Down Expand Up @@ -85,12 +90,23 @@ jobs:
}
}

# The calling restate workflow also saves restate.tar to the WarpBuild cache. Restoring it
# is much faster than the artifact download below, which stays the fallback. `path` must
# match the save in restate's docker.yml, because it is part of the cache version.
- name: Restore restate snapshot from the WarpBuild cache
id: restate-image-cache
if: ${{ inputs.restateCommit != '' && inputs.restateImageCacheKey != '' && github.event_name != 'workflow_dispatch' }}
uses: WarpBuilds/cache/[email protected]
with:
path: restate.tar
key: ${{ inputs.restateImageCacheKey }}

### Download the Restate container image, if needed
# Setup restate snapshot if necessary
# Due to https://github.com/actions/upload-artifact/issues/53
# We must use download-artifact to get artifacts created during *this* workflow run, ie by workflow call
- name: Download restate snapshot from in-progress workflow
if: ${{ inputs.restateCommit != '' && github.event_name != 'workflow_dispatch' }}
if: ${{ inputs.restateCommit != '' && github.event_name != 'workflow_dispatch' && steps.restate-image-cache.outputs.cache-hit != 'true' }}
uses: actions/[email protected]
with:
name: restate.tar
Expand Down
Loading