Skip to content

Commit

Permalink
chore: update CI to turn gowork setting off for build/test (#9396)
Browse files Browse the repository at this point in the history
Fixes: #9170
  • Loading branch information
codyoss authored Feb 8, 2024
1 parent 530d273 commit f7170e2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bigtable/conformance_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=$!
Expand Down
2 changes: 1 addition & 1 deletion internal/kokoro/continuous.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions internal/kokoro/presubmit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 + $?))
}
Expand Down

0 comments on commit f7170e2

Please sign in to comment.