Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

Commit 0f1160c

Browse files
committed
test: make integration test use Go 1.17.7
1 parent c341c15 commit 0f1160c

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

system-test/integration_test.sh

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,25 @@ export GOOGLE_APPLICATION_CREDENTIALS="${SERVICE_KEY}"
2727
# Run test.
2828
cd "system-test"
2929

30+
# Ensure a newer version of Go is used so it is compatible with newer libraries.
31+
# Here we install v1.17.7 which is the current version as of when this code
32+
# was written, following instructions from https://go.dev/doc/manage-install.
33+
# Go modules might not be on for previous versions of Go, so we also have to
34+
# enable the module system explicitly.
35+
export GO111MODULE=on
36+
go install golang.org/dl/go1.17.7
37+
go1.17.7 download
38+
3039
# Initializing go modules allows our dependencies to install versions of their
3140
# dependencies specified by their go.mod files. This reduces the likelihood of
3241
# dependencies breaking this test.
33-
go version
34-
go mod init e2e
35-
retry go get cloud.google.com/go/profiler/proftest@HEAD
36-
retry go test -c -tags=integration .
42+
go1.17.7 version
43+
go1.17.7 mod init e2e
44+
retry go1.17.7 get cloud.google.com/go/profiler/proftest@HEAD
45+
retry go1.17.7 test -c -tags=integration .
3746

3847
if [ "$KOKORO_GITHUB_PULL_REQUEST_NUMBER" = "" ]; then
3948
./e2e.test -commit="$COMMIT" -branch="$BRANCH" -repo="$REPO" -run_backoff_test=true
4049
else
4150
./e2e.test -commit="$COMMIT" -pr="$KOKORO_GITHUB_PULL_REQUEST_NUMBER"
4251
fi
43-

0 commit comments

Comments
 (0)