Skip to content

Commit baf8b21

Browse files
committed
dashboard, app/appengine: set a known issue for staticlockranking builder
The linux-amd64-staticlockranking builder was added pre-emptively so that it could be tested and used during the development of a CL that implements a new feature. It's expected to fail until that work is completed. Mark it as a builder with a known issue, golang/go#38029. The new BuildConfig.KnownIssue field can be used by builders being added in the future so that if they fail at first, it doesn't take away time for people looking at build.golang.org, which we always aim to have as green as possible¹. ¹ https://groups.google.com/d/msg/golang-dev/y0yM_Xi665Q/hUpBiUPiCAAJ Fixes golang/go#38283 For golang/go#38029 For golang/go#37937 For golang/go#11811 Change-Id: Iba1606c7021ffa7e67ddbaae2fc6b65f4e46ab34 Reviewed-on: https://go-review.googlesource.com/c/build/+/227379 Reviewed-by: Alexander Rakoczy <[email protected]>
1 parent bce80ac commit baf8b21

File tree

4 files changed

+32
-7
lines changed

4 files changed

+32
-7
lines changed

app/appengine/build.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,17 @@ func isUntested(builder, repo, branch, goBranch string) bool {
306306
return !bc.BuildsRepoPostSubmit(repo, branch, goBranch)
307307
}
308308

309+
// knownIssue returns a known issue for the named builder,
310+
// or zero if there isn't a known issue.
311+
func knownIssue(builder string) int {
312+
bc, ok := dashboard.Builders[builder]
313+
if !ok {
314+
// Unknown builder.
315+
return 0
316+
}
317+
return bc.KnownIssue
318+
}
319+
309320
// Results returns the build Results for this Commit.
310321
func (c *CommitInfo) Results() (results []*Result) {
311322
for _, r := range c.ResultData {

app/appengine/ui.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,7 @@ var tmplFuncs = template.FuncMap{
818818
"shortUser": shortUser,
819819
"unsupported": unsupported,
820820
"isUntested": isUntested,
821+
"knownIssue": knownIssue,
821822
"formatTime": formatTime,
822823
}
823824

app/appengine/ui.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ <h1>Go Dashboard</h1>
8484
<th></th>
8585
<th></th>
8686
{{range $.Builders}}
87-
<th class="result arch{{if (unsupported .)}} unsupported{{end}}" title="{{.}}">{{builderSubheading .}}</th>
87+
<th class="result arch{{if (unsupported .)}} unsupported{{end}}{{if knownIssue .}} noise{{end}}" title="{{.}}">{{builderSubheading .}}</th>
8888
{{end}}
8989
</tr>
9090

@@ -94,7 +94,7 @@ <h1>Go Dashboard</h1>
9494
<th></th>
9595
<th></th>
9696
{{range $.Builders}}
97-
<th class="result arch{{if (unsupported .)}} unsupported{{end}}" title="{{.}}">{{builderSubheading2 .}}</th>
97+
<th class="result arch{{if (unsupported .)}} unsupported{{end}}{{if knownIssue .}} noise{{end}}" title="{{.}}">{{builderSubheading2 .}}</th>
9898
{{end}}
9999
</tr>
100100

@@ -125,7 +125,9 @@ <h1>Go Dashboard</h1>
125125
{{if .BuildingURL}}
126126
<a href="{{.BuildingURL}}"><img src="https://golang.org/favicon.ico" height=16 width=16 border=0></a>
127127
{{else if .OK}}
128-
<span class="ok">ok</span>
128+
<span class="ok{{if knownIssue $builderName}} noise{{end}}">ok</span>
129+
{{else if knownIssue $builderName}}
130+
<a href="/log/{{.LogHash}}" class="noise" title="Builder {{$builderName}} has a known issue. See golang.org/issue/{{knownIssue $builderName}}.">fail</a>
129131
{{else}}
130132
<a href="/log/{{.LogHash}}" class="fail">fail</a>
131133
{{end}}

dashboard/builders.go

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ func init() {
685685
}
686686

687687
// A HostConfig describes the available ways to obtain buildlets of
688-
// different types. Some host configs can server multiple
688+
// different types. Some host configs can serve multiple
689689
// builders. For example, a host config of "host-linux-jessie" can
690690
// serve linux-amd64, linux-amd64-race, linux-386, linux-386-387, etc.
691691
type HostConfig struct {
@@ -748,6 +748,16 @@ type BuildConfig struct {
748748
// For example, "host-linux-jessie".
749749
HostType string
750750

751+
// KnownIssue is a non-zero golang.org/issue/nnn number for a builder
752+
// that is known to be failing for some reason, such as because it is
753+
// a new builder still in development/testing, or because the feature
754+
// or port that it's meant to test hasn't been added yet, etc.
755+
//
756+
// A non-zero value here means that failures on this builder should not
757+
// be considered a serious regression and don't need investigation beyond
758+
// what is already in scope of the listed issue.
759+
KnownIssue int
760+
751761
Notes string // notes for humans
752762

753763
// tryBot optionally specifies a policy func for whether trybots are enabled.
@@ -1599,9 +1609,10 @@ func init() {
15991609
},
16001610
})
16011611
addBuilder(BuildConfig{
1602-
Name: "linux-amd64-staticlockranking",
1603-
HostType: "host-linux-stretch",
1604-
Notes: "builder with GOEXPERIMENT=staticlockranking, see golang.org/issue/37937",
1612+
Name: "linux-amd64-staticlockranking",
1613+
HostType: "host-linux-stretch",
1614+
Notes: "builder with GOEXPERIMENT=staticlockranking, see golang.org/issue/38029",
1615+
KnownIssue: 38029,
16051616
buildsRepo: func(repo, branch, goBranch string) bool {
16061617
return repo == "go" && atLeastGo1(goBranch, 15)
16071618
},

0 commit comments

Comments
 (0)