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

Unified Diff: PRESUBMIT.py

Issue 1020973003: Make git cl try work in light of the new CQ config.json format (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 5 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PRESUBMIT.py
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index d8f4fd154d87a5a6f2abae5f045456853957f6d3..3c76e2b5a65edc967f6dbf9376208349724cd535 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -1749,9 +1749,11 @@ def GetPreferredTryMasters(project, change):
with open(os.path.join(
change.RepositoryRoot(), 'testing', 'commit_queue', 'config.json')) as f:
cq_config = json.load(f)
- cq_trybots = cq_config.get('trybots', {})
- builders = cq_trybots.get('launched', {})
- for master, master_config in cq_trybots.get('triggered', {}).iteritems():
+ cq_verifiers = cq_config.get('verifiers_no_patch', {})
+ cq_try_jobs = cq_verifiers.get('try_job_verifier', {})
+ builders = cq_try_jobs.get('launched', {})
+
+ for master, master_config in cq_try_jobs.get('triggered', {}).iteritems():
for triggered_bot in master_config:
builders.get(master, {}).pop(triggered_bot, None)
« 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