From bb3203dee778474140c41816a70aa4234deca1c3 Mon Sep 17 00:00:00 2001 From: Github Action Date: Mon, 24 Jun 2024 15:28:09 +0000 Subject: [PATCH] Add "Docker compose smoke test" step --- .buildkite/release.yml | 11 +++++++++++ scripts/buildkite/release/docker-smoke-test.sh | 14 ++++++++++++++ 2 files changed, 25 insertions(+) create mode 100755 scripts/buildkite/release/docker-smoke-test.sh diff --git a/.buildkite/release.yml b/.buildkite/release.yml index 4af5fbc38e4..d3a7c89c53d 100644 --- a/.buildkite/release.yml +++ b/.buildkite/release.yml @@ -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 diff --git a/scripts/buildkite/release/docker-smoke-test.sh b/scripts/buildkite/release/docker-smoke-test.sh new file mode 100755 index 00000000000..782bee38ae6 --- /dev/null +++ b/scripts/buildkite/release/docker-smoke-test.sh @@ -0,0 +1,14 @@ +#! /usr/bin/env -S nix shell 'nixpkgs#docker-compose' --command bash +# shellcheck shell=bash + +export NETWORK=testnet +export WALLET_TAG=$(buildkite-agent meta-data get "release-version") +export NODE_TAG="8.9.3" +export NODE_DB="$(pwd)/ignore-me" +export WALLET_DB="$(pwd)/ignore-me" +export WALLET_PORT=8090 + +docker-compose up -d +mkdir -p logs +docker-compose logs > logs/docker-compose.log +docker-compose down \ No newline at end of file