Skip to content

Commit

Permalink
Add "Docker compose smoke test" step
Browse files Browse the repository at this point in the history
  • Loading branch information
Github Action committed Jun 24, 2024
1 parent 3cdba04 commit bdea3fb
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .buildkite/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,17 @@ steps:
agents:
system: x86_64-linux

- label: 'Smoke test docker-compose'
depends_on:
- build-docker
- refresh-node-state
commands:
- ./scripts/buildkite/release/docker-smoke-test.sh
artifact_paths:
- "./logs/**/*"
agents:
system: x86_64-linux

- label: 'Run linux e2e tests'
depends_on:
- add-release-commits
Expand Down
18 changes: 18 additions & 0 deletions scripts/buildkite/release/docker-smoke-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#! /usr/bin/env -S nix shell 'nixpkgs#docker-compose' --command bash
# shellcheck shell=bash

set -euox pipefail

mkdir -p state

export NETWORK=testnet
export WALLET_TAG=$(buildkite-agent meta-data get "release-cabal-version")
export NODE_TAG="8.9.3"
export NODE_DB="$(pwd)/state"
export WALLET_DB="$(pwd)/state"
export WALLET_PORT=8090

docker-compose up -d
mkdir -p logs
docker-compose logs > logs/docker-compose.log
docker-compose down
1 change: 1 addition & 0 deletions scripts/buildkite/release/release-candidate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,4 @@ git push -f origin "$RELEASE_CANDIDATE_BRANCH"
buildkite-agent meta-data set "release-version" "$NEW_GIT_TAG"
buildkite-agent meta-data set "release-commit" "$RELEASE_COMMIT"
buildkite-agent meta-data set "release-candidate-branch" "$RELEASE_CANDIDATE_BRANCH"
buildkite-agent meta-data set "release-cabal-version" "$NEW_CABAL_VERSION"

0 comments on commit bdea3fb

Please sign in to comment.