Change testnet automation to use TAR instead of snap (#1809)
This commit is contained in:
@ -55,21 +55,27 @@ echo --- Creating tarball
|
|||||||
tar jvcf solana-release.tar.bz2 solana-release/
|
tar jvcf solana-release.tar.bz2 solana-release/
|
||||||
)
|
)
|
||||||
|
|
||||||
echo --- AWS S3 Store
|
echo --- Saving build artifacts
|
||||||
if [[ -z $DRYRUN ]]; then
|
source ci/upload_ci_artifact.sh
|
||||||
(
|
upload_ci_artifact solana-release.tar.bz2
|
||||||
set -x
|
|
||||||
if [[ ! -r s3cmd-2.0.1/s3cmd ]]; then
|
|
||||||
rm -rf s3cmd-2.0.1.tar.gz s3cmd-2.0.1
|
|
||||||
$DRYRUN wget https://github.com/s3tools/s3cmd/releases/download/v2.0.1/s3cmd-2.0.1.tar.gz
|
|
||||||
$DRYRUN tar zxf s3cmd-2.0.1.tar.gz
|
|
||||||
fi
|
|
||||||
|
|
||||||
$DRYRUN python ./s3cmd-2.0.1/s3cmd --acl-public put solana-release.tar.bz2 \
|
if [[ -z $DO_NOT_PUBLISH_TAR ]]; then
|
||||||
s3://solana-release/"$CHANNEL_OR_TAG"/solana-release.tar.bz2
|
echo --- AWS S3 Store
|
||||||
)
|
if [[ -z $DRYRUN ]]; then
|
||||||
else
|
(
|
||||||
echo Skipped due to DRYRUN
|
set -x
|
||||||
|
if [[ ! -r s3cmd-2.0.1/s3cmd ]]; then
|
||||||
|
rm -rf s3cmd-2.0.1.tar.gz s3cmd-2.0.1
|
||||||
|
$DRYRUN wget https://github.com/s3tools/s3cmd/releases/download/v2.0.1/s3cmd-2.0.1.tar.gz
|
||||||
|
$DRYRUN tar zxf s3cmd-2.0.1.tar.gz
|
||||||
|
fi
|
||||||
|
|
||||||
|
$DRYRUN python ./s3cmd-2.0.1/s3cmd --acl-public put solana-release.tar.bz2 \
|
||||||
|
s3://solana-release/"$CHANNEL_OR_TAG"/solana-release.tar.bz2
|
||||||
|
)
|
||||||
|
else
|
||||||
|
echo Skipped due to DRYRUN
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
@ -1,9 +1,4 @@
|
|||||||
steps:
|
steps:
|
||||||
- command: "test -n $USE_PREBUILT_CHANNEL_TARBALL || ci/snap.sh"
|
|
||||||
label: "create snap"
|
|
||||||
|
|
||||||
- wait
|
|
||||||
|
|
||||||
- command: "ci/testnet-automation.sh"
|
- command: "ci/testnet-automation.sh"
|
||||||
label: "run testnet"
|
label: "run testnet"
|
||||||
agents:
|
agents:
|
||||||
|
@ -4,8 +4,8 @@ set -e
|
|||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
if [[ -z $USE_PREBUILT_CHANNEL_TARBALL ]]; then
|
if [[ -z $USE_PREBUILT_CHANNEL_TARBALL ]]; then
|
||||||
echo --- downloading snap from build artifacts
|
echo --- downloading tar from build artifacts
|
||||||
buildkite-agent artifact download "solana_*.snap" .
|
buildkite-agent artifact download "solana*.tar.bz2" .
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# shellcheck disable=SC1091
|
# shellcheck disable=SC1091
|
||||||
@ -35,7 +35,7 @@ launchTestnet() {
|
|||||||
if [[ -n $USE_PREBUILT_CHANNEL_TARBALL ]]; then
|
if [[ -n $USE_PREBUILT_CHANNEL_TARBALL ]]; then
|
||||||
net/net.sh start -o noValidatorSanity -t "$CHANNEL"
|
net/net.sh start -o noValidatorSanity -t "$CHANNEL"
|
||||||
else
|
else
|
||||||
net/net.sh start -o noValidatorSanity -S solana_*.snap
|
net/net.sh start -o noValidatorSanity -T solana*.tar.bz2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo --- wait "$ITERATION_WAIT" seconds to complete test
|
echo --- wait "$ITERATION_WAIT" seconds to complete test
|
||||||
|
Reference in New Issue
Block a user