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

Unified Diff: scripts/slave/recipes/cros/cbuildbot.py

Issue 2325013002: Add BuildBucket manifest scheduling support. (Closed)
Patch Set: Rebarse Created 4 years, 3 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: scripts/slave/recipes/cros/cbuildbot.py
diff --git a/scripts/slave/recipes/cros/cbuildbot.py b/scripts/slave/recipes/cros/cbuildbot.py
index 04cd9cf17b1d3c6e48bd8d65470475c39358519c..f7f9bb50111a7e9d0ed2b4a1fbd8c686dcefef1a 100644
--- a/scripts/slave/recipes/cros/cbuildbot.py
+++ b/scripts/slave/recipes/cros/cbuildbot.py
@@ -45,6 +45,8 @@ def RunSteps(api):
def GenTests(api):
+ import json
+
#
# master.chromiumos.chromium
#
@@ -126,6 +128,33 @@ def GenTests(api):
)
)
+ # Test a ChromiumOS Paladin build that was configured using BuildBucket
+ # instead of a manifest.
+ yield (
+ api.test('chromiumos_paladin_buildbucket')
+ + api.properties(
+ mastername='chromiumos',
+ buildername='Test',
+ slavename='test',
+ buildnumber='12345',
+ cbb_config='auron-paladin',
+ cbb_branch='master',
+ cbb_master_build_id='24601',
+ repository='https://chromium.googlesource.com/chromiumos/'
+ 'manifest-versions',
+ revision=api.gitiles.make_hash('test'),
+ buildbucket=json.dumps({
+ 'build': {
+ 'id': '1337',
+ },
+ }),
+ )
+ + api.chromite.add_chromite_config(
+ 'auron-paladin',
+ build_type='paladin',
+ )
+ )
+
#
# [Coverage]
#

Powered by Google App Engine
This is Rietveld 408576698