windows: disable parallelism on Windows

This is an attempt to figure out why the Windows CI keeps crashing. It
should be removed before the next release, by which point we should know
whether this has helped or not.
This commit is contained in:
Ayke van Laethem
2023-03-06 15:44:27 +01:00
committed by Ron Evans
parent 8babc47638
commit 192a55970f
+9
View File
@@ -1508,6 +1508,15 @@ func main() {
defer pprof.StopCPUProfile()
}
// Limit the number of threads to one.
// This is an attempted workaround for the crashes we're seeing in CI on
// Windows. If this change helps, it indicates there is a concurrency issue.
// If it doesn't, then there is something else going on. Either way, this
// should be removed once the test is done.
if runtime.GOOS == "windows" {
runtime.GOMAXPROCS(1)
}
switch command {
case "build":
pkgName := "."