buildbot scripts: Increase number of retries for uploading

Delay up to 63 seconds when trying to upload a symbol file.  My default of
15 seconds before turned out to not be enough to cover at least one case
that davidjames@ found in ToT buildbots.

BUG=chromium-os:29963
TEST=Ran upload_symbols --testing

Change-Id: I82b038f8845c3f2aaba0ee95f40efd4b70e2ffb1
Reviewed-on: https://gerrit.chromium.org/gerrit/21016
Commit-Ready: Michael Krebs <mkrebs@chromium.org>
Tested-by: Michael Krebs <mkrebs@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
This commit is contained in:
Michael Krebs 2012-04-24 20:12:39 -07:00 committed by Gerrit
parent b90bf4aabf
commit a7056f1b07

View File

@ -33,8 +33,9 @@ DEFINE_boolean yes ${FLAGS_FALSE} "Answer yes to all prompts."
# Number of seconds to wait before retrying an upload. The delay will double
# for each subsequent retry of the same symbol file.
INITIAL_RETRY_DELAY=1
# Allow up to 5 attempts to upload a symbol file.
MAX_RETRIES=4
# Allow up to 7 attempts to upload a symbol file (total delay may be
# 1+2+4+8+16+32=63 seconds).
MAX_RETRIES=6
# Number of total errors, ${TOTAL_ERROR_COUNT}, before retries are no longer
# attempted. This is used to avoid lots of errors causing unreasonable delays.
MAX_TOTAL_ERRORS_FOR_RETRY=3 # don't bother retrying after 3 errors