xref: /aosp_15_r20/external/skia/infra/bots/recipe_modules/gold_upload/examples/full.py (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1# Copyright 2021 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 which runs the Skia gold_upload tests.
7
8PYTHON_VERSION_COMPATIBILITY = "PY3"
9
10DEPS = [
11  'gold_upload',
12  'recipe_engine/path',
13  'recipe_engine/platform',
14  'recipe_engine/properties',
15  'recipe_engine/step',
16  'flavor',
17  'run',
18  'vars',
19]
20
21
22def RunSteps(api):
23  api.vars.setup()
24  api.flavor.setup('dm')
25  api.gold_upload.upload()
26
27def GenTests(api):
28  yield (
29      api.test('upload_tests') +
30      api.properties(buildername='Test-Android-Clang-Pixel2XL-Some-GPU-arm64-Debug-All',
31                     repository='https://skia.googlesource.com/skia.git',
32                     gs_bucket='skia-infra-gm',
33                     patch_ref='89/456789/12',
34                     patch_set=7,
35                     patch_issue=1234,
36                     revision='abc123',
37                     path_config='kitchen',
38                     swarm_out_dir='[SWARM_OUT_DIR]')
39  )
40  yield (
41      api.test('upload_mac') +
42      api.properties(buildername='Test-Mac12-Clang-MacBookPro16.2-GPU-IntelIrisPlus-x86_64-Debug-All-Graphite',
43                     repository='https://skia.googlesource.com/skia.git',
44                     gs_bucket='skia-infra-gm',
45                     patch_ref='89/456789/12',
46                     patch_set=7,
47                     patch_issue=1234,
48                     revision='abc123',
49                     path_config='kitchen',
50                     swarm_out_dir='[SWARM_OUT_DIR]') +
51      api.platform('mac', 64)
52  )
53