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

Side by Side Diff: scripts/master/goodrevisions.py

Issue 744913002: Restore order to the universe. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 6 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
« no previous file with comments | « scripts/master/gatekeeper.py ('k') | scripts/slave/gatekeeper_ng.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 5
6 """A StatusReceiver module to store good revision numbers on a specific server. 6 """A StatusReceiver module to store good revision numbers on a specific server.
7 7
8 The GoodRevisions class can be given a dictionary of builders to a set 8 The GoodRevisions class can be given a dictionary of builders to a set
9 of critical steps to validate before storing the revision number. 9 of critical steps to validate before storing the revision number.
10 """ 10 """
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 # information for a revision that is lower than the last known good 57 # information for a revision that is lower than the last known good
58 # revision described below. 58 # revision described below.
59 self.failed_revisions = [] 59 self.failed_revisions = []
60 60
61 # To identify revisions lower than this one as not interesting. 61 # To identify revisions lower than this one as not interesting.
62 self.last_known_good_revision = 0 62 self.last_known_good_revision = 0
63 63
64 # The status object we must subscribe to. 64 # The status object we must subscribe to.
65 self.status = None 65 self.status = None
66 self.password = get_password.Password( 66 self.password = get_password.Password(
67 '.chromium_status_password').GetPassword() 67 '.status_password').GetPassword()
68 68
69 def setServiceParent(self, parent): 69 def setServiceParent(self, parent):
70 base.StatusReceiverMultiService.setServiceParent(self, parent) 70 base.StatusReceiverMultiService.setServiceParent(self, parent)
71 self.setup() 71 self.setup()
72 72
73 def setup(self): 73 def setup(self):
74 # pylint: disable=E1101 74 # pylint: disable=E1101
75 self.status = self.parent.getStatus() 75 self.status = self.parent.getStatus()
76 self.status.subscribe(self) 76 self.status.subscribe(self)
77 77
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 params = { 220 params = {
221 'revision': revision, 221 'revision': revision,
222 'success': success, 222 'success': success,
223 'password': self.password, 223 'password': self.password,
224 } 224 }
225 if steps_text: 225 if steps_text:
226 params['steps'] = ", ".join(steps_text) 226 params['steps'] = ", ".join(steps_text)
227 log.msg('Sending this lkgr info: %s' % str(params)) 227 log.msg('Sending this lkgr info: %s' % str(params))
228 request = urllib.urlopen(self.store_revisions_url, urllib.urlencode(params)) 228 request = urllib.urlopen(self.store_revisions_url, urllib.urlencode(params))
229 request.close() 229 request.close()
OLDNEW
« no previous file with comments | « scripts/master/gatekeeper.py ('k') | scripts/slave/gatekeeper_ng.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698