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

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 IOError as e:
751 # Temporary AppEngine hiccup. Just log it and return failure.
752 if e.errno == 'socket error':
753 logging.warning(str(e))
754 return False
755 raise
750 except socket.error as e: 756 except socket.error as e:
M-A Ruel 2013/11/07 19:36:05 I think socket.error inherits from IOError, so thi
Paweł Hajdan Jr. 2013/11/07 21:02:16 In my tests it didn't behave that way. I think som
751 # Temporary AppEngine hiccup. Just log it and return failure. 757 # Temporary AppEngine hiccup. Just log it and return failure.
752 if e.errno == errno.ECONNRESET: 758 if e.errno == errno.ECONNRESET:
753 logging.warning(str(e)) 759 logging.warning(str(e))
754 return False 760 return False
755 else: 761 else:
756 raise 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