OLD | NEW |
1 # Copyright 2012 The Chromium Authors. All rights reserved. | 1 # Copyright 2012 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 """Presubmit script for changes affecting tools/perf/. | 5 """Presubmit script for changes affecting tools/perf/. |
6 | 6 |
7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts | 7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts |
8 for more details about the presubmit API built into depot_tools. | 8 for more details about the presubmit API built into depot_tools. |
9 """ | 9 """ |
10 | 10 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 original_description = rietveld_obj.get_description(issue) | 116 original_description = rietveld_obj.get_description(issue) |
117 if not benchmarks_modified or re.search( | 117 if not benchmarks_modified or re.search( |
118 r'^CQ_EXTRA_TRYBOTS=.*', original_description, re.M | re.I): | 118 r'^CQ_EXTRA_TRYBOTS=.*', original_description, re.M | re.I): |
119 return [] | 119 return [] |
120 | 120 |
121 results = [] | 121 results = [] |
122 bots = [ | 122 bots = [ |
123 'linux_perf_bisect', | 123 'linux_perf_bisect', |
124 'mac_10_10_perf_bisect', | 124 'mac_10_10_perf_bisect', |
125 'win_perf_bisect', | 125 'win_perf_bisect', |
126 'android_nexus5_perf_bisect' | 126 # crbug.com/568661, Disable android bots for CQ due to scheduled lab move. |
| 127 # 'android_nexus5_perf_bisect' |
127 ] | 128 ] |
128 bots = ['tryserver.chromium.perf:%s' % s for s in bots] | 129 bots = ['tryserver.chromium.perf:%s' % s for s in bots] |
129 bots_string = ';'.join(bots) | 130 bots_string = ';'.join(bots) |
130 description = original_description | 131 description = original_description |
131 description += '\nCQ_EXTRA_TRYBOTS=%s' % bots_string | 132 description += '\nCQ_EXTRA_TRYBOTS=%s' % bots_string |
132 results.append(output_api.PresubmitNotifyResult( | 133 results.append(output_api.PresubmitNotifyResult( |
133 'Automatically added Perf trybots to run Telemetry benchmarks on CQ.')) | 134 'Automatically added Perf trybots to run Telemetry benchmarks on CQ.')) |
134 | 135 |
135 if description != original_description: | 136 if description != original_description: |
136 rietveld_obj.update_description(issue, description) | 137 rietveld_obj.update_description(issue, description) |
137 | 138 |
138 return results | 139 return results |
OLD | NEW |