Debian Codegraph @

infra/bots/recipe_modules/vars/examples/full.py

raw
1 # Copyright 2017 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 DEPS = [
7 'recipe_engine/path',
8 'recipe_engine/platform',
9 'recipe_engine/properties',
10 'recipe_engine/step',
11 'vars',
12 ]
13
14
15 def RunSteps(api):
16 api.vars.setup()
17 info = [
18 api.vars.swarming_bot_id,
19 api.vars.swarming_task_id,
20 ]
21 if api.vars.is_linux:
22 assert len(info) == 2 # Make pylint happy.
23 s = api.step('show', cmd=None)
24 for p in [
25 'build_dir',
26 'builder_name',
27 'cache_dir',
28 'extra_tokens',
29 'internal_hardware_label',
30 'is_internal_bot',
31 'is_linux',
32 'is_trybot',
33 'issue',
34 'patch_storage',
35 'patchset',
36 'role',
37 'workdir',
38 'swarming_out_dir',
39 'tmp_dir',
40 ]:
41 s.presentation.properties[p] = str(getattr(api.vars, p))
42
43
44 TEST_BUILDERS = [
45 'Build-Debian10-Clang-x86_64-Release-SKNX_NO_SIMD',
46 'Housekeeper-Weekly-RecreateSKPs',
47 ]
48
49
50 def GenTests(api):
51 for buildername in TEST_BUILDERS:
52 yield (
53 api.test(buildername) +
54 api.properties(buildername=buildername,
55 repository='https://skia.googlesource.com/skia.git',
56 revision='abc123',
57 path_config='kitchen',
58 swarm_out_dir='[SWARM_OUT_DIR]')
59 )
60
61 buildername = 'Test-Win11-Clang-Dell3930-GPU-GTX1660-x86_64-Debug-All'
62 yield (
63 api.test('win_test') +
64 api.properties(buildername=buildername,
65 repository='https://skia.googlesource.com/skia.git',
66 revision='abc123',
67 path_config='kitchen',
68 swarm_out_dir='[SWARM_OUT_DIR]',
69 patch_storage='gerrit') +
70 api.platform('win', 64) +
71 api.properties.tryserver(
72 buildername=buildername,
73 gerrit_project='skia',
74 gerrit_url='https://skia-review.googlesource.com/',
75 )
76 )
77
78 buildername = 'Upload-Test-Debian10-Clang-GCE-CPU-AVX2-x86_64-Debug-All-ASAN_Vulkan'
79 yield (
80 api.test('integer_issue') +
81 api.properties(buildername=buildername,
82 repository='https://skia.googlesource.com/skia.git',
83 revision='abc123',
84 path_config='kitchen',
85 patch_issue='0',
86 patch_set='0')
87 )