Run buildkite iterations in parallel
This commit is contained in:
parent
f37eb533f1
commit
3c86f41769
|
@ -1,4 +0,0 @@
|
||||||
steps:
|
|
||||||
- command: "ci/iterations-localnet.sh"
|
|
||||||
name: "iterations-localnet"
|
|
||||||
timeout_in_minutes: 40
|
|
|
@ -1,7 +1,8 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
FEATURES="$1"
|
testCmd="$*"
|
||||||
|
genPipeline=false
|
||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
|
@ -9,27 +10,57 @@ cd "$(dirname "$0")/.."
|
||||||
rm -rf "$HOME/.config/solana"
|
rm -rf "$HOME/.config/solana"
|
||||||
|
|
||||||
source ci/_
|
source ci/_
|
||||||
ci/version-check-with-upgrade.sh stable
|
|
||||||
export RUST_BACKTRACE=1
|
export RUST_BACKTRACE=1
|
||||||
export RUSTFLAGS="-D warnings"
|
export RUSTFLAGS="-D warnings"
|
||||||
|
|
||||||
_ scripts/ulimit-n.sh
|
|
||||||
_ cargo build --all --features="$FEATURES"
|
|
||||||
|
|
||||||
export PATH=$PWD/target/debug:$PATH
|
export PATH=$PWD/target/debug:$PATH
|
||||||
export USE_INSTALL=1
|
export USE_INSTALL=1
|
||||||
|
|
||||||
# Leader rotation disabled
|
if [[ -n $BUILDKITE && -z $testCmd ]]; then
|
||||||
_ ci/localnet-sanity.sh -b -i 128
|
genPipeline=true
|
||||||
|
echo "
|
||||||
|
steps:
|
||||||
|
"
|
||||||
|
fi
|
||||||
|
|
||||||
# Leader rotation disabled, restart all nodes periodically
|
build() {
|
||||||
_ ci/localnet-sanity.sh -b -i 128 -k 16
|
$genPipeline && return
|
||||||
|
ci/version-check-with-upgrade.sh stable
|
||||||
|
_ scripts/ulimit-n.sh
|
||||||
|
FEATURES=""
|
||||||
|
_ cargo build --all --features="$FEATURES"
|
||||||
|
}
|
||||||
|
|
||||||
# Leader rotation enabled
|
runTest() {
|
||||||
_ ci/localnet-sanity.sh -i 128
|
declare runTestName="$1"
|
||||||
|
declare runTestCmd="$2"
|
||||||
|
if $genPipeline; then
|
||||||
|
echo "
|
||||||
|
- command: \"$0 '$runTestCmd'\"
|
||||||
|
name: \"$runTestName\"
|
||||||
|
timeout_in_minutes: 30
|
||||||
|
"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
# Leader rotation enabled, restart all nodes periodically
|
if [[ -n $testCmd && "$testCmd" != "$runTestCmd" ]]; then
|
||||||
# TODO: Enable
|
echo Skipped "$runTestName"...
|
||||||
#_ ci/localnet-sanity.sh -i 128 -k 16
|
return
|
||||||
|
fi
|
||||||
|
#shellcheck disable=SC2068 # Don't want to double quote $runTestCmd
|
||||||
|
$runTestCmd
|
||||||
|
}
|
||||||
|
|
||||||
|
build
|
||||||
|
|
||||||
|
runTest "Leader rotation off" \
|
||||||
|
"ci/localnet-sanity.sh -b -i 128"
|
||||||
|
|
||||||
|
runTest "Leader rotation off, periodic node restart" \
|
||||||
|
"ci/localnet-sanity.sh -b -i 128 -k 16"
|
||||||
|
|
||||||
|
runTest "Leader rotation on" \
|
||||||
|
"ci/localnet-sanity.sh -i 128"
|
||||||
|
|
||||||
|
runTest "Leader rotation on, periodic node restart" \
|
||||||
|
"ci/localnet-sanity.sh -i 128 -k 16"
|
||||||
|
|
||||||
echo --- fin
|
|
||||||
|
|
Loading…
Reference in New Issue