Disable jobs sent directly to triggered bots
- and display a warning message
BUG=146713
Review URL: https://chromiumcodereview.appspot.com/10956062
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@158377 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/git_cl.py b/git_cl.py
index f884eaa..6c7afe4 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -1591,6 +1591,14 @@
(b, forced_tests) for b, t in builders_and_tests.iteritems()
if t != ['compile'])
+ if any('triggered' in b for b in builders_and_tests):
+ print >> sys.stderr, (
+ 'ERROR You are trying to send a job to a triggered bot. This type of'
+ ' bot requires an\ninitial job from a parent (usually a builder). '
+ 'Instead send your job to the parent.\n'
+ 'Bot list: %s' % builders_and_tests)
+ return 1
+
patchset = cl.GetPatchset()
if not cl.GetPatchset():
patchset = cl.GetMostRecentPatchset(cl.GetIssue())