Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Side by Side Diff: commit-queue/verification/try_job_on_rietveld.py

Issue 64983002: CQ: catch IOError thrown on socket timeouts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # coding=utf8 1 # coding=utf8
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 """Sends patches to the Try server and reads back results. 5 """Sends patches to the Try server and reads back results.
6 6
7 - RietveldTryJobs contains RietveldTryJob, one per try job on a builder. 7 - RietveldTryJobs contains RietveldTryJob, one per try job on a builder.
8 - TryRunnerRietveld uses Rietveld to signal and poll job results. 8 - TryRunnerRietveld uses Rietveld to signal and poll job results.
9 """ 9 """
10 10
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 status, 740 status,
741 self.context.checkout, 741 self.context.checkout,
742 now) 742 now)
743 except urllib2.HTTPError as e: 743 except urllib2.HTTPError as e:
744 if e.code in (500, 502, 503): 744 if e.code in (500, 502, 503):
745 # Temporary AppEngine hiccup. Just log it and return failure. 745 # Temporary AppEngine hiccup. Just log it and return failure.
746 logging.warning(str(e)) 746 logging.warning(str(e))
747 return False 747 return False
748 else: 748 else:
749 raise 749 raise
750 except socket.error as e: 750 except socket.error as e:
Vadim Sh. 2013/11/08 19:33:57 When making HTTPS requests with client-side timeou
751 # Temporary AppEngine hiccup. Just log it and return failure. 751 # Temporary AppEngine hiccup. Just log it and return failure.
752 if e.errno == errno.ECONNRESET: 752 if e.errno == errno.ECONNRESET:
Vadim Sh. 2013/11/08 19:33:57 It'll only catch timeouts while opening a connecti
753 logging.warning(str(e)) 753 logging.warning(str(e))
754 return False 754 return False
755 else: 755 else:
756 raise 756 raise
757 except IOError as e:
758 # Temporary AppEngine hiccup. Just log it and return failure.
759 if e.errno == 'socket error':
Vadim Sh. 2013/11/08 19:33:57 errno is a string?.. How can this happen?
Paweł Hajdan Jr. 2013/11/08 20:14:19 I believe it can. All of this is based on what I'v
760 logging.warning(str(e))
761 return False
762 raise
757 if handle: 763 if handle:
758 for updated_key in keys: 764 for updated_key in keys:
759 job = jobs.try_jobs[updated_key] 765 job = jobs.try_jobs[updated_key]
760 self._update_dashboard(pending, job, status) 766 self._update_dashboard(pending, job, status)
761 jobs.signal_as_failed_if_needed(job, self._build_status_url(job), now) 767 jobs.signal_as_failed_if_needed(job, self._build_status_url(job), now)
762 768
763 return True 769 return True
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698