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

Side by Side Diff: infra/bots/recipes/swarm_perf.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 unified diff | Download patch
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 # Recipe module for Skia Swarming perf. 6 # Recipe module for Skia Swarming perf.
7 7
8 8
9 DEPS = [ 9 DEPS = [
10 'build/file', 10 'build/file',
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 '--properties', 181 '--properties',
182 'gitHash', api.vars.got_revision, 182 'gitHash', api.vars.got_revision,
183 'build_number', api.vars.build_number, 183 'build_number', api.vars.build_number,
184 ] 184 ]
185 if api.vars.is_trybot: 185 if api.vars.is_trybot:
186 properties.extend([ 186 properties.extend([
187 'issue', api.vars.issue, 187 'issue', api.vars.issue,
188 'patchset', api.vars.patchset, 188 'patchset', api.vars.patchset,
189 'patch_storage', api.vars.patch_storage, 189 'patch_storage', api.vars.patch_storage,
190 ]) 190 ])
191 if api.vars.no_buildbot:
192 properties.extend(['no_buildbot', 'True'])
193 properties.extend(['swarming_bot_id', api.vars.swarming_bot_id])
194 properties.extend(['swarming_task_id', api.vars.swarming_task_id])
191 195
192 target = 'nanobench' 196 target = 'nanobench'
193 args = [ 197 args = [
194 target, 198 target,
195 '--undefok', # This helps branches that may not know new flags. 199 '--undefok', # This helps branches that may not know new flags.
196 '-i', api.flavor.device_dirs.resource_dir, 200 '-i', api.flavor.device_dirs.resource_dir,
197 '--skps', api.flavor.device_dirs.skp_dir, 201 '--skps', api.flavor.device_dirs.skp_dir,
198 '--images', api.flavor.device_path_join( 202 '--images', api.flavor.device_path_join(
199 api.flavor.device_dirs.images_dir, 'nanobench'), 203 api.flavor.device_dirs.images_dir, 'nanobench'),
200 ] 204 ]
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 buildername='Perf-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-' + 332 buildername='Perf-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-' +
329 'Valgrind-Trybot', 333 'Valgrind-Trybot',
330 mastername='client.skia', 334 mastername='client.skia',
331 slavename='skiabot-linux-swarm-000', 335 slavename='skiabot-linux-swarm-000',
332 buildnumber=5, 336 buildnumber=5,
333 path_config='kitchen', 337 path_config='kitchen',
334 swarm_out_dir='[SWARM_OUT_DIR]', 338 swarm_out_dir='[SWARM_OUT_DIR]',
335 revision='abc123', 339 revision='abc123',
336 **gerrit_kwargs) 340 **gerrit_kwargs)
337 ) 341 )
342
343 yield (
344 api.test('nobuildbot') +
345 api.properties(buildername=builder,
346 mastername='client.skia',
347 slavename='skiabot-linux-swarm-000',
348 buildnumber=5,
349 revision='abc123',
350 path_config='kitchen',
351 nobuildbot='True',
352 swarm_out_dir='[SWARM_OUT_DIR]',
353 **gerrit_kwargs) +
354 api.path.exists(
355 api.path['slave_build'].join('skia'),
356 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
357 'skimage', 'VERSION'),
358 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
359 'skp', 'VERSION'),
360 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
361 'svg', 'VERSION'),
362 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
363 ) +
364 api.platform('win', 64) +
365 api.step_data('get swarming bot id',
366 stdout=api.raw_io.output('skia-bot-123')) +
367 api.step_data('get swarming task id', stdout=api.raw_io.output('123456'))
368 )
369
OLDNEW
« no previous file with comments | « infra/bots/recipe_modules/vars/api.py ('k') | infra/bots/recipes/swarm_perf.expected/nobuildbot.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698