Bug 1364650 - Retry on ChunkedEncodingError. r=gps, a=NPOTB
authorRok Garbas <rgarbas@mozilla.com>
Tue, 18 Jul 2017 23:02:29 +0100
changeset 412006 46395cf00273964063bad976590cdfb509449619
parent 412005 af63b036dc7f8be527686af8245a0ba8262b3bd9
child 412007 e5e3e626cdaf6b52570b242fe38c1d7f03079a22
push id7523
push userryanvm@gmail.com
push dateWed, 19 Jul 2017 23:02:11 +0000
treeherdermozilla-beta@30e0585ef763 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgps, NPOTB
bugs1364650
milestone55.0
Bug 1364650 - Retry on ChunkedEncodingError. r=gps, a=NPOTB MozReview-Commit-ID: 5F9ZwOvFG2V
python/mozbuild/mozbuild/mach_commands.py
--- a/python/mozbuild/mozbuild/mach_commands.py
+++ b/python/mozbuild/mozbuild/mach_commands.py
@@ -1786,16 +1786,17 @@ class PackageFrontend(MachCommandBase):
                      'Downloading {name}')
             valid = False
             # sleeptime is 60 per retry.py, used by tooltool_wrapper.sh
             for attempt, _ in enumerate(redo.retrier(attempts=retry+1,
                                                      sleeptime=60)):
                 try:
                     record.fetch_with(cache)
                 except (requests.exceptions.HTTPError,
+                        requests.exceptions.ChunkedEncodingError,
                         requests.exceptions.ConnectionError) as e:
 
                     if isinstance(e, requests.exceptions.ConnectionError):
                         should_retry = True
                     else:
                         # The relengapi proxy likes to return error 400 bad request
                         # which seems improbably to be due to our (simple) GET
                         # being borked.