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 json | 9 import json |
10 | 10 |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 | 190 |
191 | 191 |
192 def checkout_steps(api): | 192 def checkout_steps(api): |
193 """Run the steps to obtain a checkout of Skia.""" | 193 """Run the steps to obtain a checkout of Skia.""" |
194 gclient_cfg = api.gclient.make_config(CACHE_DIR=None) | 194 gclient_cfg = api.gclient.make_config(CACHE_DIR=None) |
195 skia = gclient_cfg.solutions.add() | 195 skia = gclient_cfg.solutions.add() |
196 skia.name = 'skia' | 196 skia.name = 'skia' |
197 skia.managed = False | 197 skia.managed = False |
198 skia.url = 'https://skia.googlesource.com/skia.git' | 198 skia.url = 'https://skia.googlesource.com/skia.git' |
199 skia.revision = api.properties.get('revision') or 'origin/master' | 199 skia.revision = api.properties.get('revision') or 'origin/master' |
200 api.skia.update_repo(skia) | 200 api.skia.update_repo(api.path['slave_build'], skia) |
201 | 201 |
202 # Run 'gclient sync'. | 202 # Run 'gclient sync'. |
203 gclient_cfg.got_revision_mapping['skia'] = 'got_revision' | 203 gclient_cfg.got_revision_mapping['skia'] = 'got_revision' |
204 gclient_cfg.target_os.add('llvm') | 204 gclient_cfg.target_os.add('llvm') |
205 update_step = api.gclient.checkout(gclient_config=gclient_cfg) | 205 update_step = api.gclient.checkout(gclient_config=gclient_cfg) |
206 | 206 |
207 got_revision = update_step.presentation.properties['got_revision'] | 207 got_revision = update_step.presentation.properties['got_revision'] |
208 api.tryserver.maybe_apply_issue() | 208 api.tryserver.maybe_apply_issue() |
209 return got_revision | 209 return got_revision |
210 | 210 |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 builder = 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Swarming' | 543 builder = 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Swarming' |
544 master = 'client.skia' | 544 master = 'client.skia' |
545 slave = 'skiabot-linux-test-000' | 545 slave = 'skiabot-linux-test-000' |
546 test = test_for_bot(api, builder, master, slave, 'No_downloaded_SKP_VERSION') | 546 test = test_for_bot(api, builder, master, slave, 'No_downloaded_SKP_VERSION') |
547 test += api.step_data('Get downloaded SKP_VERSION', retcode=1) | 547 test += api.step_data('Get downloaded SKP_VERSION', retcode=1) |
548 test += api.path.exists( | 548 test += api.path.exists( |
549 api.path['slave_build'].join('skia'), | 549 api.path['slave_build'].join('skia'), |
550 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') | 550 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
551 ) | 551 ) |
552 yield test | 552 yield test |
OLD | NEW |