cmd/watchflakes: ignore builders with known issue Builders with a known issue are in development and are not fully functioning. They may encounter a lot of failures. Skip them. Change-Id: Ia89c86975165a05a1f2a0a382d09c86c0ba6d356 Reviewed-on: https://go-review.googlesource.com/c/build/+/602576 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
diff --git a/cmd/watchflakes/luci.go b/cmd/watchflakes/luci.go index d358627..d56ed48 100644 --- a/cmd/watchflakes/luci.go +++ b/cmd/watchflakes/luci.go
@@ -194,7 +194,13 @@ } for _, b := range resp.GetBuilders() { var p BuilderConfigProperties - json.Unmarshal([]byte(b.GetConfig().GetProperties()), &p) + err := json.Unmarshal([]byte(b.GetConfig().GetProperties()), &p) + if err != nil { + return nil, err + } + if p.KnownIssue != 0 { + continue + } if all || (p.Repo == repo && p.GoBranch == goBranch) { builders = append(builders, Builder{b.GetId().GetBuilder(), &p}) }