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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 rietveld_obj = cl.RpcServer() | 123 rietveld_obj = cl.RpcServer() |
124 issue = cl.issue | 124 issue = cl.issue |
125 original_description = rietveld_obj.get_description(issue) | 125 original_description = rietveld_obj.get_description(issue) |
126 if not benchmarks_modified or re.search( | 126 if not benchmarks_modified or re.search( |
127 r'^CQ_INCLUDE_TRYBOTS=.*', original_description, re.M | re.I): | 127 r'^CQ_INCLUDE_TRYBOTS=.*', original_description, re.M | re.I): |
128 return [] | 128 return [] |
129 | 129 |
130 results = [] | 130 results = [] |
131 bots = [ | 131 bots = [ |
132 'android_s5_perf_cq', | 132 'android_s5_perf_cq', |
| 133 'linux_perf_cq', |
133 'mac_retina_perf_cq', | 134 'mac_retina_perf_cq', |
134 # TODO(prasadv): Uncomment this once crbug.com/601699 is fixed. | 135 'winx64_10_perf_cq' |
135 # 'linux_perf_cq' | |
136 ] | 136 ] |
137 bots = ['master.tryserver.chromium.perf:%s' % s for s in bots] | 137 bots = ['master.tryserver.chromium.perf:%s' % s for s in bots] |
138 bots_string = ';'.join(bots) | 138 bots_string = ';'.join(bots) |
139 description = original_description | 139 description = original_description |
140 description += '\nCQ_INCLUDE_TRYBOTS=%s' % bots_string | 140 description += '\nCQ_INCLUDE_TRYBOTS=%s' % bots_string |
141 results.append(output_api.PresubmitNotifyResult( | 141 results.append(output_api.PresubmitNotifyResult( |
142 'Automatically added Perf trybots to run Telemetry benchmarks on CQ.')) | 142 'Automatically added Perf trybots to run Telemetry benchmarks on CQ.')) |
143 | 143 |
144 if description != original_description: | 144 if description != original_description: |
145 rietveld_obj.update_description(issue, description) | 145 rietveld_obj.update_description(issue, description) |
146 | 146 |
147 return results | 147 return results |
OLD | NEW |