Bug 1381770 - Enable multiple download retries in tooltool-download.sh. r?mshal draft
authorMike Hommey <mh+mozilla@glandium.org>
Tue, 18 Jul 2017 14:51:04 +0900
changeset 610375 ba2de15b1dd624f2e8863be5cd4642af2546840a
parent 610374 4a8aff8f568285150b01dec5af54a93c7ea86b61
child 610376 8b3e3c753332b3e624374f52ca5845a5c3d037ce
push id68887
push userbmo:mh+mozilla@glandium.org
push dateTue, 18 Jul 2017 09:07:47 +0000
reviewersmshal
bugs1381770
milestone56.0a1
Bug 1381770 - Enable multiple download retries in tooltool-download.sh. r?mshal The scripts that use tooltool-download.sh don't run regularly, but when they do, they might hit some download problems (the relengapi proxy tends to be rather unreliable for some reason), and in that case, it would be better to retry a few times, like other job types, rather than fail directly.
taskcluster/scripts/misc/tooltool-download.sh
--- a/taskcluster/scripts/misc/tooltool-download.sh
+++ b/taskcluster/scripts/misc/tooltool-download.sh
@@ -1,10 +1,10 @@
 # Fetch a tooltool manifest.
 
 cd $WORKSPACE/build/src
 
 : TOOLTOOL_CACHE                ${TOOLTOOL_CACHE:=/home/worker/tooltool-cache}
 export TOOLTOOL_CACHE
 
-./mach artifact toolchain -v --tooltool-url=http://relengapi/tooltool/ --tooltool-manifest "${TOOLTOOL_MANIFEST}"${TOOLTOOL_CACHE:+ --cache-dir ${TOOLTOOL_CACHE}}
+./mach artifact toolchain -v --tooltool-url=http://relengapi/tooltool/ --tooltool-manifest "${TOOLTOOL_MANIFEST}"${TOOLTOOL_CACHE:+ --cache-dir ${TOOLTOOL_CACHE}} --retry 5
 
 cd $OLDPWD