skia2/infra/bots/recipe_modules/upload_dm_results/example.py
Eric Boren 7e97dc0aa1 Copy modules back in from skia-recipes repo
BUG=skia:6070

Change-Id: I86b3f039c27bd8287516c1db8bd1cae62888171b
Reviewed-on: https://skia-review.googlesource.com/7890
Reviewed-by: Ravi Mistry <rmistry@google.com>
Commit-Queue: Eric Boren <borenet@google.com>
2017-02-02 14:31:45 +00:00

71 lines
1.8 KiB
Python

# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Example recipe w/ coverage.
DEPS = [
'upload_dm_results',
'recipe_engine/properties',
]
def RunSteps(api):
api.upload_dm_results.run()
def GenTests(api):
builder = 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug'
yield (
api.test('normal_bot') +
api.properties(buildername=builder,
revision='abc123',
path_config='kitchen')
)
yield (
api.test('failed_once') +
api.properties(buildername=builder,
revision='abc123',
path_config='kitchen') +
api.step_data('upload images', retcode=1)
)
yield (
api.test('failed_all') +
api.properties(buildername=builder,
revision='abc123',
path_config='kitchen') +
api.step_data('upload images', retcode=1) +
api.step_data('upload images (attempt 2)', retcode=1) +
api.step_data('upload images (attempt 3)', retcode=1) +
api.step_data('upload images (attempt 4)', retcode=1) +
api.step_data('upload images (attempt 5)', retcode=1)
)
builder = 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot'
yield (
api.test('trybot') +
api.properties(buildername=builder,
revision='abc123',
path_config='kitchen',
issue='12345',
patchset='1002')
)
yield (
api.test('recipe_with_gerrit_patch') +
api.properties(
buildername=builder,
revision='abc123',
path_config='kitchen',
patch_storage='gerrit') +
api.properties.tryserver(
buildername=builder,
gerrit_project='skia',
gerrit_url='https://skia-review.googlesource.com/',
)
)