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

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

Issue 2499523002: chromium_tests: Fix new android compile triggering (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_Builder.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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 # chromium recipe 123 # chromium recipe
124 # assert target_bits not in builders[platform] 124 # assert target_bits not in builders[platform]
125 125
126 if not builders[platform].get(target_bits, None): 126 if not builders[platform].get(target_bits, None):
127 builders[platform][target_bits] = name 127 builders[platform][target_bits] = name
128 if add_to_bisect: 128 if add_to_bisect:
129 SPEC['settings']['bisect_builders'].append(name) 129 SPEC['settings']['bisect_builders'].append(name)
130 130
131 131
132 def _AddTestSpec(name, perf_id, platform, target_bits=64, 132 def _AddTestSpec(name, perf_id, platform, target_bits=64,
133 num_host_shards=1, num_device_shards=1): 133 num_host_shards=1, num_device_shards=1,
134 parent_buildername=None):
134 for shard_index in xrange(num_host_shards): 135 for shard_index in xrange(num_host_shards):
135 builder_name = '%s (%d)' % (name, shard_index + 1) 136 builder_name = '%s (%d)' % (name, shard_index + 1)
136 tests = [steps.DynamicPerfTests( 137 tests = [steps.DynamicPerfTests(
137 perf_id, platform, target_bits, num_device_shards=num_device_shards, 138 perf_id, platform, target_bits, num_device_shards=num_device_shards,
138 num_host_shards=num_host_shards, shard_index=shard_index)] 139 num_host_shards=num_host_shards, shard_index=shard_index)]
139 SPEC['builders'][builder_name] = TestSpec( 140 SPEC['builders'][builder_name] = TestSpec(
140 'chromium_perf', perf_id, platform, target_bits, tests=tests) 141 'chromium_perf', perf_id, platform, target_bits, tests=tests,
142 parent_buildername=parent_buildername)
141 143
142 144
143 _AddBuildSpec('Android Builder', 'android', target_bits=32) 145 _AddBuildSpec('Android Builder', 'android', target_bits=32)
144 _AddBuildSpec('Android Compile', 'android', target_bits=32) 146 _AddBuildSpec('Android Compile', 'android', target_bits=32)
145 _AddBuildSpec('Android arm64 Builder', 'android') 147 _AddBuildSpec('Android arm64 Builder', 'android')
146 _AddBuildSpec('Win Builder', 'win', target_bits=32) 148 _AddBuildSpec('Win Builder', 'win', target_bits=32)
147 _AddBuildSpec( \ 149 _AddBuildSpec( \
148 'Win x64 Builder', 'win', add_to_bisect=True, enable_swarming=True) 150 'Win x64 Builder', 'win', add_to_bisect=True, enable_swarming=True)
149 _AddBuildSpec('Mac Builder', 'mac', add_to_bisect=True) 151 _AddBuildSpec('Mac Builder', 'mac', add_to_bisect=True)
150 _AddBuildSpec('Linux Builder', 'linux', add_to_bisect=True) 152 _AddBuildSpec('Linux Builder', 'linux', add_to_bisect=True)
151 153
152 154
153 _AddTestSpec('Android Galaxy S5 Perf', 'android-galaxy-s5', 'android', 155 _AddTestSpec('Android Galaxy S5 Perf', 'android-galaxy-s5', 'android',
154 target_bits=32, num_device_shards=7, num_host_shards=3) 156 target_bits=32, num_device_shards=7, num_host_shards=3)
155 _AddTestSpec('Android Nexus5 Perf', 'android-nexus5', 'android', 157 _AddTestSpec('Android Nexus5 Perf', 'android-nexus5', 'android',
156 target_bits=32, num_device_shards=7, num_host_shards=3) 158 target_bits=32, num_device_shards=7, num_host_shards=3)
157 _AddTestSpec('Android Nexus5X Perf', 'android-nexus5X', 'android', 159 _AddTestSpec('Android Nexus5X Perf', 'android-nexus5X', 'android',
158 target_bits=32, num_device_shards=7, num_host_shards=3) 160 target_bits=32, num_device_shards=7, num_host_shards=3,
161 parent_buildername='Android Compile')
159 _AddTestSpec('Android Nexus6 Perf', 'android-nexus6', 'android', 162 _AddTestSpec('Android Nexus6 Perf', 'android-nexus6', 'android',
160 target_bits=32, num_device_shards=7, num_host_shards=3) 163 target_bits=32, num_device_shards=7, num_host_shards=3)
161 _AddTestSpec('Android Nexus7v2 Perf', 'android-nexus7v2', 'android', 164 _AddTestSpec('Android Nexus7v2 Perf', 'android-nexus7v2', 'android',
162 target_bits=32, num_device_shards=7, num_host_shards=3) 165 target_bits=32, num_device_shards=7, num_host_shards=3)
163 _AddTestSpec('Android Nexus9 Perf', 'android-nexus9', 'android', 166 _AddTestSpec('Android Nexus9 Perf', 'android-nexus9', 'android',
164 num_device_shards=7, num_host_shards=3) 167 num_device_shards=7, num_host_shards=3)
165 _AddTestSpec('Android One Perf', 'android-one', 'android', 168 _AddTestSpec('Android One Perf', 'android-one', 'android',
166 target_bits=32, num_device_shards=7, num_host_shards=3) 169 target_bits=32, num_device_shards=7, num_host_shards=3)
167 170
168 171
(...skipping 24 matching lines...) Expand all
193 _AddTestSpec('Mac Retina Perf', 'chromium-rel-mac-retina', 'mac', 196 _AddTestSpec('Mac Retina Perf', 'chromium-rel-mac-retina', 'mac',
194 num_host_shards=5) 197 num_host_shards=5)
195 _AddTestSpec('Mac HDD Perf', 'chromium-rel-mac-hdd', 'mac', 198 _AddTestSpec('Mac HDD Perf', 'chromium-rel-mac-hdd', 'mac',
196 num_host_shards=5) 199 num_host_shards=5)
197 _AddIsolatedTestSpec('Mac Pro 10.11 Perf', 'chromium-rel-mac11-pro', 'mac') 200 _AddIsolatedTestSpec('Mac Pro 10.11 Perf', 'chromium-rel-mac11-pro', 'mac')
198 _AddIsolatedTestSpec('Mac Air 10.11 Perf', 'chromium-rel-mac11-air', 'mac') 201 _AddIsolatedTestSpec('Mac Air 10.11 Perf', 'chromium-rel-mac11-air', 'mac')
199 202
200 203
201 _AddTestSpec('Linux Perf', 'linux-release', 'linux', 204 _AddTestSpec('Linux Perf', 'linux-release', 'linux',
202 num_host_shards=5) 205 num_host_shards=5)
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipes/chromium.expected/full_chromium_perf_Android_Builder.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698