Skip to content

Commit

Permalink
cmd/releasebot, cmd/release: add 2 more longtest test-only targets
Browse files Browse the repository at this point in the history
Add support for a linux-386-longtest test-only target. This is the
third longtest builder that we have.

Both linux-{386,amd64}-longtest targets are passing on master
for future Go 1.17 releases, as well as release-branch.go1.16
and release-branch.go1.15 now that CL 288818 is cherry-picked
(see backport issues golang/go#45240 and golang/go#45239).

Start including them in the release process by default, so that we
have more automated test coverage and more information available
during the upcoming releases, and in turn can use it to improve
the releases and the release process further.

Fixes golang/go#29252.

Change-Id: I9740c9ce5cae73a3ed9fe320219f1044f5fdcc9a
Reviewed-on: https://go-review.googlesource.com/c/build/+/304949
Trust: Dmitri Shuralyov <[email protected]>
Reviewed-by: Alexander Rakoczy <[email protected]>
Reviewed-by: Carlos Amedee <[email protected]>
  • Loading branch information
dmitshur committed Mar 29, 2021
1 parent ca461c2 commit 305e1e3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
5 changes: 5 additions & 0 deletions cmd/release/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,11 @@ var builds = []*Build{
},

// Test-only builds.
{
Builder: "linux-386-longtest",
OS: "linux", Arch: "386",
TestOnly: true,
},
{
Builder: "linux-amd64-longtest",
OS: "linux", Arch: "amd64",
Expand Down
3 changes: 2 additions & 1 deletion cmd/releasebot/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ var releaseTargets = []Target{
{Name: "linux-ppc64le"},

// Test-only targets.
{Name: "linux-386-longtest", TestOnly: true},
{Name: "linux-amd64-longtest", TestOnly: true},
{Name: "windows-amd64-longtest", TestOnly: true},
}
Expand All @@ -75,7 +76,7 @@ func usage() {
}

var (
skipTestFlag = flag.String("skip-test", "linux-amd64-longtest", "space-separated list of test-only targets to skip (only use if sufficient testing was done elsewhere)")
skipTestFlag = flag.String("skip-test", "", "space-separated list of test-only targets to skip (only use if sufficient testing was done elsewhere)")
)

var (
Expand Down
9 changes: 7 additions & 2 deletions cmd/releasebot/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ func TestTargetSelectionPerGoVersion(t *testing.T) {
want []string // Expected release targets.
}{
{
goVer: []string{"go1.16beta1", "go1.16rc1", "go1.16", "go1.16.1"},
goVer: []string{
"go1.17beta1", "go1.17rc1", "go1.17", "go1.17.1",
"go1.16.3",
},
want: []string{
"src",
"linux-386",
Expand All @@ -38,12 +41,13 @@ func TestTargetSelectionPerGoVersion(t *testing.T) {
"darwin-arm64", // New to Go 1.16.
"linux-s390x",
"linux-ppc64le",
"linux-386-longtest",
"linux-amd64-longtest",
"windows-amd64-longtest",
},
},
{
goVer: []string{"go1.15.7", "go1.14.14"},
goVer: []string{"go1.15.11"},
want: []string{
"src",
"linux-386",
Expand All @@ -57,6 +61,7 @@ func TestTargetSelectionPerGoVersion(t *testing.T) {
"darwin-amd64",
"linux-s390x",
"linux-ppc64le",
"linux-386-longtest",
"linux-amd64-longtest",
"windows-amd64-longtest",
},
Expand Down

0 comments on commit 305e1e3

Please sign in to comment.