Skip to content

Commit

Permalink
cmd/watchflakes: ignore builders with known issue
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Dmitri Shuralyov <[email protected]>
Reviewed-by: Dmitri Shuralyov <[email protected]>
  • Loading branch information
cherrymui committed Aug 2, 2024
1 parent a4d4fa3 commit c640e78
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmd/watchflakes/luci.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,13 @@ nextPage:
}
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})
}
Expand Down

0 comments on commit c640e78

Please sign in to comment.