From abb2aa20853d5589940076a582b44f2f98a775bb Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Wed, 7 Jan 2015 20:10:32 -0800 Subject: [PATCH] build: add GOTESTONLY environment test for Plan 9's run.rc $GOTESTONLY controls which set of tests gets run. Only "std" is supported. This should bring the time of plan9 builder down from 90 minutes to a maybe 10-15 minutes when running on GCE. (Plan 9 has performance problems when running on GCE, and/or with the os/exec package) This is a temporary workaround for one builder. The other Plan 9 builders will continue to do full builds. The plan9 buidler will be renamed plan9-386-gcepartial or something to indicate it's not running the 'test/*' directory, or API tests. Go on Plan 9 has bigger problems for now. This lets us get trybots going sooner including Plan 9, without waiting 90+ minutes. Update #9491 Change-Id: Ic505e9169c6b304ed4029b7bdfb77bb5c8fa8daa Reviewed-on: https://go-review.googlesource.com/2522 Reviewed-by: Rob Pike --- src/run.rc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/run.rc b/src/run.rc index 54286ac09d..8d2ce38a0e 100755 --- a/src/run.rc +++ b/src/run.rc @@ -32,6 +32,14 @@ echo '# Testing packages.' time go test std -short -timeout 240s echo +# Temporary GCE builder hack until Plan 9 on GCE is fast enough. +# See https://golang.org/issue/9491 +if(~ $GOTESTONLY std) { + echo + echo PARTIAL TESTS PASSED: std + exit +} + # We set GOMAXPROCS=2 in addition to -cpu=1,2,4 in order to test runtime bootstrap code, # creation of first goroutines and first garbage collections in the parallel setting. # TODO(bradfitz,0intro): make this not be 15 minutes once Plan 9 runs quickly on GCE. -- 2.50.0