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

Unified Diff: infra/bots/recipes/swarm_test.py

Issue 2424793005: Add key params for buildbotless bots in DM/nanobench (Closed)
Patch Set: rebase Created 4 years, 2 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: infra/bots/recipes/swarm_test.py
diff --git a/infra/bots/recipes/swarm_test.py b/infra/bots/recipes/swarm_test.py
index 480d78d30642aeaaf84d5486d043ec26b5931625..04343dc4a4d2a1521aca7cf34714ba07408e0390 100644
--- a/infra/bots/recipes/swarm_test.py
+++ b/infra/bots/recipes/swarm_test.py
@@ -473,6 +473,10 @@ def test_steps(api):
'patchset', api.vars.patchset,
'patch_storage', api.vars.patch_storage,
])
+ if api.vars.no_buildbot:
+ properties.extend(['no_buildbot', 'True'])
+ properties.extend(['swarming_bot_id', api.vars.swarming_bot_id])
+ properties.extend(['swarming_task_id', api.vars.swarming_task_id])
args = [
'dm',
@@ -686,3 +690,21 @@ def GenTests(api):
revision='abc123',
**gerrit_kwargs)
)
+
+ yield (
+ api.test('nobuildbot') +
+ api.properties(
+ buildername=builder,
+ mastername='client.skia',
+ slavename='skiabot-linux-swarm-000',
+ buildnumber=5,
+ path_config='kitchen',
+ swarm_out_dir='[SWARM_OUT_DIR]',
+ revision='abc123',
+ nobuildbot='True',
+ **gerrit_kwargs) +
+ api.step_data('get swarming bot id',
+ stdout=api.raw_io.output('skia-bot-123')) +
+ api.step_data('get swarming task id', stdout=api.raw_io.output('123456'))
+ )
+
« no previous file with comments | « infra/bots/recipes/swarm_perf.expected/nobuildbot.json ('k') | infra/bots/recipes/swarm_test.expected/nobuildbot.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698