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# Example recipe w/ coverage. 7 8 9DEPS = [ 10 'upload_dm_results', 11 'recipe_engine/properties', 12] 13 14 15def RunSteps(api): 16 api.upload_dm_results.run() 17 18 19def GenTests(api): 20 builder = 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug' 21 yield ( 22 api.test('normal_bot') + 23 api.properties(buildername=builder, 24 gs_bucket='skia-infra-gm', 25 revision='abc123', 26 path_config='kitchen') 27 ) 28 29 yield ( 30 api.test('failed_once') + 31 api.properties(buildername=builder, 32 gs_bucket='skia-infra-gm', 33 revision='abc123', 34 path_config='kitchen') + 35 api.step_data('upload images', retcode=1) 36 ) 37 38 yield ( 39 api.test('failed_all') + 40 api.properties(buildername=builder, 41 gs_bucket='skia-infra-gm', 42 revision='abc123', 43 path_config='kitchen') + 44 api.step_data('upload images', retcode=1) + 45 api.step_data('upload images (attempt 2)', retcode=1) + 46 api.step_data('upload images (attempt 3)', retcode=1) + 47 api.step_data('upload images (attempt 4)', retcode=1) + 48 api.step_data('upload images (attempt 5)', retcode=1) 49 ) 50 51 builder = 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot' 52 yield ( 53 api.test('trybot') + 54 api.properties(buildername=builder, 55 gs_bucket='skia-infra-gm', 56 revision='abc123', 57 path_config='kitchen', 58 issue='12345', 59 patchset='1002') 60 ) 61 62 yield ( 63 api.test('recipe_with_gerrit_patch') + 64 api.properties( 65 buildername=builder, 66 gs_bucket='skia-infra-gm', 67 revision='abc123', 68 path_config='kitchen', 69 patch_storage='gerrit') + 70 api.properties.tryserver( 71 buildername=builder, 72 gerrit_project='skia', 73 gerrit_url='https://skia-review.googlesource.com/', 74 ) 75 ) 76