| 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 perf. | 6 # Recipe module for Skia Swarming perf. |
| 7 | 7 |
| 8 | 8 |
| 9 DEPS = [ | 9 DEPS = [ |
| 10 'build/file', | 10 'build/file', |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 # Run nanobench. | 166 # Run nanobench. |
| 167 properties = [ | 167 properties = [ |
| 168 '--properties', | 168 '--properties', |
| 169 'gitHash', api.vars.got_revision, | 169 'gitHash', api.vars.got_revision, |
| 170 'build_number', api.vars.build_number, | 170 'build_number', api.vars.build_number, |
| 171 ] | 171 ] |
| 172 if api.vars.is_trybot: | 172 if api.vars.is_trybot: |
| 173 properties.extend([ | 173 properties.extend([ |
| 174 'issue', api.vars.issue, | 174 'issue', api.vars.issue, |
| 175 'patchset', api.vars.patchset, | 175 'patchset', api.vars.patchset, |
| 176 'patch_storage', api.vars.patch_storage, |
| 176 ]) | 177 ]) |
| 177 | 178 |
| 178 target = 'nanobench' | 179 target = 'nanobench' |
| 179 if 'VisualBench' in api.vars.builder_name: | 180 if 'VisualBench' in api.vars.builder_name: |
| 180 target = 'visualbench' | 181 target = 'visualbench' |
| 181 args = [ | 182 args = [ |
| 182 target, | 183 target, |
| 183 '--undefok', # This helps branches that may not know new flags. | 184 '--undefok', # This helps branches that may not know new flags. |
| 184 '-i', api.flavor.device_dirs.resource_dir, | 185 '-i', api.flavor.device_dirs.resource_dir, |
| 185 '--skps', api.flavor.device_dirs.skp_dir, | 186 '--skps', api.flavor.device_dirs.skp_dir, |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', | 321 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', |
| 321 'skimage', 'VERSION'), | 322 'skimage', 'VERSION'), |
| 322 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', | 323 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', |
| 323 'skp', 'VERSION'), | 324 'skp', 'VERSION'), |
| 324 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', | 325 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', |
| 325 'svg', 'VERSION'), | 326 'svg', 'VERSION'), |
| 326 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') | 327 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
| 327 ) + | 328 ) + |
| 328 api.platform('win', 64) | 329 api.platform('win', 64) |
| 329 ) | 330 ) |
| 331 |
| 332 gerrit_kwargs = { |
| 333 'patch_storage': 'gerrit', |
| 334 'repository': 'skia', |
| 335 'event.patchSet.ref': 'refs/changes/00/2100/2', |
| 336 'event.change.number': '2100', |
| 337 } |
| 338 yield ( |
| 339 api.test('recipe_with_gerrit_patch') + |
| 340 api.properties( |
| 341 buildername='Perf-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-' + |
| 342 'Valgrind-Trybot', |
| 343 mastername='client.skia', |
| 344 slavename='skiabot-linux-swarm-000', |
| 345 buildnumber=5, |
| 346 path_config='kitchen', |
| 347 swarm_out_dir='[SWARM_OUT_DIR]', |
| 348 revision='abc123', |
| 349 **gerrit_kwargs) |
| 350 ) |
| OLD | NEW |