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