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

Unified Diff: bin/cbuildbot.py

Issue 4969003: Update cbuildbot.py to upload prebuilts from preflight buildbot. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git@master
Patch Set: Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | prebuilt.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/cbuildbot.py
diff --git a/bin/cbuildbot.py b/bin/cbuildbot.py
index e723cd64396b9d2156b12bf04375d01429e2cd89..29b5294d724c642366f4f01ab9f50b6e5e8115c6 100755
--- a/bin/cbuildbot.py
+++ b/bin/cbuildbot.py
@@ -487,6 +487,23 @@ def _ResolveOverlays(buildroot, overlays):
return paths
+def _UploadPrebuilts(buildroot, board, overlay_config, master):
sosa 2010/11/16 23:48:06 Missing short docstring
davidjames 2010/11/17 00:15:43 Done.
+ cmd = ['%s/src/scripts/prebuilt.py' % buildroot, '--git-sync',
+ '-p', buildroot, '-b', board, '-V', 'preflight',
sosa 2010/11/16 23:48:06 Please use long options
davidjames 2010/11/17 00:15:43 Done.
+ '-k', 'PREFLIGHT_BINHOST']
+ if overlay_config == 'public':
+ cmd.extend(['-u', 'gs://chromeos-prebuilt'])
+ else:
+ assert overlay_config in ('private', 'both')
+ cmd.extend(['-u', 'chromeos-images:/var/www/prebuilt/',
sosa 2010/11/16 23:48:06 any reason we are not taking these as options and
davidjames 2010/11/17 00:15:43 Just discussed this over chat. We're trying to kee
+ '-H', 'http://chromeos-prebuilt'])
+
+ if master:
+ cmd.append('--sync-host')
+
+ RunCommand(cmd)
+
+
def main():
# Parse options
usage = "usage: %prog [options] cbuildbot_config"
@@ -567,6 +584,10 @@ def main():
archive_dir=options.buildnumber,
test_results_dir=test_results_dir)
+ if not options.debug:
+ _UploadPrebuilts(buildroot, buildconfig['board'], buildconfig['overlays'],
+ buildconfig['master'])
sosa 2010/11/16 23:48:06 Better to do this after the uprev i.e. if we can't
davidjames 2010/11/17 00:15:43 Done.
+
if buildconfig['uprev']:
# Don't push changes for developers.
if not options.debug:
« no previous file with comments | « no previous file | prebuilt.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698