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

Unified Diff: appengine/cmd/milo/resp/build.go

Issue 2141013003: milo: fix build/step timing (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: retrain Created 4 years, 5 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 | « appengine/cmd/milo/logdog/logDogBuild.go ('k') | appengine/cmd/milo/settings/funcs_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/cmd/milo/resp/build.go
diff --git a/appengine/cmd/milo/resp/build.go b/appengine/cmd/milo/resp/build.go
index 8eac13ae5557362e3441a10f492149523aefd632..75e4c7f464a274f27d6ed5042bcdced8b09a087f 100644
--- a/appengine/cmd/milo/resp/build.go
+++ b/appengine/cmd/milo/resp/build.go
@@ -139,6 +139,16 @@ const (
WaitingDependency // 100 Brown
)
+// Terminal returns true if the step status won't change.
+func (s Status) Terminal() bool {
+ switch s {
+ case Success, Failure, InfraFailure, Warning, DependencyFailure:
+ return true
+ default:
+ return false
+ }
+}
+
// MarshalJSON renders enums into String rather than an int when marshalling.
func (s Status) MarshalJSON() ([]byte, error) {
return json.Marshal(s.String())
« no previous file with comments | « appengine/cmd/milo/logdog/logDogBuild.go ('k') | appengine/cmd/milo/settings/funcs_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698