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

Side by Side Diff: trunk/tools/submit_try

Issue 23120002: Remove base-* directories from gm expected/actual paths; just use platform names (Closed) Base URL: http://skia.googlecode.com/svn/
Patch Set: apply_comments_from_patchset5 Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 7
8 """ 8 """
9 submit_try: Submit a try request. 9 submit_try: Submit a try request.
10 10
11 This is a thin wrapper around the try request utilities in depot_tools which 11 This is a thin wrapper around the try request utilities in depot_tools which
12 adds some validation and supports both git and svn. 12 adds some validation and supports both git and svn.
13 """ 13 """
14 14
15 15
16 import httplib 16 import httplib
17 import json 17 import json
18 import os 18 import os
19 import re 19 import re
20 import subprocess 20 import subprocess
21 import svn 21 import svn
22 import sys 22 import sys
23 23
24 24 import buildbot_globals
25 GLOBAL_VARIABLES = json.loads(svn.Cat('http://skia.googlecode.com/svn/'
26 'buildbot/site_config/'
27 'global_variables.json'))
28
29
30 def GetGlobalVariable(var_name):
31 return GLOBAL_VARIABLES[var_name]['value']
32 25
33 26
34 # Alias which can be used to run a try on every builder. 27 # Alias which can be used to run a try on every builder.
35 ALL_BUILDERS = 'all' 28 ALL_BUILDERS = 'all'
36 # Alias which can be used to run a try on all compile builders. 29 # Alias which can be used to run a try on all compile builders.
37 COMPILE_BUILDERS = 'compile' 30 COMPILE_BUILDERS = 'compile'
38 # Alias which can be used to run a try on all builders that are run in the CQ. 31 # Alias which can be used to run a try on all builders that are run in the CQ.
39 CQ_BUILDERS = 'cq' 32 CQ_BUILDERS = 'cq'
40 # Alias which can be used to specify a regex to choose builders. 33 # Alias which can be used to specify a regex to choose builders.
41 REGEX = 'regex' 34 REGEX = 'regex'
42 35
43 ALL_ALIASES = [ALL_BUILDERS, COMPILE_BUILDERS, CQ_BUILDERS, REGEX] 36 ALL_ALIASES = [ALL_BUILDERS, COMPILE_BUILDERS, CQ_BUILDERS, REGEX]
44 37
45 # Contact information for the build master. 38 # Contact information for the build master.
46 SKIA_BUILD_MASTER_HOST = str(GetGlobalVariable('master_host')) 39 SKIA_BUILD_MASTER_HOST = str(buildbot_globals.Get('master_host'))
47 SKIA_BUILD_MASTER_PORT = str(GetGlobalVariable('external_port')) 40 SKIA_BUILD_MASTER_PORT = str(buildbot_globals.Get('external_port'))
48 41
49 # All try builders have this suffix. 42 # All try builders have this suffix.
50 TRYBOT_SUFFIX = '-Trybot' 43 TRYBOT_SUFFIX = '-Trybot'
51 44
52 # Location of the codereview.settings file in the Skia repo. 45 # Location of the codereview.settings file in the Skia repo.
53 SKIA_URL = 'skia.googlecode.com' 46 SKIA_URL = 'skia.googlecode.com'
54 CODEREVIEW_SETTINGS = '/svn/codereview.settings' 47 CODEREVIEW_SETTINGS = '/svn/codereview.settings'
55 48
56 # String for matching the svn url of the try server inside codereview.settings. 49 # String for matching the svn url of the try server inside codereview.settings.
57 TRYSERVER_SVN_URL = 'TRYSERVER_SVN_URL: ' 50 TRYSERVER_SVN_URL = 'TRYSERVER_SVN_URL: '
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 291
299 # Parse and validate the command-line arguments. 292 # Parse and validate the command-line arguments.
300 args = ValidateArgs(sys.argv[1:], trybots=trybots, is_svn=is_svn) 293 args = ValidateArgs(sys.argv[1:], trybots=trybots, is_svn=is_svn)
301 294
302 # Submit the try request. 295 # Submit the try request.
303 SubmitTryRequest(args, is_svn=is_svn) 296 SubmitTryRequest(args, is_svn=is_svn)
304 297
305 298
306 if __name__ == '__main__': 299 if __name__ == '__main__':
307 sys.exit(main()) 300 sys.exit(main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698