* remove trailing whitespace in ci/audit.sh * code review fixups * rename GOSSIP_PORT_RANGE => SOLANA_PORT_RANGE * remove out-of-date TODO in localnet-sanity.sh * remove features=test and code that was using it (localhost prohibitions in crdt) added TODO in crdt.rs, maybe we should boot localhost in production networks? * boot tvu_window from NodeInfo: instead, send repair requests from the repair socket (to gossip on peer) and answer repair requests via the sockaddr from the repair request * remove various unused pub functions * banish SocketAddr parse().unwrap() to a macro that can also accept simpler stuff
46 lines
1.3 KiB
Bash
Executable File
46 lines
1.3 KiB
Bash
Executable File
#!/bin/bash -e
|
|
|
|
here=$(dirname "$0")
|
|
cd "$here"/..
|
|
|
|
if ! ci/version-check.sh stable; then
|
|
# This job doesn't run within a container, try once to upgrade tooling on a
|
|
# version check failure
|
|
rustup install stable
|
|
ci/version-check.sh stable
|
|
fi
|
|
export RUST_BACKTRACE=1
|
|
|
|
./fetch-perf-libs.sh
|
|
export LD_LIBRARY_PATH=$PWD/target/perf-libs:$LD_LIBRARY_PATH
|
|
|
|
export RUST_LOG=multinode=info
|
|
|
|
if [[ $(ulimit -n) -lt 65000 ]]; then
|
|
echo 'Error: nofiles too small, run "ulimit -n 65000" to continue'
|
|
exit 1
|
|
fi
|
|
|
|
if [[ $(sysctl -n net.core.rmem_default) -lt 1610612736 ]]; then
|
|
echo 'Error: rmem_default too small, run "sudo sysctl -w net.core.rmem_default=1610612736" to continue'
|
|
exit 1
|
|
fi
|
|
|
|
if [[ $(sysctl -n net.core.rmem_max) -lt 1610612736 ]]; then
|
|
echo 'Error: rmem_max too small, run "sudo sysctl -w net.core.rmem_max=1610612736" to continue'
|
|
exit 1
|
|
fi
|
|
|
|
if [[ $(sysctl -n net.core.wmem_default) -lt 1610612736 ]]; then
|
|
echo 'Error: rmem_default too small, run "sudo sysctl -w net.core.wmem_default=1610612736" to continue'
|
|
exit 1
|
|
fi
|
|
|
|
if [[ $(sysctl -n net.core.wmem_max) -lt 1610612736 ]]; then
|
|
echo 'Error: rmem_max too small, run "sudo sysctl -w net.core.wmem_max=1610612736" to continue'
|
|
exit 1
|
|
fi
|
|
|
|
set -x
|
|
exec cargo test --release --features=erasure test_multi_node_dynamic_network -- --ignored
|