Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update CI to turn gowork setting off for build/test #9396

Merged
merged 2 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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