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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/w3c/deps_updater.py

Issue 2248913003: In deps_updater.py: After updating, set commit and close on CQ failure. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add --rietveld to git cl upload and git cl set-commit. Created 4 years, 4 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: third_party/WebKit/Tools/Scripts/webkitpy/w3c/deps_updater.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/deps_updater.py b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/deps_updater.py
index 0d600f2cb4ac51f3c4cf9f99e7e8a7c80e56fbe8..1c62b4c3215616e01dfb7ddbf23d9511357544ac 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/deps_updater.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/deps_updater.py
@@ -82,9 +82,13 @@ class DepsUpdater(object):
self.print_('## Waiting for Try Job Results')
if self.has_failing_results():
self.write_test_expectations()
- else:
- self.print_('No Failures, committing patch.')
- self.run(['git', 'cl', 'land', '-f', '--auth-refresh-token-json', self.auth_refresh_token_json])
+ self.run(['git', 'cl', 'set-commit', '--rietveld',
+ '--auth-refresh-token-json', self.auth_refresh_token_json])
+ if self.has_failing_results():
+ self.print_('## CL has failing results when trying to land; aborting.')
+ self.run(['git', 'cl', 'set-close', '--auth-refresh-token-json', self.auth_refresh_token_json])
+ return 1
qyearsley 2016/08/16 22:35:59 Note, this CL should make it so that after trying
+ self.print_('## Auto-update complete.')
return 0
def parse_args(self, argv):
@@ -344,7 +348,7 @@ class DepsUpdater(object):
self.run([self.host.executable, script_path])
message = '\'Modifies TestExpectations and/or downloads new baselines for tests\''
self.check_run(['git', 'commit', '-a', '-m', message])
- self.check_run(['git', 'cl', 'upload', '-m', message,
+ self.check_run(['git', 'cl', 'upload', '-m', message, '--rietveld'
'--auth-refresh-token-json', self.auth_refresh_token_json])
def has_failing_results(self):
@@ -364,7 +368,7 @@ class DepsUpdater(object):
TBR=qyearsley@chromium.org"""
- command = ['git', 'cl', 'upload', '-f', '-m', message]
+ command = ['git', 'cl', 'upload', '-f', '-m', message, '--rietveld']
command += ['--cc=' + email for email in email_list]
if self.auth_refresh_token_json:
command += ['--auth-refresh-token-json', self.auth_refresh_token_json]
« 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