Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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 ) |
| OLD | NEW |