This repository was archived by the owner on Feb 20, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,17 +27,25 @@ export GOOGLE_APPLICATION_CREDENTIALS="${SERVICE_KEY}"
2727# Run test.
2828cd " 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
3847if [ " $KOKORO_GITHUB_PULL_REQUEST_NUMBER " = " " ]; then
3948 ./e2e.test -commit=" $COMMIT " -branch=" $BRANCH " -repo=" $REPO " -run_backoff_test=true
4049else
4150 ./e2e.test -commit=" $COMMIT " -pr=" $KOKORO_GITHUB_PULL_REQUEST_NUMBER "
4251fi
43-
You can’t perform that action at this time.
0 commit comments