Skip to content

Commit 1b56216

Browse files
committed
dashboard: disable api/reboot test for unmatched
It takes >15m to complete api and reboot tests for Hifive unmatched which we don't need. Change-Id: Ie4535264d2e8ef4496c54fb5f412d5ec773f538a Reviewed-on: https://go-review.googlesource.com/c/build/+/346709 Trust: Meng Zhuo <mzh@golangcn.org> Run-TryBot: Meng Zhuo <mzh@golangcn.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Go Bot <gobot@golang.org>
1 parent 6d7e13e commit 1b56216

File tree

1 file changed

+20
-28
lines changed

1 file changed

+20
-28
lines changed

dashboard/builders.go

+20-28
Original file line numberDiff line numberDiff line change
@@ -2471,17 +2471,11 @@ func init() {
24712471
},
24722472
})
24732473
addBuilder(BuildConfig{
2474-
HostType: "host-linux-riscv64-joelsing",
2475-
Name: "linux-riscv64-jsing",
2476-
SkipSnapshot: true,
2477-
env: []string{"GO_TEST_TIMEOUT_SCALE=4"},
2478-
distTestAdjust: func(run bool, distTest string, isNormalTry bool) bool {
2479-
switch distTest {
2480-
case "api", "reboot":
2481-
return false
2482-
}
2483-
return run
2484-
},
2474+
HostType: "host-linux-riscv64-joelsing",
2475+
Name: "linux-riscv64-jsing",
2476+
SkipSnapshot: true,
2477+
env: []string{"GO_TEST_TIMEOUT_SCALE=4"},
2478+
distTestAdjust: riscvDistTestPolicy,
24852479
buildsRepo: func(repo, branch, goBranch string) bool {
24862480
switch repo {
24872481
case "go", "net", "sys":
@@ -2492,17 +2486,11 @@ func init() {
24922486
},
24932487
})
24942488
addBuilder(BuildConfig{
2495-
HostType: "host-linux-riscv64-unleashed",
2496-
Name: "linux-riscv64-unleashed",
2497-
SkipSnapshot: true,
2498-
env: []string{"GO_TEST_TIMEOUT_SCALE=4"},
2499-
distTestAdjust: func(run bool, distTest string, isNormalTry bool) bool {
2500-
switch distTest {
2501-
case "api", "reboot":
2502-
return false
2503-
}
2504-
return run
2505-
},
2489+
HostType: "host-linux-riscv64-unleashed",
2490+
Name: "linux-riscv64-unleashed",
2491+
SkipSnapshot: true,
2492+
env: []string{"GO_TEST_TIMEOUT_SCALE=4"},
2493+
distTestAdjust: riscvDistTestPolicy,
25062494
buildsRepo: func(repo, branch, goBranch string) bool {
25072495
switch repo {
25082496
case "go", "net", "sys":
@@ -2513,12 +2501,13 @@ func init() {
25132501
},
25142502
})
25152503
addBuilder(BuildConfig{
2516-
HostType: "host-linux-riscv64-unmatched",
2517-
Name: "linux-riscv64-unmatched",
2518-
env: []string{"GO_TEST_TIMEOUT_SCALE=4"},
2519-
FlakyNet: true,
2520-
SkipSnapshot: true, // The builder has a slow uplink bandwidth.
2521-
buildsRepo: onlyMasterDefault,
2504+
HostType: "host-linux-riscv64-unmatched",
2505+
Name: "linux-riscv64-unmatched",
2506+
env: []string{"GO_TEST_TIMEOUT_SCALE=4"},
2507+
FlakyNet: true,
2508+
SkipSnapshot: true, // The builder has a slow uplink bandwidth.
2509+
buildsRepo: onlyMasterDefault,
2510+
distTestAdjust: riscvDistTestPolicy,
25222511
})
25232512
addBuilder(BuildConfig{
25242513
Name: "linux-s390x-ibm",
@@ -2755,6 +2744,9 @@ func mipsBuildsRepoPolicy(repo, branch, goBranch string) bool {
27552744
}
27562745
}
27572746

2747+
// riscvDistTestPolicy is same as mipsDistTestPolicy for now.
2748+
var riscvDistTestPolicy = mipsDistTestPolicy
2749+
27582750
// TryBuildersForProject returns the builders that should run as part of
27592751
// a TryBot set for the given project.
27602752
// The project argument is of the form "go", "net", "sys", etc.

0 commit comments

Comments
 (0)