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"]) |