dashboard: don't test the exp repo against release branches

Exp is experimental. It's hard enough keeping it passing on master.
We're not going to fight release branches as well. If somebody wants
to see test coverage against three versions of Go, they can graduate
their code out of experimental.

Change-Id: I4695ce479c47bd56a4a58dba05d367d3de020c58
Reviewed-on: https://go-review.googlesource.com/c/build/+/170518
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
This commit is contained in:
Brad Fitzpatrick 2019-04-03 04:45:29 +00:00
Родитель 032e9dbb96
Коммит 85a73d7451
2 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -1010,6 +1010,10 @@ func (c *BuildConfig) buildsRepoAtAll(repo, branch, goBranch string) bool {
if bmm.Less(c.MinimumGoVersion) {
return false
}
if repo == "exp" {
// Don't test exp against release branches; it's experimental.
return false
}
}
}

Просмотреть файл

@ -436,6 +436,11 @@ func TestBuilderConfig(t *testing.T) {
{b("darwin-386-10_11", "go"), onlyPost},
{b("darwin-386-10_11@go1.12", "go"), onlyPost},
{b("darwin-386-10_11@go1.11", "go"), onlyPost},
// exp is experimental; it only tests against master.
{b("linux-amd64", "exp"), both},
{b("linux-amd64@go1.11", "exp"), none},
{b("linux-amd64@go1.12", "exp"), none},
}
for _, tt := range tests {
t.Run(tt.br.testName, func(t *testing.T) {