OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 |
| 6 # Recipe module for Skia Swarming compile. |
| 7 |
| 8 |
| 9 DEPS = [ |
| 10 'recipe_engine/json', |
| 11 'recipe_engine/path', |
| 12 'recipe_engine/platform', |
| 13 'recipe_engine/properties', |
| 14 'skia', |
| 15 ] |
| 16 |
| 17 |
| 18 TEST_BUILDERS = { |
| 19 'client.skia.compile': { |
| 20 'skiabot-linux-swarm-000': [ |
| 21 'Build-Mac-Clang-Arm7-Debug-Android', |
| 22 'Build-Mac-Clang-Arm7-Release-iOS', |
| 23 'Build-Mac-Clang-x86_64-Debug-CommandBuffer', |
| 24 'Build-Mac-Clang-x86_64-Release-CMake', |
| 25 'Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot', |
| 26 'Build-Ubuntu-GCC-Arm7-Release-Android', |
| 27 'Build-Ubuntu-GCC-Arm7-Release-Android_Vulkan', |
| 28 'Build-Ubuntu-GCC-x86_64-Debug-MSAN', |
| 29 'Build-Ubuntu-GCC-x86_64-Release-CMake', |
| 30 'Build-Ubuntu-GCC-x86_64-Release-PDFium', |
| 31 'Build-Ubuntu-GCC-x86_64-Release-Shared', |
| 32 'Build-Ubuntu-GCC-x86_64-Release-Valgrind', |
| 33 'Build-Win-MSVC-x86-Debug', |
| 34 'Build-Win-MSVC-x86_64-Release-Vulkan', |
| 35 ], |
| 36 }, |
| 37 } |
| 38 |
| 39 |
| 40 def RunSteps(api): |
| 41 api.skia.setup() |
| 42 api.skia.compile_steps() |
| 43 api.skia.cleanup_steps() |
| 44 api.skia.check_failure() |
| 45 |
| 46 |
| 47 def GenTests(api): |
| 48 for mastername, slaves in TEST_BUILDERS.iteritems(): |
| 49 for slavename, builders_by_slave in slaves.iteritems(): |
| 50 for builder in builders_by_slave: |
| 51 test = ( |
| 52 api.test(builder) + |
| 53 api.properties(buildername=builder, |
| 54 mastername=mastername, |
| 55 slavename=slavename, |
| 56 buildnumber=5, |
| 57 revision='abc123', |
| 58 path_config='kitchen', |
| 59 swarm_out_dir='[SWARM_OUT_DIR]') + |
| 60 api.path.exists( |
| 61 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
| 62 ) |
| 63 ) |
| 64 if 'Win' in builder: |
| 65 test += api.platform('win', 64) |
| 66 elif 'Mac' in builder: |
| 67 test += api.platform('mac', 64) |
| 68 else: |
| 69 test += api.platform('linux', 64) |
| 70 if 'Android' in builder: |
| 71 ccache = '/usr/bin/ccache' |
| 72 test += api.step_data('has ccache?', |
| 73 stdout=api.json.output({'ccache':ccache})) |
| 74 test += api.step_data( |
| 75 'which adb', |
| 76 retcode=1) |
| 77 if 'Trybot' in builder: |
| 78 test += api.properties(issue=500, |
| 79 patchset=1, |
| 80 rietveld='https://codereview.chromium.org') |
| 81 |
| 82 yield test |
| 83 |
| 84 mastername = 'client.skia.compile' |
| 85 slavename = 'skiabot-win-compile-000' |
| 86 buildername = 'Build-Win-MSVC-x86-Debug' |
| 87 yield ( |
| 88 api.test('win_retry_failed_compile') + |
| 89 api.properties(buildername=buildername, |
| 90 mastername=mastername, |
| 91 slavename=slavename, |
| 92 buildnumber=5, |
| 93 revision='abc123', |
| 94 path_config='kitchen', |
| 95 swarm_out_dir='[SWARM_OUT_DIR]') + |
| 96 api.path.exists( |
| 97 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
| 98 ) + |
| 99 api.platform('win', 64) + |
| 100 api.step_data('build most', retcode=1) |
| 101 ) |
| 102 |
| 103 yield ( |
| 104 api.test('big_issue_number') + |
| 105 api.properties(buildername=buildername, |
| 106 mastername=mastername, |
| 107 slavename=slavename, |
| 108 buildnumber=5, |
| 109 revision='abc123', |
| 110 path_config='kitchen', |
| 111 swarm_out_dir='[SWARM_OUT_DIR]', |
| 112 rietveld='https://codereview.chromium.org', |
| 113 patchset=1, |
| 114 issue=2147533002L) + |
| 115 api.path.exists( |
| 116 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
| 117 ) + |
| 118 api.platform('win', 64) |
| 119 ) |
OLD | NEW |