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

Side by Side Diff: scripts/slave/recipe_modules/chromium_tests/chromium_perf.py

Issue 2495623004: chromium_tests: Add extra compile targets (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | scripts/slave/recipes/chromium.expected/full_chromium_perf_Android_Compile.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import collections 5 import collections
6 6
7 from . import steps 7 from . import steps
8 8
9 import DEPS 9 import DEPS
10 CHROMIUM_CONFIG_CTX = DEPS['chromium'].CONFIG_CTX 10 CHROMIUM_CONFIG_CTX = DEPS['chromium'].CONFIG_CTX
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 return spec 103 return spec
104 104
105 105
106 def _AddIsolatedTestSpec(name, perf_id, platform, target_bits=64): 106 def _AddIsolatedTestSpec(name, perf_id, platform, target_bits=64):
107 spec = TestSpec('chromium_perf', perf_id, platform, target_bits) 107 spec = TestSpec('chromium_perf', perf_id, platform, target_bits)
108 spec['enable_swarming'] = True 108 spec['enable_swarming'] = True
109 SPEC['builders'][name] = spec 109 SPEC['builders'][name] = spec
110 110
111 111
112 def _AddBuildSpec( 112 def _AddBuildSpec(
113 name, platform, target_bits=64, add_to_bisect=False, enable_swarming=False): 113 name, platform, target_bits=64, add_to_bisect=False, enable_swarming=False,
114 extra_compile_targets=None):
114 if target_bits == 64: 115 if target_bits == 64:
115 perf_id = platform 116 perf_id = platform
116 else: 117 else:
117 perf_id = '%s-%d' % (platform, target_bits) 118 perf_id = '%s-%d' % (platform, target_bits)
118 119
119 SPEC['builders'][name] = BuildSpec( 120 SPEC['builders'][name] = BuildSpec(
120 'chromium_perf', perf_id, platform, target_bits, enable_swarming) 121 'chromium_perf', perf_id, platform, target_bits, enable_swarming,
122 extra_compile_targets=extra_compile_targets)
121 123
122 # TODO(martiniss): re-enable assertion once android has switched to the 124 # TODO(martiniss): re-enable assertion once android has switched to the
123 # chromium recipe 125 # chromium recipe
124 # assert target_bits not in builders[platform] 126 # assert target_bits not in builders[platform]
125 127
126 if not builders[platform].get(target_bits, None): 128 if not builders[platform].get(target_bits, None):
127 builders[platform][target_bits] = name 129 builders[platform][target_bits] = name
128 if add_to_bisect: 130 if add_to_bisect:
129 SPEC['settings']['bisect_builders'].append(name) 131 SPEC['settings']['bisect_builders'].append(name)
130 132
131 133
132 def _AddTestSpec(name, perf_id, platform, target_bits=64, 134 def _AddTestSpec(name, perf_id, platform, target_bits=64,
133 num_host_shards=1, num_device_shards=1, 135 num_host_shards=1, num_device_shards=1,
134 parent_buildername=None): 136 parent_buildername=None):
135 for shard_index in xrange(num_host_shards): 137 for shard_index in xrange(num_host_shards):
136 builder_name = '%s (%d)' % (name, shard_index + 1) 138 builder_name = '%s (%d)' % (name, shard_index + 1)
137 tests = [steps.DynamicPerfTests( 139 tests = [steps.DynamicPerfTests(
138 perf_id, platform, target_bits, num_device_shards=num_device_shards, 140 perf_id, platform, target_bits, num_device_shards=num_device_shards,
139 num_host_shards=num_host_shards, shard_index=shard_index)] 141 num_host_shards=num_host_shards, shard_index=shard_index)]
140 SPEC['builders'][builder_name] = TestSpec( 142 SPEC['builders'][builder_name] = TestSpec(
141 'chromium_perf', perf_id, platform, target_bits, tests=tests, 143 'chromium_perf', perf_id, platform, target_bits, tests=tests,
142 parent_buildername=parent_buildername) 144 parent_buildername=parent_buildername)
143 145
144 146
145 _AddBuildSpec('Android Builder', 'android', target_bits=32) 147 _AddBuildSpec('Android Builder', 'android', target_bits=32)
146 _AddBuildSpec('Android Compile', 'android', target_bits=32) 148 _AddBuildSpec('Android Compile', 'android', target_bits=32,
149 extra_compile_targets=['android_tools',
150 'cc_perftests',
151 'chrome_public_apk',
152 'gpu_perftests',
153 'push_apps_to_background_apk',
154 'system_webview_apk',
155 'system_webview_shell_apk',])
147 _AddBuildSpec('Android arm64 Builder', 'android') 156 _AddBuildSpec('Android arm64 Builder', 'android')
148 _AddBuildSpec('Win Builder', 'win', target_bits=32) 157 _AddBuildSpec('Win Builder', 'win', target_bits=32)
149 _AddBuildSpec( \ 158 _AddBuildSpec( \
150 'Win x64 Builder', 'win', add_to_bisect=True, enable_swarming=True) 159 'Win x64 Builder', 'win', add_to_bisect=True, enable_swarming=True)
151 _AddBuildSpec('Mac Builder', 'mac', add_to_bisect=True, enable_swarming=True) 160 _AddBuildSpec('Mac Builder', 'mac', add_to_bisect=True, enable_swarming=True)
152 _AddBuildSpec('Linux Builder', 'linux', add_to_bisect=True) 161 _AddBuildSpec('Linux Builder', 'linux', add_to_bisect=True)
153 162
154 163
155 _AddTestSpec('Android Galaxy S5 Perf', 'android-galaxy-s5', 'android', 164 _AddTestSpec('Android Galaxy S5 Perf', 'android-galaxy-s5', 'android',
156 target_bits=32, num_device_shards=7, num_host_shards=3) 165 target_bits=32, num_device_shards=7, num_host_shards=3)
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 _AddTestSpec('Mac Retina Perf', 'chromium-rel-mac-retina', 'mac', 204 _AddTestSpec('Mac Retina Perf', 'chromium-rel-mac-retina', 'mac',
196 num_host_shards=5) 205 num_host_shards=5)
197 _AddTestSpec('Mac HDD Perf', 'chromium-rel-mac-hdd', 'mac', 206 _AddTestSpec('Mac HDD Perf', 'chromium-rel-mac-hdd', 'mac',
198 num_host_shards=5) 207 num_host_shards=5)
199 _AddIsolatedTestSpec('Mac Pro 10.11 Perf', 'chromium-rel-mac11-pro', 'mac') 208 _AddIsolatedTestSpec('Mac Pro 10.11 Perf', 'chromium-rel-mac11-pro', 'mac')
200 _AddIsolatedTestSpec('Mac Air 10.11 Perf', 'chromium-rel-mac11-air', 'mac') 209 _AddIsolatedTestSpec('Mac Air 10.11 Perf', 'chromium-rel-mac11-air', 'mac')
201 210
202 211
203 _AddTestSpec('Linux Perf', 'linux-release', 'linux', 212 _AddTestSpec('Linux Perf', 'linux-release', 'linux',
204 num_host_shards=5) 213 num_host_shards=5)
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipes/chromium.expected/full_chromium_perf_Android_Compile.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698