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

Unified Diff: scripts/master/try_job_base_bb8.py

Issue 8847005: Add decorations to bot names for modifying parts of try sets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build/
Patch Set: '' Created 9 years 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
« no previous file with comments | « scripts/master/try_job_base_bb7.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/master/try_job_base_bb8.py
===================================================================
--- scripts/master/try_job_base_bb8.py (revision 114099)
+++ scripts/master/try_job_base_bb8.py (working copy)
@@ -9,7 +9,6 @@
from buildbot.schedulers.trysched import BadJobfile # pylint: disable=W0611
from twisted.internet import defer
-
class TryJobBaseMixIn:
_last_lkgr = None
@@ -31,12 +30,18 @@
repository=parsed_job['repository'] or '',
changeids=changeids)
def create_buildset(ssid):
- log.msg('Creating try job %s' % ssid)
- return self.addBuildsetForSourceStamp(ssid=ssid,
- reason=parsed_job['name'],
- external_idstring=parsed_job['name'],
- builderNames=parsed_job['bot'],
- properties=self.get_props(parsed_job))
+ log.msg('Creating try job(s) %s' % ssid)
+ result = None
+ for build in parsed_job['bot']:
+ bot = build.split(':', 1)[0]
+ result = self.addBuildsetForSourceStamp(ssid=ssid,
+ reason=parsed_job['name'],
+ external_idstring=parsed_job['name'],
+ builderNames=[bot],
+ properties=self.parse_decoration(
+ self.get_props(parsed_job), ''.join(build.split(':', 1)[1:])))
+
+ return result
d.addCallback(create_buildset)
d.addErrback(log.err, "Failed to queue a try job!")
return d
« no previous file with comments | « scripts/master/try_job_base_bb7.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698