From 2c9d288ca95fbfab8bb7f6480a53c639260979b2 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Wed, 1 Aug 2018 15:23:36 -0700 Subject: [PATCH] Add a CI metric data point upload timeout to prevent CI build stalls 5 seconds is somewhat arbitrary, seems like enough --- ci/metrics_write_datapoint.sh | 2 +- ci/testnet-deploy.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/metrics_write_datapoint.sh b/ci/metrics_write_datapoint.sh index d7fc3c58e..00bdb4beb 100755 --- a/ci/metrics_write_datapoint.sh +++ b/ci/metrics_write_datapoint.sh @@ -13,4 +13,4 @@ if [[ -z $INFLUX_DATABASE || -z $INFLUX_USERNAME || -z $INFLUX_PASSWORD ]]; then fi echo "https://metrics.solana.com:8086/write?db=${INFLUX_DATABASE}&u=${INFLUX_USERNAME}&p=${INFLUX_PASSWORD}" \ - | xargs curl -XPOST --data-binary "$point" + | xargs curl --max-time 5 -XPOST --data-binary "$point" diff --git a/ci/testnet-deploy.sh b/ci/testnet-deploy.sh index b2707cb63..1346434f8 100755 --- a/ci/testnet-deploy.sh +++ b/ci/testnet-deploy.sh @@ -211,7 +211,7 @@ client_start() { set -x; /snap/bin/solana.bench-tps $SOLANA_NET_URL $fullnode_count --loop -s 600 --sustained -t \$threadCount 2>&1 | tee /tmp/solana.log; \ echo 'https://metrics.solana.com:8086/write?db=${INFLUX_DATABASE}&u=${INFLUX_USERNAME}&p=${INFLUX_PASSWORD}' \ - | xargs curl -XPOST --data-binary 'testnet-deploy,name=$netName clientexit=1'; \ + | xargs curl --max-time 5 -XPOST --data-binary 'testnet-deploy,name=$netName clientexit=1'; \ echo Error: bench-tps should never exit | tee -a /tmp/solana.log; \ bash \ \"; \