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

Unified Diff: git_cl.py

Issue 10956062: Disable jobs sent directly to triggered bots (Closed) Base URL: https://git.chromium.org/chromium/tools/depot_tools.git@master
Patch Set: Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | trychange.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git_cl.py
diff --git a/git_cl.py b/git_cl.py
index f884eaa6c655afe2b42d1c9ba67e49e8aca953fc..6c7afe48f50d4ce1a42dfdd338b2f05ce1b7f357 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -1591,6 +1591,14 @@ def CMDtry(parser, args):
(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())
« no previous file with comments | « no previous file | trychange.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698