Compare commits

...

7 Commits

Author SHA1 Message Date
Michael Vines
7d5bb28128 Make SNAP_CHANNEL more visible in build log 2018-08-17 21:40:24 -07:00
Michael Vines
ae433d6a34 Invert logic 2018-08-17 21:17:31 -07:00
Michael Vines
e3c668acff Keep v0.7 snap off the edge channel 2018-08-17 21:12:31 -07:00
Michael Vines
5825501c79 Log expansion directive must be on its own line 2018-08-17 20:58:00 -07:00
Michael Vines
7e84bb7a60 Add option to skip ledger verification 2018-08-17 20:41:55 -07:00
Michael Vines
da1fd96d50 0.7.2 2018-08-17 17:56:04 -07:00
Michael Vines
141e1e974d Add some wget retries 2018-08-17 16:11:18 -07:00
4 changed files with 23 additions and 11 deletions

@@ -1,7 +1,7 @@
[package] [package]
name = "solana" name = "solana"
description = "Blockchain, Rebuilt for Scale" description = "Blockchain, Rebuilt for Scale"
version = "0.7.1" version = "0.7.2"
documentation = "https://docs.rs/solana" documentation = "https://docs.rs/solana"
homepage = "http://solana.com/" homepage = "http://solana.com/"
readme = "README.md" readme = "README.md"

@@ -11,7 +11,9 @@ fi
# when this script is run from a triggered pipeline, TRIGGERED_BUILDKITE_TAG is # when this script is run from a triggered pipeline, TRIGGERED_BUILDKITE_TAG is
# used instead of BUILDKITE_TAG (due to Buildkite limitations that prevents # used instead of BUILDKITE_TAG (due to Buildkite limitations that prevents
# BUILDKITE_TAG from propagating through to triggered pipelines) # BUILDKITE_TAG from propagating through to triggered pipelines)
if [[ -z "$BUILDKITE_TAG" && -z "$TRIGGERED_BUILDKITE_TAG" ]]; then if [[ -n "$BUILDKITE_TAG" || -n "$TRIGGERED_BUILDKITE_TAG" ]]; then
SNAP_CHANNEL=stable
elif [[ $BUILDKITE_BRANCH = master ]]; then
SNAP_CHANNEL=edge SNAP_CHANNEL=edge
else else
SNAP_CHANNEL=beta SNAP_CHANNEL=beta
@@ -43,11 +45,11 @@ if [[ ! -x /usr/bin/multilog ]]; then
exit 1 exit 1
fi fi
echo --- build echo --- build: $SNAP_CHANNEL channel
snapcraft snapcraft
source ci/upload_ci_artifact.sh source ci/upload_ci_artifact.sh
upload_ci_artifact solana_*.snap upload_ci_artifact solana_*.snap
echo --- publish echo --- publish: $SNAP_CHANNEL channel
$DRYRUN snapcraft push solana_*.snap --release $SNAP_CHANNEL $DRYRUN snapcraft push solana_*.snap --release $SNAP_CHANNEL

@@ -70,7 +70,10 @@ fi
SNAP_INSTALL_CMD="sudo snap remove solana; $SNAP_INSTALL_CMD" SNAP_INSTALL_CMD="sudo snap remove solana; $SNAP_INSTALL_CMD"
EARLYOOM_INSTALL_CMD="\ EARLYOOM_INSTALL_CMD="\
wget -O install-earlyoom.sh https://raw.githubusercontent.com/solana-labs/solana/master/ci/install-earlyoom.sh; \ wget --retry-connrefused --waitretry=1 \
--read-timeout=20 --timeout=15 --tries=5 \
-O install-earlyoom.sh \
https://raw.githubusercontent.com/solana-labs/solana/master/ci/install-earlyoom.sh; \
bash install-earlyoom.sh \ bash install-earlyoom.sh \
" "
SNAP_INSTALL_CMD="$EARLYOOM_INSTALL_CMD; $SNAP_INSTALL_CMD" SNAP_INSTALL_CMD="$EARLYOOM_INSTALL_CMD; $SNAP_INSTALL_CMD"

@@ -17,12 +17,17 @@ if [[ -z $EXPECTED_NODE_COUNT ]]; then
fi fi
echo "--- $NET_URL: verify ledger" echo "--- $NET_URL: verify ledger"
if [[ -d /var/snap/solana/current/config/ledger ]]; then if [[ -z $NO_LEDGER_VERIFY ]]; then
# Note: here we assume this script is actually running on the leader node... if [[ -d /var/snap/solana/current/config/ledger ]]; then
sudo solana.ledger-tool --ledger /var/snap/solana/current/config/ledger verify # Note: here we assume this script is actually running on the leader node...
sudo solana.ledger-tool --ledger /var/snap/solana/current/config/ledger verify
else
echo "^^^ +++"
echo "Ledger verify skipped"
fi
else else
echo "^^^ +++" echo "^^^ +++"
echo "Ledger verify skipped" echo "Ledger verify skipped (NO_LEDGER_VERIFY defined)"
fi fi
echo "--- $NET_URL: wallet sanity" echo "--- $NET_URL: wallet sanity"
@@ -54,13 +59,15 @@ if [[ -z $NO_VALIDATOR_SANITY ]]; then
) )
wc -l validator.log wc -l validator.log
if grep -C100 panic validator.log; then if grep -C100 panic validator.log; then
echo "^^^ +++ Panic observed" echo "^^^ +++"
echo "Panic observed"
exit 1 exit 1
else else
echo "Validator log looks ok" echo "Validator log looks ok"
fi fi
else else
echo "^^^ +++ Validator sanity disabled (NO_VALIDATOR_SANITY defined)" echo "^^^ +++"
echo "Validator sanity disabled (NO_VALIDATOR_SANITY defined)"
fi fi
exit 0 exit 0