Skip to content

Antithesis Test Run #86

Antithesis Test Run

Antithesis Test Run #86

Workflow file for this run

name: Antithesis Test Run
on: workflow_dispatch
jobs:
build:
permissions:
id-token: write # This is required for requesting the JWT
contents: write # This is required for actions/checkout (read) and publishing tags (write)
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
android: true
dotnet: true
haskell: true
large-packages: false
docker-images: true
swap-storage: true
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: https://us-central1-docker.pkg.dev
username: _json_key
password: ${{ secrets.ANTITHESIS_DOCKER_CREDENTIAL }}
- name: "Checkout"
uses: actions/checkout@v3
with:
ref: refs/heads/e2e-test-replicated-scylla
submodules: recursive
fetch-depth: 0
- name: "Gradle Build kafka-client"
uses: gradle/[email protected]
with:
arguments: kafka-client:build -xtest
- name: "Gradle Build"
uses: gradle/[email protected]
with:
arguments: kafka-client-examples:e2e-test:build kafka-client-examples:e2e-test:buildDocker
- name: "Set Kafka Client Version"
run: |
echo "KAFKA_CLIENT_VERSION=$(./gradlew kafka-client:cV | grep "Project version" | sed 's/Project version: //')" >> $GITHUB_OUTPUT
id: kafka_client_version
- name: "Tag Docker"
env:
KAFKA_CLIENT_VERSION: ${{ steps.kafka_client_version.outputs.KAFKA_CLIENT_VERSION }}
run: |
docker tag e2e-test:$KAFKA_CLIENT_VERSION us-central1-docker.pkg.dev/molten-verve-216720/responsive-repository/e2e-test:$KAFKA_CLIENT_VERSION
- name: "Push Docker"
env:
KAFKA_CLIENT_VERSION: ${{ steps.kafka_client_version.outputs.KAFKA_CLIENT_VERSION }}
run: |
docker push us-central1-docker.pkg.dev/molten-verve-216720/responsive-repository/e2e-test:$KAFKA_CLIENT_VERSION
- name: "Build Config"
working-directory: ./kafka-client-examples/e2e-test/docker/antithesis
env:
KAFKA_CLIENT_VERSION: latest
CONFIG_IMG_VERSION: ${{ steps.kafka_client_version.outputs.KAFKA_CLIENT_VERSION }}
run: |
cat config/docker-compose.yml.template | envsubst > config/docker-compose.yml
docker build . -t us-central1-docker.pkg.dev/molten-verve-216720/responsive-repository/e2e-test-config:$CONFIG_IMG_VERSION
- name: "Push Config"
env:
KAFKA_CLIENT_VERSION: ${{ steps.kafka_client_version.outputs.KAFKA_CLIENT_VERSION }}
run: |
docker push us-central1-docker.pkg.dev/molten-verve-216720/responsive-repository/e2e-test-config:$KAFKA_CLIENT_VERSION
- name: "Build Scylla"
working-directory: ./kafka-client-examples/e2e-test/docker/scylla
env:
KAFKA_CLIENT_VERSION: ${{ steps.kafka_client_version.outputs.KAFKA_CLIENT_VERSION }}
run: |
docker build . -t us-central1-docker.pkg.dev/molten-verve-216720/responsive-repository/responsive-scylla:$KAFKA_CLIENT_VERSION
- name: "Push Scylla"
env:
KAFKA_CLIENT_VERSION: ${{ steps.kafka_client_version.outputs.KAFKA_CLIENT_VERSION }}
run: |
docker push us-central1-docker.pkg.dev/molten-verve-216720/responsive-repository/responsive-scylla:$KAFKA_CLIENT_VERSION
# Run Antithesis Tests
#- name: Run Antithesis Tests
# uses: antithesishq/antithesis-trigger-action@main
# with:
# notebook_name: responsive
# tenant: responsive
# username: ${{ secrets.ANTITHESIS_USERNAME }}
# password: ${{ secrets.ANTITHESIS_PASSWORD }}
# github_token: ${{ secrets.ANTITHESIS_GH_PAT }}
# config_image: us-central1-docker.pkg.dev/molten-verve-216720/responsive-repository/e2e-test-config:${{ steps.kafka_client_version.outputs.KAFKA_CLIENT_VERSION }}
# images: us-central1-docker.pkg.dev/molten-verve-216720/responsive-repository/e2e-test:${{ steps.kafka_client_version.outputs.KAFKA_CLIENT_VERSION }}
# description: "responsive antithesis test run"