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

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

Issue 2436863004: Add new chromium recipe builder to chromium.perf (Closed)
Patch Set: Remove old file. Created 4 years, 2 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
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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 def _AddBuildSpec( 106 def _AddBuildSpec(
107 name, platform, target_bits=64, add_to_bisect=False, enable_swarming=False): 107 name, platform, target_bits=64, add_to_bisect=False, enable_swarming=False):
108 if target_bits == 64: 108 if target_bits == 64:
109 perf_id = platform 109 perf_id = platform
110 else: 110 else:
111 perf_id = '%s-%d' % (platform, target_bits) 111 perf_id = '%s-%d' % (platform, target_bits)
112 112
113 SPEC['builders'][name] = BuildSpec( 113 SPEC['builders'][name] = BuildSpec(
114 'chromium_perf', perf_id, platform, target_bits, enable_swarming) 114 'chromium_perf', perf_id, platform, target_bits, enable_swarming)
115 assert target_bits not in builders[platform] 115
116 builders[platform][target_bits] = name 116 # TODO(martiniss): re-enable assertion once android has switched to the
117 # chromium recipe
118 # assert target_bits not in builders[platform]
119
120 if not builders[platform].get(target_bits, None):
121 builders[platform][target_bits] = name
117 if add_to_bisect: 122 if add_to_bisect:
118 SPEC['settings']['bisect_builders'].append(name) 123 SPEC['settings']['bisect_builders'].append(name)
119 124
120 125
121 def _AddTestSpec(name, perf_id, platform, target_bits=64, 126 def _AddTestSpec(name, perf_id, platform, target_bits=64,
122 num_host_shards=1, num_device_shards=1): 127 num_host_shards=1, num_device_shards=1):
123 for shard_index in xrange(num_host_shards): 128 for shard_index in xrange(num_host_shards):
124 builder_name = '%s (%d)' % (name, shard_index + 1) 129 builder_name = '%s (%d)' % (name, shard_index + 1)
125 tests = [steps.DynamicPerfTests( 130 tests = [steps.DynamicPerfTests(
126 perf_id, platform, target_bits, num_device_shards=num_device_shards, 131 perf_id, platform, target_bits, num_device_shards=num_device_shards,
127 num_host_shards=num_host_shards, shard_index=shard_index)] 132 num_host_shards=num_host_shards, shard_index=shard_index)]
128 SPEC['builders'][builder_name] = TestSpec( 133 SPEC['builders'][builder_name] = TestSpec(
129 'chromium_perf', perf_id, platform, target_bits, tests=tests) 134 'chromium_perf', perf_id, platform, target_bits, tests=tests)
130 135
131 136
132 _AddBuildSpec('Android Builder', 'android', target_bits=32) 137 _AddBuildSpec('Android Builder', 'android', target_bits=32)
138 _AddBuildSpec('Android Temporary Compile', 'android', target_bits=32)
133 _AddBuildSpec('Android arm64 Builder', 'android') 139 _AddBuildSpec('Android arm64 Builder', 'android')
134 _AddBuildSpec('Win Builder', 'win', target_bits=32) 140 _AddBuildSpec('Win Builder', 'win', target_bits=32)
135 _AddBuildSpec( \ 141 _AddBuildSpec( \
136 'Win x64 Builder', 'win', add_to_bisect=True, enable_swarming=True) 142 'Win x64 Builder', 'win', add_to_bisect=True, enable_swarming=True)
137 _AddBuildSpec('Mac Builder', 'mac', add_to_bisect=True) 143 _AddBuildSpec('Mac Builder', 'mac', add_to_bisect=True)
138 _AddBuildSpec('Linux Builder', 'linux', add_to_bisect=True) 144 _AddBuildSpec('Linux Builder', 'linux', add_to_bisect=True)
139 145
140 146
141 _AddTestSpec('Android Galaxy S5 Perf', 'android-galaxy-s5', 'android', 147 _AddTestSpec('Android Galaxy S5 Perf', 'android-galaxy-s5', 'android',
142 target_bits=32, num_device_shards=7, num_host_shards=3) 148 target_bits=32, num_device_shards=7, num_host_shards=3)
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 _AddTestSpec('Mac 10.10 Perf', 'chromium-rel-mac10', 'mac', 185 _AddTestSpec('Mac 10.10 Perf', 'chromium-rel-mac10', 'mac',
180 num_host_shards=5) 186 num_host_shards=5)
181 _AddTestSpec('Mac Retina Perf', 'chromium-rel-mac-retina', 'mac', 187 _AddTestSpec('Mac Retina Perf', 'chromium-rel-mac-retina', 'mac',
182 num_host_shards=5) 188 num_host_shards=5)
183 _AddTestSpec('Mac HDD Perf', 'chromium-rel-mac-hdd', 'mac', 189 _AddTestSpec('Mac HDD Perf', 'chromium-rel-mac-hdd', 'mac',
184 num_host_shards=5) 190 num_host_shards=5)
185 191
186 192
187 _AddTestSpec('Linux Perf', 'linux-release', 'linux', 193 _AddTestSpec('Linux Perf', 'linux-release', 'linux',
188 num_host_shards=5) 194 num_host_shards=5)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698