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

Unified Diff: projects.py

Issue 7108020: Add automatic retry mechanism and LKGR support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/commit-queue
Patch Set: Created 9 years, 6 months 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 side-by-side diff with in-line comments
Download patch
Index: projects.py
diff --git a/projects.py b/projects.py
index 9719bfab2a3b41e86c19808abee21b78e57184c7..d254abffecb03a188867d9d8c8ec1e594b561564 100644
--- a/projects.py
+++ b/projects.py
@@ -6,6 +6,7 @@
import os
import re
import sys
+import urllib2
import find_depot_tools # pylint: disable=W0611
import checkout
@@ -53,6 +54,13 @@ def _get_escaped_committers(root_dir):
return [re.escape(i) for i in committer_list.get_committers(password)]
+def _chromium_lkgr():
+ try:
+ return int(
+ urllib2.urlopen('http://chromium-status.appspot.com/lkgr').read())
+ except (ValueError, IOError):
+ return None
+
def _gen_chromium(user, root_dir, rietveld_obj, no_try):
"""Generates a PendingManager commit queue for chrome/trunk/src."""
svn_creds = creds.Credentials(os.path.join(root_dir, '.svn_pwd'))
@@ -93,7 +101,8 @@ def _gen_chromium(user, root_dir, rietveld_obj, no_try):
user,
builders,
tests,
- ['--root', 'src']))
+ ['--root', 'src'],
+ _chromium_lkgr))
verifiers.append(tree_status.TreeStatusVerifier(
'http://chromium-status.appspot.com/status'))
« no previous file with comments | « PRESUBMIT.py ('k') | tests/try_server_test.py » ('j') | tests/try_server_test.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698