| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 builders. | 6 # Recipe module for Skia builders. |
| 7 | 7 |
| 8 | 8 |
| 9 DEPS = [ | 9 DEPS = [ |
| 10 'depot_tools/infra_paths', |
| 10 'recipe_engine/json', | 11 'recipe_engine/json', |
| 11 'recipe_engine/path', | 12 'recipe_engine/path', |
| 12 'recipe_engine/platform', | 13 'recipe_engine/platform', |
| 13 'recipe_engine/properties', | 14 'recipe_engine/properties', |
| 14 'recipe_engine/raw_io', | 15 'recipe_engine/raw_io', |
| 15 'skia', | 16 'skia', |
| 16 ] | 17 ] |
| 17 | 18 |
| 18 | 19 |
| 19 TEST_BUILDERS = { | 20 TEST_BUILDERS = { |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 for mastername, slaves in TEST_BUILDERS.iteritems(): | 104 for mastername, slaves in TEST_BUILDERS.iteritems(): |
| 104 for slavename, builders_by_slave in slaves.iteritems(): | 105 for slavename, builders_by_slave in slaves.iteritems(): |
| 105 for builder in builders_by_slave: | 106 for builder in builders_by_slave: |
| 106 test = ( | 107 test = ( |
| 107 api.test(builder) + | 108 api.test(builder) + |
| 108 api.properties(buildername=builder, | 109 api.properties(buildername=builder, |
| 109 mastername=mastername, | 110 mastername=mastername, |
| 110 slavename=slavename, | 111 slavename=slavename, |
| 111 buildnumber=5, | 112 buildnumber=5, |
| 112 revision='abc123') + | 113 revision='abc123') + |
| 113 api.path.exists( | 114 api.infra_paths.exists( |
| 114 api.path['slave_build'].join('skia'), | 115 api.infra_paths['slave_build'].join('skia'), |
| 115 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') | 116 api.infra_paths['slave_build'].join('tmp', 'uninteresting_hashes.t
xt') |
| 116 ) | 117 ) |
| 117 ) | 118 ) |
| 118 if 'Android' in builder: | 119 if 'Android' in builder: |
| 119 ccache = '/usr/bin/ccache' if 'Appurify' in builder else None | 120 ccache = '/usr/bin/ccache' if 'Appurify' in builder else None |
| 120 test += api.step_data('has ccache?', | 121 test += api.step_data('has ccache?', |
| 121 stdout=api.json.output({'ccache':ccache})) | 122 stdout=api.json.output({'ccache':ccache})) |
| 122 if ('Android' in builder and | 123 if ('Android' in builder and |
| 123 ('Test' in builder or 'Perf' in builder) and | 124 ('Test' in builder or 'Perf' in builder) and |
| 124 not 'Appurify' in builder): | 125 not 'Appurify' in builder): |
| 125 test += AndroidTestData(builder) | 126 test += AndroidTestData(builder) |
| 126 if 'ChromeOS' in builder: | 127 if 'ChromeOS' in builder: |
| 127 test += api.step_data('read SKP_VERSION', | 128 test += api.step_data('read SKP_VERSION', |
| 128 stdout=api.raw_io.output('42')) | 129 stdout=api.raw_io.output('42')) |
| 129 test += api.step_data('read SK_IMAGE_VERSION', | 130 test += api.step_data('read SK_IMAGE_VERSION', |
| 130 stdout=api.raw_io.output('42')) | 131 stdout=api.raw_io.output('42')) |
| 131 if 'Trybot' in builder: | 132 if 'Trybot' in builder: |
| 132 test += api.properties(issue=500, | 133 test += api.properties(issue=500, |
| 133 patchset=1, | 134 patchset=1, |
| 134 rietveld='https://codereview.chromium.org') | 135 rietveld='https://codereview.chromium.org') |
| 135 if 'Win' in builder and 'Swarming' not in builder: | 136 if 'Win' in builder and 'Swarming' not in builder: |
| 136 test += api.platform('win', 64) | 137 test += api.platform('win', 64) |
| 137 if builder == 'Build-Win-MSVC-x86-Debug-VS2015': | 138 if builder == 'Build-Win-MSVC-x86-Debug-VS2015': |
| 138 test += api.path.exists( | 139 test += api.infra_paths.exists( |
| 139 api.path['slave_build'].join('skia', 'infra', 'bots', | 140 api.infra_paths['slave_build'].join('skia', 'infra', 'bots', |
| 140 'win_toolchain_hash.json')) | 141 'win_toolchain_hash.json')) |
| 141 test += api.step_data('Get downloaded WIN_TOOLCHAIN_HASH', | 142 test += api.step_data('Get downloaded WIN_TOOLCHAIN_HASH', |
| 142 retcode=1) | 143 retcode=1) |
| 143 | 144 |
| 144 yield test | 145 yield test |
| 145 | 146 |
| 146 builder = 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug' | 147 builder = 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug' |
| 147 yield ( | 148 yield ( |
| 148 api.test('failed_dm') + | 149 api.test('failed_dm') + |
| 149 api.properties(buildername=builder, | 150 api.properties(buildername=builder, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 175 revision='abc123') + | 176 revision='abc123') + |
| 176 api.step_data( | 177 api.step_data( |
| 177 'has ccache?', | 178 'has ccache?', |
| 178 stdout=api.json.output({'ccache':None})) + | 179 stdout=api.json.output({'ccache':None})) + |
| 179 AndroidTestData(builder) + | 180 AndroidTestData(builder) + |
| 180 api.step_data('read SKP_VERSION', | 181 api.step_data('read SKP_VERSION', |
| 181 stdout=api.raw_io.output('42')) + | 182 stdout=api.raw_io.output('42')) + |
| 182 api.step_data('read SK_IMAGE_VERSION', | 183 api.step_data('read SK_IMAGE_VERSION', |
| 183 stdout=api.raw_io.output('42')) + | 184 stdout=api.raw_io.output('42')) + |
| 184 api.step_data('get uninteresting hashes', retcode=1) + | 185 api.step_data('get uninteresting hashes', retcode=1) + |
| 185 api.path.exists( | 186 api.infra_paths.exists( |
| 186 api.path['slave_build'].join('skia'), | 187 api.infra_paths['slave_build'].join('skia'), |
| 187 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') | 188 api.infra_paths['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
| 188 ) | 189 ) |
| 189 ) | 190 ) |
| 190 | 191 |
| 191 yield ( | 192 yield ( |
| 192 api.test('download_and_push_skps') + | 193 api.test('download_and_push_skps') + |
| 193 api.properties(buildername=builder, | 194 api.properties(buildername=builder, |
| 194 mastername=master, | 195 mastername=master, |
| 195 slavename=slave, | 196 slavename=slave, |
| 196 buildnumber=6, | 197 buildnumber=6, |
| 197 revision='abc123', | 198 revision='abc123', |
| 198 test_downloaded_skp_version='2') + | 199 test_downloaded_skp_version='2') + |
| 199 api.step_data( | 200 api.step_data( |
| 200 'has ccache?', | 201 'has ccache?', |
| 201 stdout=api.json.output({'ccache':None})) + | 202 stdout=api.json.output({'ccache':None})) + |
| 202 AndroidTestData(builder) + | 203 AndroidTestData(builder) + |
| 203 api.step_data('read SKP_VERSION', | 204 api.step_data('read SKP_VERSION', |
| 204 stdout=api.raw_io.output('2')) + | 205 stdout=api.raw_io.output('2')) + |
| 205 api.step_data('read SK_IMAGE_VERSION', | 206 api.step_data('read SK_IMAGE_VERSION', |
| 206 stdout=api.raw_io.output('42')) + | 207 stdout=api.raw_io.output('42')) + |
| 207 api.step_data( | 208 api.step_data( |
| 208 'exists skps', | 209 'exists skps', |
| 209 stdout=api.raw_io.output('')) + | 210 stdout=api.raw_io.output('')) + |
| 210 api.path.exists( | 211 api.infra_paths.exists( |
| 211 api.path['slave_build'].join('skia'), | 212 api.infra_paths['slave_build'].join('skia'), |
| 212 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') | 213 api.infra_paths['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
| 213 ) | 214 ) |
| 214 ) | 215 ) |
| 215 | 216 |
| 216 yield ( | 217 yield ( |
| 217 api.test('missing_SKP_VERSION_device') + | 218 api.test('missing_SKP_VERSION_device') + |
| 218 api.properties(buildername=builder, | 219 api.properties(buildername=builder, |
| 219 mastername=master, | 220 mastername=master, |
| 220 slavename=slave, | 221 slavename=slave, |
| 221 buildnumber=6, | 222 buildnumber=6, |
| 222 revision='abc123') + | 223 revision='abc123') + |
| 223 api.step_data( | 224 api.step_data( |
| 224 'has ccache?', | 225 'has ccache?', |
| 225 stdout=api.json.output({'ccache':None})) + | 226 stdout=api.json.output({'ccache':None})) + |
| 226 AndroidTestData(builder) + | 227 AndroidTestData(builder) + |
| 227 api.step_data('read SKP_VERSION', | 228 api.step_data('read SKP_VERSION', |
| 228 retcode=1) + | 229 retcode=1) + |
| 229 api.step_data('read SK_IMAGE_VERSION', | 230 api.step_data('read SK_IMAGE_VERSION', |
| 230 stdout=api.raw_io.output('42')) + | 231 stdout=api.raw_io.output('42')) + |
| 231 api.step_data( | 232 api.step_data( |
| 232 'exists skps', | 233 'exists skps', |
| 233 stdout=api.raw_io.output('')) + | 234 stdout=api.raw_io.output('')) + |
| 234 api.path.exists( | 235 api.infra_paths.exists( |
| 235 api.path['slave_build'].join('skia'), | 236 api.infra_paths['slave_build'].join('skia'), |
| 236 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') | 237 api.infra_paths['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
| 237 ) | 238 ) |
| 238 ) | 239 ) |
| 239 | 240 |
| 240 yield ( | 241 yield ( |
| 241 api.test('download_and_push_skimage') + | 242 api.test('download_and_push_skimage') + |
| 242 api.properties(buildername=builder, | 243 api.properties(buildername=builder, |
| 243 mastername=master, | 244 mastername=master, |
| 244 slavename=slave, | 245 slavename=slave, |
| 245 buildnumber=6, | 246 buildnumber=6, |
| 246 revision='abc123', | 247 revision='abc123', |
| 247 test_downloaded_sk_image_version='2') + | 248 test_downloaded_sk_image_version='2') + |
| 248 api.step_data( | 249 api.step_data( |
| 249 'has ccache?', | 250 'has ccache?', |
| 250 stdout=api.json.output({'ccache':None})) + | 251 stdout=api.json.output({'ccache':None})) + |
| 251 AndroidTestData(builder) + | 252 AndroidTestData(builder) + |
| 252 api.step_data('read SKP_VERSION', | 253 api.step_data('read SKP_VERSION', |
| 253 stdout=api.raw_io.output('42')) + | 254 stdout=api.raw_io.output('42')) + |
| 254 api.step_data('read SK_IMAGE_VERSION', | 255 api.step_data('read SK_IMAGE_VERSION', |
| 255 stdout=api.raw_io.output('2')) + | 256 stdout=api.raw_io.output('2')) + |
| 256 api.step_data( | 257 api.step_data( |
| 257 'exists skia_images', | 258 'exists skia_images', |
| 258 stdout=api.raw_io.output('')) + | 259 stdout=api.raw_io.output('')) + |
| 259 api.path.exists( | 260 api.infra_paths.exists( |
| 260 api.path['slave_build'].join('skia'), | 261 api.infra_paths['slave_build'].join('skia'), |
| 261 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') | 262 api.infra_paths['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
| 262 ) | 263 ) |
| 263 ) | 264 ) |
| 264 | 265 |
| 265 yield ( | 266 yield ( |
| 266 api.test('missing_SK_IMAGE_VERSION_device') + | 267 api.test('missing_SK_IMAGE_VERSION_device') + |
| 267 api.properties(buildername=builder, | 268 api.properties(buildername=builder, |
| 268 mastername=master, | 269 mastername=master, |
| 269 slavename=slave, | 270 slavename=slave, |
| 270 buildnumber=6, | 271 buildnumber=6, |
| 271 revision='abc123') + | 272 revision='abc123') + |
| 272 api.step_data( | 273 api.step_data( |
| 273 'has ccache?', | 274 'has ccache?', |
| 274 stdout=api.json.output({'ccache':None})) + | 275 stdout=api.json.output({'ccache':None})) + |
| 275 AndroidTestData(builder) + | 276 AndroidTestData(builder) + |
| 276 api.step_data('read SKP_VERSION', | 277 api.step_data('read SKP_VERSION', |
| 277 stdout=api.raw_io.output('42')) + | 278 stdout=api.raw_io.output('42')) + |
| 278 api.step_data('read SK_IMAGE_VERSION', | 279 api.step_data('read SK_IMAGE_VERSION', |
| 279 retcode=1) + | 280 retcode=1) + |
| 280 api.step_data( | 281 api.step_data( |
| 281 'exists skia_images', | 282 'exists skia_images', |
| 282 stdout=api.raw_io.output('')) + | 283 stdout=api.raw_io.output('')) + |
| 283 api.path.exists( | 284 api.infra_paths.exists( |
| 284 api.path['slave_build'].join('skia'), | 285 api.infra_paths['slave_build'].join('skia'), |
| 285 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') | 286 api.infra_paths['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
| 286 ) | 287 ) |
| 287 ) | 288 ) |
| 288 | 289 |
| 289 builder = 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug' | 290 builder = 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug' |
| 290 master = 'client.skia' | 291 master = 'client.skia' |
| 291 slave = 'skiabot-linux-test-000' | 292 slave = 'skiabot-linux-test-000' |
| 292 yield ( | 293 yield ( |
| 293 api.test('missing_SKP_VERSION_host') + | 294 api.test('missing_SKP_VERSION_host') + |
| 294 api.properties(buildername=builder, | 295 api.properties(buildername=builder, |
| 295 mastername=master, | 296 mastername=master, |
| 296 slavename=slave, | 297 slavename=slave, |
| 297 buildnumber=6, | 298 buildnumber=6, |
| 298 revision='abc123') + | 299 revision='abc123') + |
| 299 api.step_data('Get downloaded SKP_VERSION', retcode=1) + | 300 api.step_data('Get downloaded SKP_VERSION', retcode=1) + |
| 300 api.path.exists( | 301 api.infra_paths.exists( |
| 301 api.path['slave_build'].join('skia'), | 302 api.infra_paths['slave_build'].join('skia'), |
| 302 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') | 303 api.infra_paths['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
| 303 ) | 304 ) |
| 304 ) | 305 ) |
| 305 | 306 |
| 306 yield ( | 307 yield ( |
| 307 api.test('missing_SK_IMAGE_VERSION_host') + | 308 api.test('missing_SK_IMAGE_VERSION_host') + |
| 308 api.properties(buildername=builder, | 309 api.properties(buildername=builder, |
| 309 mastername=master, | 310 mastername=master, |
| 310 slavename=slave, | 311 slavename=slave, |
| 311 buildnumber=6, | 312 buildnumber=6, |
| 312 revision='abc123') + | 313 revision='abc123') + |
| 313 api.step_data('Get downloaded SK_IMAGE_VERSION', retcode=1) + | 314 api.step_data('Get downloaded SK_IMAGE_VERSION', retcode=1) + |
| 314 api.path.exists( | 315 api.infra_paths.exists( |
| 315 api.path['slave_build'].join('skia'), | 316 api.infra_paths['slave_build'].join('skia'), |
| 316 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') | 317 api.infra_paths['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
| 317 ) | 318 ) |
| 318 ) | 319 ) |
| OLD | NEW |