llvm_tools: Stop marking CL as WIP
WIP CLs are not handled by gwsq to find oncall reviewer.
We already pass "--ne" so the emails are not sent out for
anyone monitoring this repo which is probably enough.
BUG=chromium:1067029
TEST=unit tests, gswq assigned reviewer in CL:2146298
Change-Id: I962d6201482a5ba9bc3a0db2ba6db4fc4f0841de
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2148000
Tested-by: Manoj Gupta <manojgupta@chromium.org>
Reviewed-by: George Burgess <gbiv@chromium.org>
diff --git a/llvm_tools/update_chromeos_llvm_hash.py b/llvm_tools/update_chromeos_llvm_hash.py
index c44e8e1..4f6e993 100755
--- a/llvm_tools/update_chromeos_llvm_hash.py
+++ b/llvm_tools/update_chromeos_llvm_hash.py
@@ -527,20 +527,19 @@
commit_cmd, cwd=path_to_repo_dir, verbose=verbose)
# Upload the changes for review.
- upload_change_cmd = (
- 'yes | repo upload --wip --ne --br=%s --no-verify' % branch)
+ # Use --ne to avoid sending email notifications.
+ upload_change_cmd = [
+ 'repo', 'upload', '--yes', '--ne', '--no-verify',
+ '--br=%s' % branch
+ ]
# Pylint currently doesn't lint things in py3 mode, and py2 didn't allow
# users to specify `encoding`s for Popen. Hence, pylint is "wrong" here.
# pylint: disable=unexpected-keyword-arg
-
- # NOTE: Need `shell=True` in order to pipe `yes` into `repo upload ...`.
- #
# The CL URL is sent to 'stderr', so need to redirect 'stderr' to 'stdout'.
upload_changes_obj = subprocess.Popen(
upload_change_cmd,
cwd=path_to_repo_dir,
- shell=True,
encoding='UTF-8',
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)