Skip to content

Commit 5a8fb63

Browse files
committed
dashboard: include longtest builders for trybots on release branches
The goal of this test policy change is to decrease the chance of a Go repository release branch from getting into a state where some longtest post-submit builders are failing, as this will interfere with the ability to issue releases after golang/go#29252 is fixed. There are not that many CLs sent to release branches, so the extra latency caused by slower longtest builders being a part of trybots should not be very disruptive. For golang/go#37827. For golang/go#29252. Change-Id: I819b120bb7b763df4acf4583375cdb840793d323 Reviewed-on: https://go-review.googlesource.com/c/build/+/235338 Run-TryBot: Dmitri Shuralyov <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Alexander Rakoczy <[email protected]> Reviewed-by: Carlos Amedee <[email protected]>
1 parent 1475309 commit 5a8fb63

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

dashboard/builders.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,6 +1759,10 @@ func init() {
17591759
Name: "linux-amd64-longtest",
17601760
HostType: "host-linux-stretch-morecpu",
17611761
Notes: "Debian Stretch with go test -short=false",
1762+
tryBot: func(repo, branch, goBranch string) bool {
1763+
onReleaseBranch := strings.HasPrefix(branch, "release-branch.")
1764+
return repo == "go" && onReleaseBranch // See issue 37827.
1765+
},
17621766
buildsRepo: func(repo, branch, goBranch string) bool {
17631767
return repo == "go" || (branch == "master" && goBranch == "master")
17641768
},
@@ -1771,6 +1775,10 @@ func init() {
17711775
Name: "linux-386-longtest",
17721776
HostType: "host-linux-stretch-morecpu",
17731777
Notes: "Debian Stretch with go test -short=false; to get 32-bit coverage",
1778+
tryBot: func(repo, branch, goBranch string) bool {
1779+
onReleaseBranch := strings.HasPrefix(branch, "release-branch.")
1780+
return repo == "go" && onReleaseBranch // See issue 37827.
1781+
},
17741782
buildsRepo: func(repo, branch, goBranch string) bool {
17751783
if repo == "build" {
17761784
return false
@@ -2074,6 +2082,10 @@ func init() {
20742082
Name: "windows-amd64-longtest",
20752083
HostType: "host-windows-amd64-2016-big",
20762084
Notes: "Windows Server 2016 with go test -short=false",
2085+
tryBot: func(repo, branch, goBranch string) bool {
2086+
onReleaseBranch := strings.HasPrefix(branch, "release-branch.")
2087+
return repo == "go" && onReleaseBranch // See issue 37827.
2088+
},
20772089
buildsRepo: func(repo, branch, goBranch string) bool {
20782090
if !defaultPlusExpBuild(repo, branch, goBranch) {
20792091
return false

dashboard/builders_test.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,11 @@ func TestTrybots(t *testing.T) {
158158
"openbsd-amd64-64",
159159
"windows-386-2008",
160160
"windows-amd64-2016",
161+
162+
// Include longtest builders on Go repo release branches. See issue 37827.
163+
"linux-386-longtest",
164+
"linux-amd64-longtest",
165+
"windows-amd64-longtest",
161166
},
162167
},
163168
{
@@ -459,10 +464,10 @@ func TestBuilderConfig(t *testing.T) {
459464
// Long test.
460465
{b("linux-amd64-longtest", "go"), onlyPost},
461466
{b("linux-amd64-longtest", "net"), onlyPost},
462-
{b("[email protected]", "go"), onlyPost},
467+
{b("[email protected]", "go"), both},
463468
{b("[email protected]", "net"), none},
464469
{b("windows-amd64-longtest", "go"), onlyPost},
465-
{b("[email protected]", "go"), onlyPost},
470+
{b("[email protected]", "go"), both},
466471
{b("windows-amd64-longtest", "net"), onlyPost},
467472
{b("windows-amd64-longtest", "exp"), onlyPost},
468473
{b("windows-amd64-longtest", "mobile"), none},

0 commit comments

Comments
 (0)