If a user requests a try on "all" builders, ask for confirmation
Addresses https://code.google.com/p/skia/issues/detail?id=1208
(SkipBuildbotRuns)
R=epoger@google.com
Review URL: https://codereview.chromium.org/18190006
git-svn-id: http://skia.googlecode.com/svn/trunk@10049 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tools/submit_try b/tools/submit_try
index 4f4fd6e..d135675 100755
--- a/tools/submit_try
+++ b/tools/submit_try
@@ -205,9 +205,16 @@
Error('Cannot specify "%s" with additional builder names or '
'aliases.' % bot)
if bot == ALL_BUILDERS:
- using_bots = trybots
+ are_you_sure = raw_input('Running a try on every bot is very '
+ 'expensive. You may be able to get '
+ 'enough information by running on a '
+ 'smaller set of bots. Are you sure you '
+ 'want to run your try job on all of the '
+ 'trybots? [y,n]: ')
+ if are_you_sure == 'y':
+ using_bots = trybots
elif bot == COMPILE_BUILDERS:
- using_bots = [t for t in trybots if '_Compile_' in t]
+ using_bots = [t for t in trybots if t.startswith('Build')]
elif bot == CQ_BUILDERS:
using_bots = RetrieveTrybotList(json_filename='cqtrybots')
elif bot == REGEX: