From: Matthew Dempsky Date: Thu, 2 Sep 2021 19:14:47 +0000 (-0700) Subject: test: only test -G=3 by default X-Git-Tag: go1.18beta1~1495 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=58244eee01e58c383f501207afd9cb90ec060602;p=gostls13.git test: only test -G=3 by default -G=0 is in maintenance mode, so limit testing it to the longtest builders. Change-Id: Ie8a01866b506183d0201f2a3730377cfa663da80 Reviewed-on: https://go-review.googlesource.com/c/go/+/347298 Trust: Matthew Dempsky Run-TryBot: Matthew Dempsky Reviewed-by: Cherry Mui TryBot-Result: Go Bot --- diff --git a/test/run.go b/test/run.go index ddce94d7cc..76621d9242 100644 --- a/test/run.go +++ b/test/run.go @@ -85,12 +85,12 @@ var unifiedEnabled, defaultGLevels = func() (bool, string) { // won't need to disable tests for it anymore anyway. enabled := strings.Contains(","+env.GOEXPERIMENT+",", ",unified,") - // Normal test runs should test with both -G=0 and -G=3 for types2 - // coverage. But the unified experiment always uses types2, so - // testing with -G=3 is redundant. - glevels := "0,3" - if enabled { - glevels = "0" + // Test both -G=0 and -G=3 on the longtest builders, to make sure we + // don't accidentally break -G=0 mode until we're ready to remove it + // completely. But elsewhere, testing -G=3 alone should be enough. + glevels := "3" + if strings.Contains(os.Getenv("GO_BUILDER_NAME"), "longtest") { + glevels = "0,3" } return enabled, glevels