Add a CI metric data point upload timeout to prevent CI build stalls

5 seconds is somewhat arbitrary, seems like enough
This commit is contained in:
Michael Vines 2018-08-01 15:23:36 -07:00
parent bb0aabae75
commit 2c9d288ca9
2 changed files with 2 additions and 2 deletions

View File

@ -13,4 +13,4 @@ if [[ -z $INFLUX_DATABASE || -z $INFLUX_USERNAME || -z $INFLUX_PASSWORD ]]; then
fi fi
echo "https://metrics.solana.com:8086/write?db=${INFLUX_DATABASE}&u=${INFLUX_USERNAME}&p=${INFLUX_PASSWORD}" \ 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"

View File

@ -211,7 +211,7 @@ client_start() {
set -x; set -x;
/snap/bin/solana.bench-tps $SOLANA_NET_URL $fullnode_count --loop -s 600 --sustained -t \$threadCount 2>&1 | tee /tmp/solana.log; \ /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}' \ 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; \ echo Error: bench-tps should never exit | tee -a /tmp/solana.log; \
bash \ bash \
\"; \ \"; \