Fetch only required commit from test-infra repo. (#27675)

Full clone and submodules are not required for test-infra tools build.
pull/27677/head
Paulo Castello da Costa 3 years ago committed by GitHub
parent aae25e2443
commit 5464c8ba06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      tools/internal_ci/linux/grpc_e2e_performance_gke.sh
  2. 10
      tools/internal_ci/linux/grpc_e2e_performance_v2.sh

@ -65,10 +65,12 @@ TEST_INFRA_GOVERSION=go1.17.1
go get "golang.org/dl/${TEST_INFRA_GOVERSION}"
"${TEST_INFRA_GOVERSION}" download
# Clone test-infra repository to one upper level directory than grpc.
pushd ..
git clone --recursive https://github.com/grpc/test-infra.git
cd test-infra
# Fetch test-infra repository and build all tools.
# Note: Submodules are not required for tools build.
git init ../test-infra
pushd ../test-infra
git fetch --depth 1 https://github.com/grpc/test-infra.git
git reset --hard FETCH_HEAD
make GOCMD="${TEST_INFRA_GOVERSION}" all-tools
popd

@ -63,10 +63,12 @@ TEST_INFRA_GOVERSION=go1.17.1
go get "golang.org/dl/${TEST_INFRA_GOVERSION}"
"${TEST_INFRA_GOVERSION}" download
# Clone test-infra repository to one upper level directory than grpc.
pushd ..
git clone --recursive https://github.com/grpc/test-infra.git
cd test-infra
# Fetch test-infra repository and build all tools.
# Note: Submodules are not required for tools build.
git init ../test-infra
pushd ../test-infra
git fetch --depth 1 https://github.com/grpc/test-infra.git
git reset --hard FETCH_HEAD
make GOCMD="${TEST_INFRA_GOVERSION}" all-tools
popd

Loading…
Cancel
Save