passes through --allow-private-addr to validators in system perf tests (#18876)

This commit is contained in:
behzad nouri
2021-07-29 19:04:45 +00:00
committed by GitHub
parent 1cef6fd4b4
commit 81026f9ea5
7 changed files with 33 additions and 12 deletions

View File

@@ -15,5 +15,6 @@ steps:
USE_PUBLIC_IP_ADDRESSES: "false"
ADDITIONAL_FLAGS: "--dedicated"
TEST_TYPE: "fixed_duration"
ALLOW_PRIVATE_ADDR: "true"
agents:
- "queue=gce-deploy"

View File

@@ -131,6 +131,11 @@ function launch_testnet() {
maybeAsyncNodeInit="--async-node-init"
fi
declare maybeAllowPrivateAddr
if [[ "$ALLOW_PRIVATE_ADDR" = "true" ]]; then
maybeAllowPrivateAddr="--allow-private-addr"
fi
declare maybeExtraPrimordialStakes
if [[ -n "$EXTRA_PRIMORDIAL_STAKES" ]]; then
maybeExtraPrimordialStakes="--extra-primordial-stakes $EXTRA_PRIMORDIAL_STAKES"
@@ -140,7 +145,8 @@ function launch_testnet() {
# shellcheck disable=SC2086
"${REPO_ROOT}"/net/net.sh start $version_args \
-c idle=$NUMBER_OF_CLIENT_NODES $maybeStartAllowBootFailures \
--gpu-mode $startGpuMode $maybeWarpSlot $maybeAsyncNodeInit $maybeExtraPrimordialStakes
--gpu-mode $startGpuMode $maybeWarpSlot $maybeAsyncNodeInit \
$maybeExtraPrimordialStakes $maybeAllowPrivateAddr
if [[ -n "$WAIT_FOR_EQUAL_STAKE" ]]; then
wait_for_equal_stake