Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion net/net.sh
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ build() {

buildVariant=
if $debugBuild; then
buildVariant=debug
buildVariant=--debug
fi

$MAYBE_DOCKER bash -c "
Expand Down Expand Up @@ -862,6 +862,10 @@ while getopts "h?T:t:o:f:rc:Fn:i:d" opt "${shortArgs[@]}"; do
releaseChannel=$OPTARG
deployMethod=tar
;;
local)
# just pass-through to use default values for $deployMethod and $doBuild
true
;;
*)
usage "Invalid release channel: $OPTARG"
;;
Expand Down
8 changes: 7 additions & 1 deletion net/remote/remote-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,12 @@ EOF
--entrypoint "$entrypointIp:8001"
--gossip-port 8001
--rpc-port 8899
--expected-shred-version "$(cat config/shred-version)"
)
if [[ -f config/shred-version && -s config/shred-version ]]; then
args+=(
--expected-shred-version "$(cat config/shred-version)"
)
fi
if [[ $nodeType = blockstreamer ]]; then
args+=(
--blockstream /tmp/solana-blockstream.sock
Expand Down Expand Up @@ -374,6 +378,7 @@ cat >> ~/solana/on-reboot <<EOF
oom_score_adj "\$pid" 1000
disown
EOF
grep -H ^ ~/solana/on-reboot
~/solana/on-reboot
waitForNodeToInit

Expand Down Expand Up @@ -423,6 +428,7 @@ cat >> ~/solana/on-reboot <<EOF
oom_score_adj "\$pid" 1000
disown
EOF
grep -H ^ ~/solana/on-reboot
~/solana/on-reboot
sleep 1
;;
Expand Down
8 changes: 8 additions & 0 deletions system-test/automation_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ function execution_step {

function collect_logs {
execution_step "Collect logs from remote nodes"

ls -lR "${REPO_ROOT}"/net/log/
for logfile in "${REPO_ROOT}"/net/log/*validator*; do
(
upload-ci-artifact "$logfile"
)
done

rm -rf "${REPO_ROOT}"/net/log
"${REPO_ROOT}"/net/net.sh logs
for logfile in "${REPO_ROOT}"/net/log/*; do
Expand Down
13 changes: 12 additions & 1 deletion system-test/testnet-automation.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/usr/bin/env bash
set -e

NDEBUG="${NDEBUG-1}"
export NDEBUG

# shellcheck disable=SC1090
# shellcheck disable=SC1091
source "$(dirname "$0")"/automation_utils.sh
Expand Down Expand Up @@ -121,9 +124,17 @@ function launch_testnet() {

execution_step "Starting bootstrap node and ${NUMBER_OF_VALIDATOR_NODES} validator nodes"
if [[ -n $CHANNEL ]]; then
if [[ -z $NDEBUG ]]; then
maybeDebug=--debug
fi
# Our build machne is on Azure which supports AVX512 but colos don't support AVX512.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

err, machine.

# So, turn off simd at all as a work around to correctly cross-compile
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to create a tiny build-related PR against solana-reed-solomon to remove this work-around.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if [[ -n $CI && $CLOUD_PROVIDER == "colo" && $CHANNEL == "local" ]]; then
sed -i 's/"simd-accel"//g' "${REPO_ROOT}"/ledger/Cargo.toml
fi
# shellcheck disable=SC2068
# shellcheck disable=SC2086
"${REPO_ROOT}"/net/net.sh start -t "$CHANNEL" \
"${REPO_ROOT}"/net/net.sh start -t "$CHANNEL" $maybeDebug \
-c idle=$NUMBER_OF_CLIENT_NODES $maybeStartAllowBootFailures \
--gpu-mode $startGpuMode
else
Expand Down