Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support snapshot sdk-java commits #212

Merged
merged 2 commits into from
Nov 3, 2023
Merged
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
39 changes: 32 additions & 7 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ on:
required: false
default: ''
type: string
sdkJavaCommit:
description: 'sdk-java commit'
required: false
default: ''
type: string
restateCommit:
description: 'restate commit'
required: false
Expand All @@ -27,6 +32,11 @@ on:
required: false
default: ''
type: string
sdkJavaCommit:
description: 'sdk-java commit'
required: false
default: ''
type: string
restateCommit:
description: 'restate commit'
required: false
Expand Down Expand Up @@ -64,6 +74,7 @@ jobs:
- uses: actions/checkout@v3
with:
repository: restatedev/e2e
path: e2e
# if we are in a workflow_call, use the e2e branch from the workflow call (usually main)
# otherwise, defer to the checkout actions default, which depends on the triggering event
ref: ${{ inputs.e2eRef || '' }}
Expand Down Expand Up @@ -96,7 +107,7 @@ jobs:
uses: actions/download-artifact@v3
with:
name: restatedev-restate-sdk
path: services/node-services
path: e2e/services/node-services

# In the workflow dispatch case where the artifact was created in a previous run, we can download as normal
- name: Download sdk-typescript snapshot from completed workflow
Expand All @@ -107,12 +118,24 @@ jobs:
repo: restatedev/sdk-typescript
commit: ${{ inputs.sdkTypescriptCommit }}
name: restatedev-restate-sdk
path: services/node-services
path: e2e/services/node-services

- name: Install sdk-typescript snapshot
if: ${{ inputs.sdkTypescriptCommit != '' }}
run: npm install restatedev-restate-sdk.tgz
working-directory: services/node-services
working-directory: e2e/services/node-services

# Setup sdk-java snapshot if necessary
- name: Checkout sdk-java repo
uses: actions/checkout@v3
if: ${{ inputs.sdkJavaCommit != '' }}
with:
repository: restatedev/sdk-java
# if we are in a workflow_call, use the e2e branch from the workflow call (usually main)
# otherwise, defer to the checkout actions default, which depends on the triggering event
ref: ${{ inputs.sdkJavaCommit }}
token: ${{ secrets.SDK_JAVA_CONTENTS_READ_TOKEN || secrets.GITHUB_TOKEN }}
path: "sdk-java"

# Setup restate snapshot if necessary
# Due to https://github.com/actions/upload-artifact/issues/53
Expand Down Expand Up @@ -149,24 +172,26 @@ jobs:
E2E_IMAGE_PULL_POLICY: always
E2E_VERIFICATION_SEED: ${{ github.run_id }}
RESTATE_RUNTIME_CONTAINER: ${{ inputs.restateCommit != '' && 'localhost:5000/restatedev/restate:latest' || '' }}
JAVA_SDK_LOCAL_BUILD: ${{ inputs.sdkJavaCommit != '' && 'true' || '' }}
with:
arguments: -Djib.console=plain check
build-root-directory: e2e

# Upload container logs
- uses: actions/upload-artifact@v3
if: always() # Make sure this is run even when test fails
with:
name: container-logs
path: |
tests/build/test-results/*/container-logs/**
tests/build/reports/tests/**
tests/build/test-results/*/*.xml
e2e/tests/build/test-results/*/container-logs/**
e2e/tests/build/reports/tests/**
e2e/tests/build/test-results/*/*.xml

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: |
tests/build/test-results/*/*.xml
e2e/tests/build/test-results/*/*.xml


Loading