-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This PR enables linux E2E tests in the release pipeline, https://buildkite.com/cardano-foundation/cardano-wallet-release/builds/150 - [x] Add node socket arguments to work around socket name length limitation - [x] Add a shell script that captures the GHA steps of the linux E2E - [x] Add a bit of logs to the Rakefile - [x] Add a step to the release pipeline
- Loading branch information
Showing
6 changed files
with
81 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#! /usr/bin/env -S nix shell 'nixpkgs#rsync' 'nixpkgs#gnutar' 'nixpkgs#gnupg' --command bash | ||
# shellcheck shell=bash | ||
|
||
set -euox pipefail | ||
|
||
mkdir -p "$(pwd)/logs" | ||
|
||
TESTS_LOGDIR="$(pwd)/logs" | ||
export TESTS_LOGDIR | ||
|
||
CARDANO_NODE_CONFIGS="$(pwd)/configs/cardano" | ||
export CARDANO_NODE_CONFIGS | ||
|
||
VERSION=$(buildkite-agent meta-data get "release-version") | ||
echo "VERSION=$VERSION" | ||
|
||
buildkite-agent artifact \ | ||
download "result/linux/cardano-wallet-$VERSION-linux64.tar.gz" "." | ||
|
||
tar xvzf "result/linux/cardano-wallet-$VERSION-linux64.tar.gz" | ||
|
||
TESTS_E2E_BINDIR="$(pwd)/cardano-wallet-$VERSION-linux64" | ||
export TESTS_E2E_BINDIR | ||
|
||
cd test/e2e | ||
|
||
TESTS_NODE_DB="$(pwd)/state/node_db" | ||
export TESTS_NODE_DB | ||
|
||
mkdir -p "$TESTS_NODE_DB"/preprod | ||
rsync -a --delete "$NODE_STATE_DIR/db/" "$TESTS_NODE_DB/preprod" | ||
|
||
tmpfile=$(mktemp /tmp/node-preprod.XXXXXX) | ||
|
||
CARDANO_NODE_SOCKET_PATH="$tmpfile" | ||
export CARDANO_NODE_SOCKET_PATH | ||
|
||
TESTS_E2E_STATEDIR=$(pwd)/state | ||
export TESTS_E2E_STATEDIR | ||
|
||
TESTS_E2E_TOKEN_METADATA=https://metadata.world.dev.cardano.org/ | ||
export TESTS_E2E_TOKEN_METADATA | ||
|
||
TESTS_E2E_FIXTURES="$FIXTURE_DECRYPTION_KEY" | ||
|
||
export TESTS_E2E_FIXTURES | ||
|
||
nix develop -c rake "run_on[preprod,sync,true]" # SPEC_OPTS="-e '<match>'" | ||
|
||
rm "$tmpfile" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters