Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(618)

Side by Side Diff: scripts/slave/recipe_modules/chromium/chromium_perf_fyi.py

Issue 1185693002: Move builders.py and steps.py to chromium_tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Address review comments. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright 2014 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 from . import steps
6
7 RESULTS_URL = 'https://chromeperf.appspot.com'
8
9 def _GetTargetName(platform, target_bits):
10 return ('Release_x64' if platform is 'win' and target_bits is 64
11 else 'Release')
12
13 def _Spec(platform, parent_builder, perf_id, index, num_shards, target_bits):
14 if platform == 'android':
15 return {
16 'disable_tests': True,
17 'bot_type': 'tester',
18 'chromium_config_kwargs': {
19 'BUILD_CONFIG': 'Release',
20 'TARGET_BITS': target_bits,
21 'TARGET_PLATFORM': 'android',
22 },
23 'gclient_config': 'perf',
24 'gclient_apply_config': ['android'],
25 'parent_buildername': parent_builder,
26 'chromium_config': 'chromium_official',
27 'gclient_config': 'perf',
28 'android_config': 'perf',
29 'testing': {
30 'platform': 'linux',
31 },
32 'perf-id': perf_id,
33 'results-url': RESULTS_URL,
34 'tests': [],
35 }
36 else:
37 return {
38 'disable_tests': True,
39 'bot_type': 'tester',
40 'chromium_config_kwargs': {
41 'BUILD_CONFIG': 'Release',
42 'TARGET_BITS': target_bits,
43 },
44 'parent_buildername': parent_builder,
45 'chromium_config': 'chromium_official',
46 'gclient_config': 'perf',
47 'testing': {
48 'platform': platform,
49 },
50 'perf-id': perf_id,
51 'results-url': RESULTS_URL,
52 'tests': [
53 steps.DynamicPerfTests(
54 _GetTargetName(platform, target_bits).lower(),
55 perf_id, index, num_shards),
56 ],
57 }
58
59
60 def _AddBotSpec(name, platform, parent_builder, perf_id, target_bits,
61 num_shards, extra_tests=[]):
62 if num_shards > 1:
63 for i in range(0, num_shards):
64 builder_name = "%s (%d)" % (name, i + 1)
65 SPEC['builders'][builder_name] = _Spec(platform, parent_builder, perf_id,
66 i, num_shards, target_bits)
67 SPEC['builders'][builder_name]['tests'].extend(extra_tests)
68 else:
69 SPEC['builders'][name] = _Spec(platform, parent_builder, perf_id,
70 0, 1, target_bits)
71 SPEC['builders'][name]['tests'].extend(extra_tests)
72
73
74 SPEC = {
75 'settings': {
76 'build_gs_bucket': 'chrome-perf',
77 },
78 'builders': {
79 'android_oilpan_builder': {
80 'disable_tests': True,
81 'chromium_config': 'chromium_official',
82 'chromium_apply_config': ['oilpan', 'chromium_perf', 'android'],
83 'gclient_config': 'chromium',
84 'gclient_apply_config': ['chrome_internal', 'android', 'perf'],
85 'chromium_config_kwargs': {
86 'BUILD_CONFIG': 'Release',
87 'TARGET_BITS': 32,
88 'TARGET_ARCH': 'arm',
89 },
90 'bot_type': 'builder',
91 'testing': {
92 'platform': 'linux',
93 },
94 },
95 'Linux Oilpan Builder': {
96 'disable_tests': True,
97 'chromium_config': 'chromium_official',
98 'chromium_apply_config': ['oilpan', 'chromium_perf'],
99 'gclient_config': 'chromium',
100 'gclient_apply_config': ['chrome_internal'],
101 'chromium_config_kwargs': {
102 'BUILD_CONFIG': 'Release',
103 'TARGET_BITS': 64,
104 },
105 'bot_type': 'builder',
106 'compile_targets': [
107 'chromium_builder_perf',
108 ],
109 'testing': {
110 'platform': 'linux',
111 },
112 },
113 'Win x64 FYI Builder': {
114 'disable_tests': True,
115 'chromium_config': 'chromium_official',
116 'gclient_config': 'chromium',
117 'gclient_apply_config': ['chrome_internal'],
118 'chromium_config_kwargs': {
119 'BUILD_CONFIG': 'Release',
120 'TARGET_BITS': 64,
121 },
122 'bot_type': 'builder',
123 'compile_targets': [
124 'chromium_builder_perf',
125 ],
126 'testing': {
127 'platform': 'win',
128 },
129 'chromium_apply_config': ['chromium_perf_fyi']
130 },
131 'Win Clang Builder': {
132 'disable_tests': True,
133 'chromium_config': 'chromium_win_clang_official',
134 'gclient_config': 'chromium',
135 'gclient_apply_config': ['chrome_internal'],
136 'chromium_config_kwargs': {
137 'BUILD_CONFIG': 'Release',
138 'TARGET_BITS': 32,
139 },
140 'bot_type': 'builder',
141 'compile_targets': [
142 'chromium_builder_perf',
143 ],
144 'testing': {
145 'platform': 'win',
146 },
147 'tests': {
148 steps.SizesStep(RESULTS_URL, 'win-clang-builder')
149 },
150 'chromium_apply_config': ['chromium_perf_fyi'],
151 },
152 },
153 }
154
155 _AddBotSpec(
156 name='Linux Oilpan Perf',
157 platform='linux',
158 parent_builder='Linux Oilpan Builder',
159 perf_id='linux-oilpan-release',
160 target_bits=64,
161 num_shards=4)
162
163 _AddBotSpec(
164 name='Win 7 Intel GPU Perf (Xeon)',
165 platform='win',
166 parent_builder='Win x64 FYI Builder',
167 perf_id='chromium-rel-win7-gpu-intel',
168 target_bits=64,
169 num_shards=1)
170
171 _AddBotSpec(
172 name='Win Clang Perf',
173 platform='win',
174 parent_builder='Win Clang Builder',
175 perf_id='chromium-win-clang',
176 target_bits=32,
177 num_shards=1)
178
179 _AddBotSpec(
180 name='android_nexus5_oilpan_perf',
181 platform='android',
182 parent_builder='android_oilpan_builder',
183 perf_id='android-nexus5-oilpan',
184 target_bits=32,
185 num_shards=1,
186 extra_tests=[steps.AndroidPerfTests('android-nexus5-oilpan', 1)])
187
OLDNEW
« no previous file with comments | « scripts/slave/recipe_modules/chromium/chromium_perf.py ('k') | scripts/slave/recipe_modules/chromium/chromium_webkit.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698