From b8400cbc364d6007a3019aa5a467e134f1946311 Mon Sep 17 00:00:00 2001 From: Sascha Grunert Date: Thu, 26 Aug 2021 16:53:13 +0200 Subject: [PATCH] Reduce the number of parallel typechecks to `2` The PR https://github.com/kubernetes/kubernetes/pull/104575 introduces some intermediate types which makes the 32GiB memory machine kill the typecheck process. To resolve that issue and make the test more robust, we now reduce the amount of parallel typechecks to run to `2`. Signed-off-by: Sascha Grunert --- test/typecheck/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/typecheck/main.go b/test/typecheck/main.go index bd02895b747..bb45c38647c 100644 --- a/test/typecheck/main.go +++ b/test/typecheck/main.go @@ -39,7 +39,7 @@ var ( timings = flag.Bool("time", false, "output times taken for each phase") defuses = flag.Bool("defuse", false, "output defs/uses") serial = flag.Bool("serial", false, "don't type check platforms in parallel (equivalent to --parallel=1)") - parallel = flag.Int("parallel", 3, "limits how many platforms can be checked in parallel. 0 means no limit.") + parallel = flag.Int("parallel", 2, "limits how many platforms can be checked in parallel. 0 means no limit.") skipTest = flag.Bool("skip-test", false, "don't type check test code") tags = flag.String("tags", "", "comma-separated list of build tags to apply in addition to go's defaults") ignoreDirs = flag.String("ignore-dirs", "", "comma-separated list of directories to ignore in addition to the default hardcoded list including staging, vendor, and hidden dirs")