Skip to content

Commit 7c17a67

Browse files
fjlkaralabe
authored andcommitted
[release/1.4.14] build: limit test concurrency
TravisCI and AppVeyor run the tests in very slow VMs. Some of our tests can't cope with that. Running less tests in parallel should make them somewhat less flakey. (cherry picked from commit b0a6b97)
1 parent 25205d6 commit 7c17a67

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build/ci.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,9 @@ func doTest(cmdline []string) {
227227

228228
// Run the actual tests.
229229
gotest := goTool("test")
230+
// Test a single package at a time. CI builders are slow
231+
// and some tests run into timeouts under load.
232+
gotest.Args = append(gotest.Args, "-p", "1")
230233
if *coverage {
231234
gotest.Args = append(gotest.Args, "-covermode=atomic", "-cover")
232235
}

0 commit comments

Comments
 (0)