Bug 1381770 - Enable multiple download retries in tooltool-download.sh. r=mshal
authorMike Hommey <mh+mozilla@glandium.org>
Tue, 18 Jul 2017 14:51:04 +0900
changeset 418472 688c2808b32cb967f0493625cac162094b044a6b
parent 418471 5dbf26e7d92dff72f58a6cc8863d6f2dd8ba22de
child 418473 ba2a0e45421b97a2111458a4a79719b52ad17124
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmshal
bugs1381770
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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