From 487ea26cffa0d91d5b666511bb06b06c502c3c1b Mon Sep 17 00:00:00 2001 From: Cody Oss Date: Thu, 8 Feb 2024 16:46:29 -0600 Subject: [PATCH] chore: update CI to turn gowork setting off for build/test Fixes: #9170 --- bigtable/conformance_test.sh | 2 +- internal/kokoro/continuous.sh | 2 +- internal/kokoro/presubmit.sh | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bigtable/conformance_test.sh b/bigtable/conformance_test.sh index 510e291d9bad..35a126e2f94d 100755 --- a/bigtable/conformance_test.sh +++ b/bigtable/conformance_test.sh @@ -32,7 +32,7 @@ conformanceTestsHome=$rootDir/cloud-bigtable-clients-test/tests sponge_log=$clientLibHome/sponge_log.log cd $testProxyHome -go build +GOWORK=off go build nohup $testProxyHome/testproxy --port $testProxyPort & proxyPID=$! diff --git a/internal/kokoro/continuous.sh b/internal/kokoro/continuous.sh index f43b286dc6bb..8061452434be 100755 --- a/internal/kokoro/continuous.sh +++ b/internal/kokoro/continuous.sh @@ -98,7 +98,7 @@ runDirectoryTests() { # internal tools only expected to work with latest go version return fi - go test -race -v -timeout 45m "${1:-./...}" 2>&1 | + GOWORK=off go test -race -v -timeout 45m "${1:-./...}" 2>&1 | tee sponge_log.log # Takes the kokoro output log (raw stdout) and creates a machine-parseable # xUnit XML file. diff --git a/internal/kokoro/presubmit.sh b/internal/kokoro/presubmit.sh index 5b15fec68421..f86ebe7deb78 100755 --- a/internal/kokoro/presubmit.sh +++ b/internal/kokoro/presubmit.sh @@ -54,10 +54,10 @@ runPresubmitTests() { fi if [ -z ${RUN_INTEGRATION_TESTS} ]; then - go test -race -v -timeout 15m -short ./... 2>&1 | + GOWORK=off go test -race -v -timeout 15m -short ./... 2>&1 | tee sponge_log.log else - go test -race -v -timeout 45m ./... 2>&1 | + GOWORK=off go test -race -v -timeout 45m ./... 2>&1 | tee sponge_log.log fi @@ -72,7 +72,7 @@ runPresubmitTests() { # Add the exit codes together so we exit non-zero if any module fails. exit_code=$(($exit_code + $?)) if [[ $PWD != *"/internal/"* ]]; then - go build ./... + GOWORK=off go build ./... fi exit_code=$(($exit_code + $?)) }