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

Unified Diff: tools/release/auto_roll.py

Issue 1465413002: [release] Add monitoring state to auto-roller json output. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix state and add test Created 5 years, 1 month 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 | tools/release/common_includes.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/release/auto_roll.py
diff --git a/tools/release/auto_roll.py b/tools/release/auto_roll.py
index 16b80e840d501fcb85656be7f98f766cbe0fd0e3..a112df834f7bb7aadf5701ccab32c8dcc19f386e 100755
--- a/tools/release/auto_roll.py
+++ b/tools/release/auto_roll.py
@@ -24,6 +24,7 @@ class Preparation(Step):
MESSAGE = "Preparation."
def RunStep(self):
+ self['json_output']['monitoring_state'] = 'started'
Michael Hablich 2015/11/24 09:32:54 It seems the state is reported when the script is
Michael Achenbach 2015/11/24 10:08:35 That'd be the meaning behind started. I didn't wan
Michael Hablich 2015/11/24 10:30:55 How about making it more verbose: Set 'monitoring_
Michael Achenbach 2015/11/24 10:44:48 OK. Done. Not sure if that verbosity helps, but it
# Update v8 remote tracking branches.
self.GitFetchOrigin()
self.Git("fetch origin +refs/tags/*:refs/tags/*")
@@ -78,6 +79,7 @@ class DetectRevisionToRoll(Step):
else:
print("There is no newer v8 revision than the one in Chromium (%s)."
% self["last_roll"])
+ self['json_output']['monitoring_state'] = 'up_to_date'
Michael Hablich 2015/11/24 09:32:54 Why is this not a 'success'?
Michael Achenbach 2015/11/24 10:08:35 Because I wan't to be able to monitor this case di
Michael Hablich 2015/11/24 10:30:55 See above comment. Interpretation of each exit sta
return True
@@ -161,6 +163,7 @@ class CleanUp(Step):
MESSAGE = "Done!"
def RunStep(self):
+ self['json_output']['monitoring_state'] = 'success'
print("Congratulations, you have successfully rolled %s into "
"Chromium."
% self["roll"])
« no previous file with comments | « no previous file | tools/release/common_includes.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698