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

Side by Side Diff: infra/bots/recipes/swarm_trigger.py

Issue 2343903002: Run SVGs through nanobench on all Perf bots (Closed)
Patch Set: Add test code 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 unified diff | Download patch
« no previous file with comments | « infra/bots/recipes/swarm_perf.expected/recipe_with_gerrit_patch.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 trigger. 6 # Recipe module for Skia Swarming trigger.
7 7
8 8
9 import os 9 import os
10 import json 10 import json
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 res = api.step('got_revision', cmd=cmd) 259 res = api.step('got_revision', cmd=cmd)
260 res.presentation.properties['got_revision'] = got_revision 260 res.presentation.properties['got_revision'] = got_revision
261 api.path['checkout'] = checkout_path 261 api.path['checkout'] = checkout_path
262 262
263 # Write a fake .gclient file if none exists. This is required by .isolates. 263 # Write a fake .gclient file if none exists. This is required by .isolates.
264 dot_gclient = api.path['slave_build'].join('.gclient') 264 dot_gclient = api.path['slave_build'].join('.gclient')
265 if not api.path.exists(dot_gclient): 265 if not api.path.exists(dot_gclient):
266 api.run.writefile(dot_gclient, '') 266 api.run.writefile(dot_gclient, '')
267 267
268 fix_filemodes(api, api.path['checkout']) 268 fix_filemodes(api, api.path['checkout'])
269 return got_revision 269 return 'd8c2476a8b1e1e1a1771b17e8dd4db8645914f8c'
270 # return got_revision
rmistry 2016/09/15 17:54:15 This is just for testing purposes.
270 271
271 272
272 def housekeeper_swarm(api, builder_cfg, got_revision, infrabots_dir, 273 def housekeeper_swarm(api, builder_cfg, got_revision, infrabots_dir,
273 extra_isolate_hashes): 274 extra_isolate_hashes):
274 task = trigger_task( 275 task = trigger_task(
275 api, 276 api,
276 'housekeeper', 277 'housekeeper',
277 api.properties['buildername'], 278 api.properties['buildername'],
278 api.properties['mastername'], 279 api.properties['mastername'],
279 api.properties['slavename'], 280 api.properties['slavename'],
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 mastername='client.skia', 818 mastername='client.skia',
818 slavename='skiabot-linux-swarm-000', 819 slavename='skiabot-linux-swarm-000',
819 buildnumber=5, 820 buildnumber=5,
820 path_config='kitchen', 821 path_config='kitchen',
821 revision='abc123', 822 revision='abc123',
822 **gerrit_kwargs) + 823 **gerrit_kwargs) +
823 api.step_data( 824 api.step_data(
824 'upload new .isolated file for test_skia', 825 'upload new .isolated file for test_skia',
825 stdout=api.raw_io.output('def456 XYZ.isolated')) 826 stdout=api.raw_io.output('def456 XYZ.isolated'))
826 ) 827 )
OLDNEW
« no previous file with comments | « infra/bots/recipes/swarm_perf.expected/recipe_with_gerrit_patch.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698