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

Side by Side Diff: tools/submit_try

Issue 18190006: If a user requests a try on "all" builders, ask for confirmation (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 if len(argv) < 1: 198 if len(argv) < 1:
199 Error('You must specify a builder with "--bot".') 199 Error('You must specify a builder with "--bot".')
200 using_bots = [] 200 using_bots = []
201 while argv and not argv[0].startswith('-'): 201 while argv and not argv[0].startswith('-'):
202 for bot in argv.pop(0).split(','): 202 for bot in argv.pop(0).split(','):
203 if bot in ALL_ALIASES: 203 if bot in ALL_ALIASES:
204 if using_bots: 204 if using_bots:
205 Error('Cannot specify "%s" with additional builder names or ' 205 Error('Cannot specify "%s" with additional builder names or '
206 'aliases.' % bot) 206 'aliases.' % bot)
207 if bot == ALL_BUILDERS: 207 if bot == ALL_BUILDERS:
208 using_bots = trybots 208 are_you_sure = raw_input('Running a try on every bot is very '
209 'expensive. You may be able to get '
210 'enough information by running on a '
211 'smaller set of bots. Are you sure you '
212 'want to run your try job on all of the '
213 'trybots? [y,n]: ')
214 if are_you_sure == 'y':
215 using_bots = trybots
209 elif bot == COMPILE_BUILDERS: 216 elif bot == COMPILE_BUILDERS:
210 using_bots = [t for t in trybots if '_Compile_' in t] 217 using_bots = [t for t in trybots if t.startswith('Build')]
borenet 2013/07/09 20:36:11 Unfortunately, this didn't get changed after the b
211 elif bot == CQ_BUILDERS: 218 elif bot == CQ_BUILDERS:
212 using_bots = RetrieveTrybotList(json_filename='cqtrybots') 219 using_bots = RetrieveTrybotList(json_filename='cqtrybots')
213 elif bot == REGEX: 220 elif bot == REGEX:
214 while True: 221 while True:
215 regex = raw_input("Enter your trybot regex: ") 222 regex = raw_input("Enter your trybot regex: ")
216 p = re.compile(regex) 223 p = re.compile(regex)
217 using_bots = [t for t in trybots if p.match(t)] 224 using_bots = [t for t in trybots if p.match(t)]
218 print '\n\nTrybots that match your regex:\n%s\n\n' % '\n'.join( 225 print '\n\nTrybots that match your regex:\n%s\n\n' % '\n'.join(
219 using_bots) 226 using_bots)
220 if raw_input('Re-enter regex? [y,n]: ') == 'n': 227 if raw_input('Re-enter regex? [y,n]: ') == 'n':
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 298
292 # Parse and validate the command-line arguments. 299 # Parse and validate the command-line arguments.
293 args = ValidateArgs(sys.argv[1:], trybots=trybots, is_svn=is_svn) 300 args = ValidateArgs(sys.argv[1:], trybots=trybots, is_svn=is_svn)
294 301
295 # Submit the try request. 302 # Submit the try request.
296 SubmitTryRequest(args, is_svn=is_svn) 303 SubmitTryRequest(args, is_svn=is_svn)
297 304
298 305
299 if __name__ == '__main__': 306 if __name__ == '__main__':
300 sys.exit(main()) 307 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698