Auto roller: send trooper notifications only when Commit-Queue+2.

Change-Id: I54e430a1386bf49a155a9e3a2680509f403ac07b
Bug: webrtc:11781
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/179092
Commit-Queue: Jeremy Leconte <jleconte@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#31713}
This commit is contained in:
Jeremy Leconte
2020-07-13 10:30:32 +02:00
committed by Commit Bot
parent 21621e9d08
commit 48190984fb

View File

@ -603,11 +603,11 @@ def _UploadCL(commit_queue_mode):
- 1: Run trybots but do not submit to CQ.
- 0: Skip CQ, upload only.
"""
cmd = ['git', 'cl', 'upload', '--force', '--bypass-hooks', '--send-mail']
cmd.extend(['--cc', NOTIFY_EMAIL])
cmd = ['git', 'cl', 'upload', '--force', '--bypass-hooks']
if commit_queue_mode >= 2:
logging.info('Sending the CL to the CQ...')
cmd.extend(['--use-commit-queue'])
cmd.extend(['--send-mail', '--cc', NOTIFY_EMAIL])
elif commit_queue_mode >= 1:
logging.info('Starting CQ dry run...')
cmd.extend(['--cq-dry-run'])