OLD | NEW |
| (Empty) |
1 # Copyright (c) 2012 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 # Sets up all the builders we want the private buildbot master to run. | |
6 | |
7 | |
8 #pylint: disable=C0301 | |
9 | |
10 | |
11 import master_builders_cfg | |
12 from master_builders_cfg import LINUX, S_PERCOMMIT | |
13 | |
14 from skia_master_scripts.android_factory import AndroidFactory as f_android | |
15 from skia_master_scripts.android_roll_factory import AndroidRollFactory as \ | |
16 f_androidroll | |
17 | |
18 | |
19 def setup_test_and_perf_builders(helper, do_upload_render_results, | |
20 do_upload_bench_results): | |
21 """Set up all Test and Perf builders for the private master. | |
22 | |
23 Args: | |
24 helper: instance of utils.SkiaHelper | |
25 do_upload_render_results: bool; whether the builders should upload their | |
26 render results. | |
27 do_upload_bench_results: bool; whether the builders should upload their | |
28 bench results. | |
29 """ | |
30 # | |
31 # TEST AND PERF BUILDERS | |
32 # | |
33 # Role, OS, Model, GPU, Arch, Config, Extra Con
fig,GYP_DEFS, Factory, Target, Scheduler, Extra Args | |
34 # | |
35 builder_specs = [ | |
36 ('Test', 'Android', 'Reference', 'Unknown', 'Arm64', 'Debug', None,
None, f_android, LINUX, S_PERCOMMIT, {'device': 'arm64'}), | |
37 ('Test', 'Android', 'Reference', 'Unknown', 'Arm64', 'Release', None,
None, f_android, LINUX, S_PERCOMMIT, {'device': 'arm64'}), | |
38 ('Perf', 'Android', 'Reference', 'Unknown', 'Arm64', 'Release', None,
None, f_android, LINUX, S_PERCOMMIT, {'device': 'arm64'}), | |
39 ] | |
40 | |
41 master_builders_cfg.setup_builders_from_config_list( | |
42 builder_specs, | |
43 helper, | |
44 do_upload_render_results, | |
45 do_upload_bench_results, | |
46 master_builders_cfg.Builder) | |
47 | |
48 | |
49 def setup_housekeepers(helper, do_upload_render_results, | |
50 do_upload_bench_results): | |
51 """Set up the Housekeeping builders. | |
52 | |
53 Args: | |
54 helper: instance of utils.SkiaHelper | |
55 do_upload_render_results: bool; whether the builders should upload their | |
56 render results. | |
57 do_upload_bench_results: bool; whether the builders should upload their | |
58 bench results. | |
59 """ | |
60 # | |
61 # HOUSEKEEPING BUILDERS | |
62 # | |
63 # Frequency, Extra Config, Factory, Target, Scheduler,
Extra Args | |
64 # | |
65 housekeepers = [ | |
66 ('PerCommit', 'AndroidRoll', f_androidroll, LINUX, S_PERCOMMIT,
{}), | |
67 ] | |
68 | |
69 master_builders_cfg.setup_builders_from_config_list( | |
70 housekeepers, helper, | |
71 do_upload_render_results, | |
72 do_upload_bench_results, | |
73 master_builders_cfg.HousekeepingBuilder) | |
74 | |
75 | |
76 def setup_all_builders(helper, do_upload_render_results, | |
77 do_upload_bench_results): | |
78 """Set up all builders for the private master. | |
79 | |
80 Args: | |
81 helper: instance of utils.SkiaHelper | |
82 do_upload_render_results: bool; whether the builders should upload their | |
83 render results. | |
84 do_upload_bench_results: bool; whether the builders should upload their | |
85 bench results. | |
86 """ | |
87 setup_test_and_perf_builders(helper, do_upload_render_results, | |
88 do_upload_bench_results) | |
89 setup_housekeepers(helper=helper, | |
90 do_upload_render_results=do_upload_render_results, | |
91 do_upload_bench_results=do_upload_bench_results) | |
OLD | NEW |