From 4239060adb0e7315ca8463316fc7a75f3276a3a4 Mon Sep 17 00:00:00 2001 From: Paulo Castello da Costa <6579971+paulosjca@users.noreply.github.com> Date: Mon, 28 Feb 2022 13:06:10 -0800 Subject: [PATCH] Change clone command to make it easier to pin test-infra version. (#28941) --- tools/internal_ci/linux/grpc_e2e_performance_gke.sh | 7 ++++--- .../linux/grpc_e2e_performance_gke_experiment.sh | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/tools/internal_ci/linux/grpc_e2e_performance_gke.sh b/tools/internal_ci/linux/grpc_e2e_performance_gke.sh index ac47843fcdc..3f7c9ded64b 100755 --- a/tools/internal_ci/linux/grpc_e2e_performance_gke.sh +++ b/tools/internal_ci/linux/grpc_e2e_performance_gke.sh @@ -65,11 +65,12 @@ TEST_INFRA_GOVERSION=go1.17.1 go get "golang.org/dl/${TEST_INFRA_GOVERSION}" "${TEST_INFRA_GOVERSION}" download -# Fetch test-infra repository and build all tools. +# Clone test-infra repository and build all tools. pushd .. -git clone --depth 1 https://github.com/grpc/test-infra.git +git clone https://github.com/grpc/test-infra.git cd test-infra -git log -1 --oneline +# Tools are built from HEAD. +git checkout --detach make GOCMD="${TEST_INFRA_GOVERSION}" all-tools popd diff --git a/tools/internal_ci/linux/grpc_e2e_performance_gke_experiment.sh b/tools/internal_ci/linux/grpc_e2e_performance_gke_experiment.sh index f287028ca80..93d6e62ae22 100755 --- a/tools/internal_ci/linux/grpc_e2e_performance_gke_experiment.sh +++ b/tools/internal_ci/linux/grpc_e2e_performance_gke_experiment.sh @@ -63,11 +63,12 @@ TEST_INFRA_GOVERSION=go1.17.1 go get "golang.org/dl/${TEST_INFRA_GOVERSION}" "${TEST_INFRA_GOVERSION}" download -# Note: Submodules are not required for tools build. +# Clone test-infra repository and build all tools. pushd .. -git clone --depth 1 https://github.com/grpc/test-infra.git +git clone https://github.com/grpc/test-infra.git cd test-infra -git log -1 --oneline +# Tools are built from HEAD. +git checkout --detach make GOCMD="${TEST_INFRA_GOVERSION}" all-tools popd