From d97419369a542ce16c8b32abd98c93277f716b19 Mon Sep 17 00:00:00 2001 From: Steven Danna Date: Thu, 22 Apr 2021 16:04:34 +0100 Subject: [PATCH] build: retry register.cockrachdb.com requests Retry transient problems getting a developer license. We may want to avoid the retries here as a forcing function to make that service more reliable, but given that we might see timeouts from non-service related local networking problems, I'd prefer to not fail the test run because of a single curl failure. Release note: None --- build/teamcity-local-roachtest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/teamcity-local-roachtest.sh b/build/teamcity-local-roachtest.sh index 33f0e23885f2..6cd0ea88a58a 100755 --- a/build/teamcity-local-roachtest.sh +++ b/build/teamcity-local-roachtest.sh @@ -6,7 +6,7 @@ source "$(dirname "${0}")/teamcity-support.sh" tc_start_block "Prepare environment" # Grab a testing license good for one hour. -COCKROACH_DEV_LICENSE=$(curl -f "https://register.cockroachdb.com/api/prodtest") +COCKROACH_DEV_LICENSE=$(curl --retry 3 --retry-connrefused -f "https://register.cockroachdb.com/api/prodtest") run mkdir -p artifacts maybe_ccache tc_end_block "Prepare environment"