From 4e8e36c74550e6229db9de0a6da95e3f7a96639a Mon Sep 17 00:00:00 2001 From: Mirko Bonadei Date: Wed, 24 Nov 2021 12:55:44 +0100 Subject: [PATCH] Try to fix the version updated bot. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit No-Presubmit: True Bug: webrtc:13373 Change-Id: I30418f760cda6be31c75ff7e59311cb59c1874c9 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/238805 Commit-Queue: Mirko Bonadei Reviewed-by: Björn Terelius Cr-Commit-Position: refs/heads/main@{#35415} --- tools_webrtc/version_updater/update_version.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools_webrtc/version_updater/update_version.py b/tools_webrtc/version_updater/update_version.py index 8674f3643a..6cefb3f9c6 100644 --- a/tools_webrtc/version_updater/update_version.py +++ b/tools_webrtc/version_updater/update_version.py @@ -29,6 +29,8 @@ def FindSrcDirPath(): UPDATE_BRANCH_NAME = 'webrtc_version_update' CHECKOUT_SRC_DIR = FindSrcDirPath() +NOTIFY_EMAIL = 'mbonadei@webrtc.org' + def _RemovePreviousUpdateBranch(): active_branch, branches = _GetBranches() @@ -126,11 +128,12 @@ def _UploadCL(commit_queue_mode): - 0: Skip CQ, upload only. """ cmd = ['git', 'cl', 'upload', '--force', '--bypass-hooks', - '--cc=""', '--bypass-watchlist'] + '--bypass-watchlist'] if commit_queue_mode >= 2: logging.info('Sending the CL to the CQ...') cmd.extend(['-o', 'label=Bot-Commit+1']) cmd.extend(['-o', 'label=Commit-Queue+2']) + cmd.extend(['--send-mail', '--cc', NOTIFY_EMAIL]) elif commit_queue_mode >= 1: logging.info('Starting CQ dry run...') cmd.extend(['-o', 'label=Commit-Queue+1'])