1# Copyright 2017 The Chromium Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5 6DEPS = [ 7 'recipe_engine/path', 8 'recipe_engine/platform', 9 'recipe_engine/properties', 10 'recipe_engine/step', 11 'vars', 12] 13 14 15def RunSteps(api): 16 api.vars.setup() 17 info = [ 18 api.vars.swarming_bot_id, 19 api.vars.swarming_task_id, 20 ] 21 if api.vars.is_linux: 22 assert len(info) == 2 # Make pylint happy. 23 s = api.step('show', cmd=None) 24 for p in [ 25 'build_dir', 26 'builder_cfg', 27 'builder_name', 28 'cache_dir', 29 'default_env', 30 'extra_tokens', 31 'internal_hardware_label', 32 'is_internal_bot', 33 'is_linux', 34 'is_trybot', 35 'issue', 36 'patch_storage', 37 'patchset', 38 'role', 39 'workdir', 40 'swarming_out_dir', 41 'tmp_dir', 42 ]: 43 s.presentation.properties[p] = str(getattr(api.vars, p)) 44 45 46TEST_BUILDERS = [ 47 'Build-Debian10-Clang-x86_64-Release-SKNX_NO_SIMD', 48 'Housekeeper-Weekly-RecreateSKPs', 49] 50 51 52def GenTests(api): 53 for buildername in TEST_BUILDERS: 54 yield ( 55 api.test(buildername) + 56 api.properties(buildername=buildername, 57 repository='https://skia.googlesource.com/skia.git', 58 revision='abc123', 59 path_config='kitchen', 60 swarm_out_dir='[SWARM_OUT_DIR]') 61 ) 62 63 buildername = 'Test-Win10-MSVC-ShuttleA-GPU-GTX660-x86_64-Debug-All' 64 yield ( 65 api.test('win_test') + 66 api.properties(buildername=buildername, 67 repository='https://skia.googlesource.com/skia.git', 68 revision='abc123', 69 path_config='kitchen', 70 swarm_out_dir='[SWARM_OUT_DIR]', 71 patch_storage='gerrit') + 72 api.platform('win', 64) + 73 api.properties.tryserver( 74 buildername=buildername, 75 gerrit_project='skia', 76 gerrit_url='https://skia-review.googlesource.com/', 77 ) 78 ) 79 80 buildername = 'Upload-Test-Debian10-Clang-GCE-CPU-AVX2-x86_64-Debug-All-ASAN_Vulkan' 81 yield ( 82 api.test('integer_issue') + 83 api.properties(buildername=buildername, 84 repository='https://skia.googlesource.com/skia.git', 85 revision='abc123', 86 path_config='kitchen', 87 patch_issue='0', 88 patch_set='0') 89 ) 90