vole
Site
Clone
Read only, no credentials:
https://rodent.software/vole.git
Write over SSH with a registered key:
git clone ssh://git@rodent.software/vole.git
Self-hosted forge that lives in your Git repo.
Run the race suite sixteen tests at a time
e1b843a49799db2ec74f67a6066ab26c34c468e9 · Keenan Nemetz · 9d ago · parent 484548cd
Run the race suite sixteen tests at a time `go test` defaults `-parallel` to GOMAXPROCS, which on a small runner means two tests at a time. These integration tests spend nearly all their time waiting on git, ssh and runner subprocesses, so on a two-core machine under -race the server package takes 140 s that way and 60 s with sixteen in flight. Sixteen is also the number the tests were written for: the parallel-warning comment in the package names it as the rate that keeps the suite finishing in the time it takes one test to spawn its children. Closes: none, part of #371
.vole/workflows/verify.yaml +6−1
| @@ -109,6 +109,11 @@ jobs: | |||
| 109 | 109 | # The race runtime needs cgo even though the code under test does not; the | |
| 110 | 110 | # image sets CGO_ENABLED=0 for every other step, so it is turned back on | |
| 111 | 111 | # here. Nothing is linked from the system but the race runtime itself. | |
| 112 | # | ||
| 113 | # The integration tests spend their time waiting on git, ssh and the runner's | ||
| 114 | # subprocesses, not on CPU, so more of them at once than the runner has cores | ||
| 115 | # finishes sooner: on a two-core machine under -race, the server package takes | ||
| 116 | # 140 s at the default two in parallel and 60 s at sixteen. | ||
| 112 | 117 | - name: test | |
| 113 | run: CGO_ENABLED=1 go test -race -count=1 ./... | ||
| 118 | run: CGO_ENABLED=1 go test -race -count=1 -parallel 16 ./... | ||
| 114 | 119 | timeout: 30m | |