Skip to content

Commit 65c3a32

Browse files
authored
Bug 2036453 - Lengthen timeout for symbol uploads (#7394)
Backporting https://phabricator.services.mozilla.com/D299371 so that it doesn't get overridden by the next vendor.
1 parent 7bdf35b commit 65c3a32

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

automation/symbols-generation/upload_symbols.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def upload_symbols(zip_file, token_file):
3535
print("'faketoken` detected, not pushing anything", file=sys.stdout)
3636
sys.exit(0)
3737

38-
for i, _ in enumerate(redo.retrier(attempts=MAX_RETRIES), start=1):
38+
for i, _ in enumerate(redo.retrier(attempts=MAX_RETRIES, sleeptime=60, sleepscale=1), start=1):
3939
print("Attempt %d of %d..." % (i, MAX_RETRIES))
4040
try:
4141
if zip_file.startswith("http"):
@@ -47,9 +47,8 @@ def upload_symbols(zip_file, token_file):
4747
headers={"Auth-Token": auth_token},
4848
allow_redirects=False,
4949
# Allow a longer read timeout because uploading by URL means the server
50-
# has to fetch the entire zip file, which can take a while. The load balancer
51-
# in front of symbols.mozilla.org has a 300 second timeout, so we'll use that.
52-
timeout=(10, 300),
50+
# has to fetch the entire zip file, which can take a while.
51+
timeout=(300, 600),
5352
**zip_arg,
5453
)
5554
# 500 is likely to be a transient failure.

0 commit comments

Comments
 (0)