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

Side by Side Diff: third_party/WebKit/Source/modules/webgl/PRESUBMIT.py

Issue 2148053002: PRESUBMIT: use "master." prefix in CQ_INCLUDE_TRYBOTS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « sandbox/win/PRESUBMIT.py ('k') | tools/perf/PRESUBMIT.py » ('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 (c) 2016 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2016 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 """Top-level presubmit script for gpu. 5 """Top-level presubmit script for gpu.
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
11 11
12 import re 12 import re
13 13
14 14
15 def PostUploadHook(cl, change, output_api): 15 def PostUploadHook(cl, change, output_api):
16 """git cl upload will call this hook after the issue is created/modified. 16 """git cl upload will call this hook after the issue is created/modified.
17 17
18 This hook adds extra try bots list to the CL description in order to run 18 This hook adds extra try bots list to the CL description in order to run
19 extra GPU tests in addition to CQ try bots. 19 extra GPU tests in addition to CQ try bots.
20 """ 20 """
21 rietveld_obj = cl.RpcServer() 21 rietveld_obj = cl.RpcServer()
22 issue = cl.issue 22 issue = cl.issue
23 description = rietveld_obj.get_description(issue) 23 description = rietveld_obj.get_description(issue)
24 if re.search(r'^CQ_INCLUDE_TRYBOTS=.*', description, re.M | re.I): 24 if re.search(r'^CQ_INCLUDE_TRYBOTS=.*', description, re.M | re.I):
25 return [] 25 return []
26 26
27 bots = [ 27 bots = [
28 'tryserver.chromium.win:win_optional_gpu_tests_rel', 28 'master.tryserver.chromium.win:win_optional_gpu_tests_rel',
29 'tryserver.chromium.mac:mac_optional_gpu_tests_rel', 29 'master.tryserver.chromium.mac:mac_optional_gpu_tests_rel',
30 ] 30 ]
31 31
32 results = [] 32 results = []
33 new_description = description 33 new_description = description
34 new_description += '\nCQ_INCLUDE_TRYBOTS=%s' % ';'.join(bots) 34 new_description += '\nCQ_INCLUDE_TRYBOTS=%s' % ';'.join(bots)
35 results.append(output_api.PresubmitNotifyResult( 35 results.append(output_api.PresubmitNotifyResult(
36 'Automatically added optional GPU tests to run on CQ.')) 36 'Automatically added optional GPU tests to run on CQ.'))
37 37
38 if new_description != description: 38 if new_description != description:
39 rietveld_obj.update_description(issue, new_description) 39 rietveld_obj.update_description(issue, new_description)
40 40
41 return results 41 return results
OLDNEW
« no previous file with comments | « sandbox/win/PRESUBMIT.py ('k') | tools/perf/PRESUBMIT.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698