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 test. | 6 # Recipe module for Skia Swarming test. |
7 | 7 |
8 | 8 |
9 DEPS = [ | 9 DEPS = [ |
10 'build/file', | 10 'build/file', |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 | 424 |
425 # Run DM. | 425 # Run DM. |
426 properties = [ | 426 properties = [ |
427 'gitHash', api.vars.got_revision, | 427 'gitHash', api.vars.got_revision, |
428 'master', api.vars.master_name, | 428 'master', api.vars.master_name, |
429 'builder', api.vars.builder_name, | 429 'builder', api.vars.builder_name, |
430 'build_number', api.vars.build_number, | 430 'build_number', api.vars.build_number, |
431 ] | 431 ] |
432 if api.vars.is_trybot: | 432 if api.vars.is_trybot: |
433 properties.extend([ | 433 properties.extend([ |
434 'issue', api.vars.issue, | 434 'issue', api.vars.issue, |
435 'patchset', api.vars.patchset, | 435 'patchset', api.vars.patchset, |
| 436 'patch_storage', api.vars.patch_storage, |
436 ]) | 437 ]) |
437 | 438 |
438 args = [ | 439 args = [ |
439 'dm', | 440 'dm', |
440 '--undefok', # This helps branches that may not know new flags. | 441 '--undefok', # This helps branches that may not know new flags. |
441 '--resourcePath', api.flavor.device_dirs.resource_dir, | 442 '--resourcePath', api.flavor.device_dirs.resource_dir, |
442 '--skps', api.flavor.device_dirs.skp_dir, | 443 '--skps', api.flavor.device_dirs.skp_dir, |
443 '--images', api.flavor.device_path_join( | 444 '--images', api.flavor.device_path_join( |
444 api.flavor.device_dirs.images_dir, 'dm'), | 445 api.flavor.device_dirs.images_dir, 'dm'), |
445 '--colorImages', api.flavor.device_path_join( | 446 '--colorImages', api.flavor.device_path_join( |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
853 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', | 854 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', |
854 'skimage', 'VERSION'), | 855 'skimage', 'VERSION'), |
855 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', | 856 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', |
856 'skp', 'VERSION'), | 857 'skp', 'VERSION'), |
857 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', | 858 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', |
858 'svg', 'VERSION'), | 859 'svg', 'VERSION'), |
859 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') | 860 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
860 ) + | 861 ) + |
861 api.platform('win', 64) | 862 api.platform('win', 64) |
862 ) | 863 ) |
| 864 |
| 865 builder = 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86-Debug-Trybot' |
| 866 gerrit_kwargs = { |
| 867 'patch_storage': 'gerrit', |
| 868 'repository': 'skia', |
| 869 'event.patchSet.ref': 'refs/changes/00/2100/2', |
| 870 'event.change.number': '2100', |
| 871 } |
| 872 yield ( |
| 873 api.test('recipe_with_gerrit_patch') + |
| 874 api.properties( |
| 875 buildername=builder, |
| 876 mastername='client.skia', |
| 877 slavename='skiabot-linux-swarm-000', |
| 878 buildnumber=5, |
| 879 path_config='kitchen', |
| 880 swarm_out_dir='[SWARM_OUT_DIR]', |
| 881 revision='abc123', |
| 882 **gerrit_kwargs) |
| 883 ) |
OLD | NEW |