changed method to local clone submodules to using git submodule foreach from the local copy

pull/8182/head
Matt Kwong 8 years ago
parent 46c7f574bd
commit 5d0f24600e
  1. 10
      test/distrib/cpp/run_distrib_test.sh
  2. 8
      tools/dockerfile/grpc_check_generated_pb_files/check_pb_files.sh
  3. 8
      tools/dockerfile/interoptest/grpc_interop_csharp/build_interop.sh
  4. 8
      tools/dockerfile/interoptest/grpc_interop_csharpcoreclr/build_interop.sh
  5. 8
      tools/dockerfile/interoptest/grpc_interop_cxx/build_interop.sh
  6. 6
      tools/dockerfile/interoptest/grpc_interop_http2/build_interop.sh
  7. 8
      tools/dockerfile/interoptest/grpc_interop_node/build_interop.sh
  8. 8
      tools/dockerfile/interoptest/grpc_interop_php/build_interop.sh
  9. 8
      tools/dockerfile/interoptest/grpc_interop_php7/build_interop.sh
  10. 8
      tools/dockerfile/interoptest/grpc_interop_python/build_interop.sh
  11. 8
      tools/dockerfile/interoptest/grpc_interop_ruby/build_interop.sh
  12. 8
      tools/dockerfile/stress_test/grpc_interop_stress_csharp/build_interop_stress.sh
  13. 8
      tools/dockerfile/stress_test/grpc_interop_stress_cxx/build_interop_stress.sh
  14. 6
      tools/dockerfile/stress_test/grpc_interop_stress_go/build_interop_stress.sh
  15. 6
      tools/dockerfile/stress_test/grpc_interop_stress_java/build_interop_stress.sh
  16. 8
      tools/dockerfile/stress_test/grpc_interop_stress_node/build_interop_stress.sh
  17. 8
      tools/dockerfile/stress_test/grpc_interop_stress_php/build_interop_stress.sh
  18. 8
      tools/dockerfile/stress_test/grpc_interop_stress_python/build_interop_stress.sh
  19. 8
      tools/dockerfile/stress_test/grpc_interop_stress_ruby/build_interop_stress.sh
  20. 6
      tools/run_tests/dockerize/docker_run.sh
  21. 6
      tools/run_tests/dockerize/docker_run_tests.sh

@ -31,11 +31,13 @@
set -ex
git clone $EXTERNAL_GIT_ROOT
cd grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
git submodule | awk -v EXTERNAL_GIT_ROOT=$EXTERNAL_GIT_ROOT/ '{ system("git \
submodule update --init --reference " EXTERNAL_GIT_ROOT$2 " " $2) }'
(cd /var/local/jenkins/grpc / && git submodule foreach 'cd /var/local/git/grpc \
&& git submodule update --init --reference /var/local/jenkins/grpc/${name} \
${name}')
cd grpc
cd third_party/protobuf && ./autogen.sh && \
./configure && make -j4 && make check && make install && ldconfig

@ -32,13 +32,13 @@ set -e
mkdir -p /var/local/git
git clone /var/local/jenkins/grpc /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
(cd /var/local/jenkins/grpc / && git submodule foreach 'cd /var/local/git/grpc \
&& git submodule update --init --reference /var/local/jenkins/grpc/${name} \
${name}')
cd /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
git submodule | awk '{ system("git submodule update --init --reference \
./../../jenkins/grpc/" $2 " " $2) }'
# build grpc cpp plugin for generating grpc pb files
make grpc_cpp_plugin

@ -33,15 +33,15 @@ set -e
mkdir -p /var/local/git
git clone /var/local/jenkins/grpc /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
(cd /var/local/jenkins/grpc / && git submodule foreach 'cd /var/local/git/grpc \
&& git submodule update --init --reference /var/local/jenkins/grpc/${name} \
${name}')
# copy service account keys if available
cp -r /var/local/jenkins/service_account $HOME || true
cd /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
git submodule | awk '{ system("git submodule update --init --reference \
./../../jenkins/grpc/" $2 " " $2) }'
# build C# interop client & server
tools/run_tests/run_tests.py -l csharp -c dbg --build_only

@ -33,15 +33,15 @@ set -e
mkdir -p /var/local/git
git clone /var/local/jenkins/grpc /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
(cd /var/local/jenkins/grpc / && git submodule foreach 'cd /var/local/git/grpc \
&& git submodule update --init --reference /var/local/jenkins/grpc/${name} \
${name}')
# copy service account keys if available
cp -r /var/local/jenkins/service_account $HOME || true
cd /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
git submodule | awk '{ system("git submodule update --init --reference \
./../../jenkins/grpc/" $2 " " $2) }'
# build C# interop client & server
tools/run_tests/run_tests.py -l csharp -c dbg --compiler coreclr --build_only

@ -33,16 +33,16 @@ set -e
mkdir -p /var/local/git
git clone /var/local/jenkins/grpc /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
(cd /var/local/jenkins/grpc / && git submodule foreach 'cd /var/local/git/grpc \
&& git submodule update --init --reference /var/local/jenkins/grpc/${name} \
${name}')
# copy service account keys if available
cp -r /var/local/jenkins/service_account $HOME || true
cd /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
git submodule | awk '{ system("git submodule update --init --reference \
./../../jenkins/grpc/" $2 " " $2) }'
make install-certs
# build C++ interop client & server

@ -33,10 +33,10 @@ set -e
mkdir -p /var/local/git
git clone /var/local/jenkins/grpc /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
(cd /var/local/git/grpc/ && exec git submodule | awk '{ system("git submodule \
update --init --reference ./../../jenkins/grpc/" $2 " " $2) }')
(cd /var/local/jenkins/grpc / && git submodule foreach 'cd /var/local/git/grpc \
&& git submodule update --init --reference /var/local/jenkins/grpc/${name} \
${name}')
# copy service account keys if available
cp -r /var/local/jenkins/service_account $HOME || true

@ -33,16 +33,16 @@ set -e
mkdir -p /var/local/git
git clone /var/local/jenkins/grpc /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
(cd /var/local/jenkins/grpc / && git submodule foreach 'cd /var/local/git/grpc \
&& git submodule update --init --reference /var/local/jenkins/grpc/${name} \
${name}')
# copy service account keys if available
cp -r /var/local/jenkins/service_account $HOME || true
cd /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
git submodule | awk '{ system("git submodule update --init --reference \
./../../jenkins/grpc/" $2 " " $2) }'
# build Node interop client & server
npm install -g node-gyp
npm install --unsafe-perm --build-from-source

@ -33,16 +33,16 @@ set -ex
mkdir -p /var/local/git
git clone /var/local/jenkins/grpc /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
(cd /var/local/jenkins/grpc / && git submodule foreach 'cd /var/local/git/grpc \
&& git submodule update --init --reference /var/local/jenkins/grpc/${name} \
${name}')
# copy service account keys if available
cp -r /var/local/jenkins/service_account $HOME || true
cd /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
git submodule | awk '{ system("git submodule update --init --reference \
./../../jenkins/grpc/" $2 " " $2) }'
rvm --default use ruby-2.1
# gRPC core and protobuf need to be installed

@ -33,16 +33,16 @@ set -ex
mkdir -p /var/local/git
git clone /var/local/jenkins/grpc /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
(cd /var/local/jenkins/grpc / && git submodule foreach 'cd /var/local/git/grpc \
&& git submodule update --init --reference /var/local/jenkins/grpc/${name} \
${name}')
# copy service account keys if available
cp -r /var/local/jenkins/service_account $HOME || true
cd /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
git submodule | awk '{ system("git submodule update --init --reference \
./../../jenkins/grpc/" $2 " " $2) }'
rvm --default use ruby-2.1
# gRPC core and protobuf need to be installed

@ -33,14 +33,14 @@ set -e
mkdir -p /var/local/git
git clone /var/local/jenkins/grpc /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
(cd /var/local/jenkins/grpc / && git submodule foreach 'cd /var/local/git/grpc \
&& git submodule update --init --reference /var/local/jenkins/grpc/${name} \
${name}')
# copy service account keys if available
cp -r /var/local/jenkins/service_account $HOME || true
cd /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
git submodule | awk '{ system("git submodule update --init --reference \
./../../jenkins/grpc/" $2 " " $2) }'
tools/run_tests/run_tests.py -l python -c opt --build_only

@ -33,16 +33,16 @@ set -e
mkdir -p /var/local/git
git clone /var/local/jenkins/grpc /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
(cd /var/local/jenkins/grpc / && git submodule foreach 'cd /var/local/git/grpc \
&& git submodule update --init --reference /var/local/jenkins/grpc/${name} \
${name}')
# copy service account keys if available
cp -r /var/local/jenkins/service_account $HOME || true
cd /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
git submodule | awk '{ system("git submodule update --init --reference \
./../../jenkins/grpc/" $2 " " $2) }'
rvm --default use ruby-2.1
# build Ruby interop client and server

@ -33,16 +33,16 @@ set -e
mkdir -p /var/local/git
git clone /var/local/jenkins/grpc /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
(cd /var/local/jenkins/grpc / && git submodule foreach 'cd /var/local/git/grpc \
&& git submodule update --init --reference /var/local/jenkins/grpc/${name} \
${name}')
# Copy service account keys if available
cp -r /var/local/jenkins/service_account $HOME || true
cd /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
git submodule | awk '{ system("git submodule update --init --reference \
./../../jenkins/grpc/" $2 " " $2) }'
# Build C++ metrics client (to query the metrics from csharp stress client)
make metrics_client -j

@ -33,16 +33,16 @@ set -e
mkdir -p /var/local/git
git clone /var/local/jenkins/grpc /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
(cd /var/local/jenkins/grpc / && git submodule foreach 'cd /var/local/git/grpc \
&& git submodule update --init --reference /var/local/jenkins/grpc/${name} \
${name}')
# copy service account keys if available
cp -r /var/local/jenkins/service_account $HOME || true
cd /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
git submodule | awk '{ system("git submodule update --init --reference \
./../../jenkins/grpc/" $2 " " $2) }'
make install-certs
BUILD_TYPE=${BUILD_TYPE:=opt}

@ -39,10 +39,10 @@ git clone --recursive /var/local/jenkins/grpc-go src/google.golang.org/grpc
# Clone the 'grpc' repo. We just need this for the wrapper scripts under
# grpc/tools/gcp/stress_tests
git clone /var/local/jenkins/grpc /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
(cd /var/local/git/grpc/ && exec git submodule | awk '{ system("git submodule \
update --init --reference ./../../jenkins/grpc/" $2 " " $2) }')
(cd /var/local/jenkins/grpc / && git submodule foreach 'cd /var/local/git/grpc \
&& git submodule update --init --reference /var/local/jenkins/grpc/${name} \
${name}')
# copy service account keys if available
cp -r /var/local/jenkins/service_account $HOME || true

@ -37,10 +37,10 @@ git clone --recursive --depth 1 /var/local/jenkins/grpc-java /var/local/git/grpc
# grpc repo (for metrics client and for the stress test wrapper scripts)
git clone /var/local/jenkins/grpc /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
(cd /var/local/git/grpc/ && exec git submodule | awk '{ system("git submodule \
update --init --reference ./../../jenkins/grpc/" $2 " " $2) }')
(cd /var/local/jenkins/grpc / && git submodule foreach 'cd /var/local/git/grpc \
&& git submodule update --init --reference /var/local/jenkins/grpc/${name} \
${name}')
# Copy service account keys if available
cp -r /var/local/jenkins/service_account $HOME || true

@ -33,16 +33,16 @@ set -e
mkdir -p /var/local/git
git clone /var/local/jenkins/grpc /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
(cd /var/local/jenkins/grpc / && git submodule foreach 'cd /var/local/git/grpc \
&& git submodule update --init --reference /var/local/jenkins/grpc/${name} \
${name}')
# copy service account keys if available
cp -r /var/local/jenkins/service_account $HOME || true
cd /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
git submodule | awk '{ system("git submodule update --init --reference \
./../../jenkins/grpc/" $2 " " $2) }'
# build Node interop client & server
npm install -g node-gyp
npm install --unsafe-perm --build-from-source

@ -33,16 +33,16 @@ set -ex
mkdir -p /var/local/git
git clone /var/local/jenkins/grpc /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
(cd /var/local/jenkins/grpc / && git submodule foreach 'cd /var/local/git/grpc \
&& git submodule update --init --reference /var/local/jenkins/grpc/${name} \
${name}')
# copy service account keys if available
cp -r /var/local/jenkins/service_account $HOME || true
cd /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
git submodule | awk '{ system("git submodule update --init --reference \
./../../jenkins/grpc/" $2 " " $2) }'
rvm --default use ruby-2.1
make install-certs

@ -33,16 +33,16 @@ set -e
mkdir -p /var/local/git
git clone /var/local/jenkins/grpc /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
(cd /var/local/jenkins/grpc / && git submodule foreach 'cd /var/local/git/grpc \
&& git submodule update --init --reference /var/local/jenkins/grpc/${name} \
${name}')
# copy service account keys if available
cp -r /var/local/jenkins/service_account $HOME || true
cd /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
git submodule | awk '{ system("git submodule update --init --reference \
./../../jenkins/grpc/" $2 " " $2) }'
tools/run_tests/run_tests.py -l python -c opt --build_only
# Build c++ interop client

@ -33,16 +33,16 @@ set -e
mkdir -p /var/local/git
git clone /var/local/jenkins/grpc /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
(cd /var/local/jenkins/grpc / && git submodule foreach 'cd /var/local/git/grpc \
&& git submodule update --init --reference /var/local/jenkins/grpc/${name} \
${name}')
# Copy service account keys if available
cp -r /var/local/jenkins/service_account $HOME || true
cd /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
git submodule | awk '{ system("git submodule update --init --reference \
./../../jenkins/grpc/" $2 " " $2) }'
rvm --default use ruby-2.1
# Build Ruby interop client and server

@ -38,9 +38,9 @@ then
mkdir -p /var/local/git
git clone "$EXTERNAL_GIT_ROOT" /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
(cd var/local/git/grpc && exec git submodule | awk -v \
EXTERNAL_GIT_ROOT=$EXTERNAL_GIT_ROOT/ '{ system("git submodule update --init \
--reference " EXTERNAL_GIT_ROOT$2 " " $2) }')
(cd /var/local/jenkins/grpc / && git submodule foreach 'cd /var/local/git/grpc \
&& git submodule update --init --reference /var/local/jenkins/grpc/${name} \
${name}')
else
mkdir -p "/var/local/git/grpc/$RELATIVE_COPY_PATH"
cp -r "$EXTERNAL_GIT_ROOT/$RELATIVE_COPY_PATH"/* "/var/local/git/grpc/$RELATIVE_COPY_PATH"

@ -43,10 +43,10 @@ chown $(whoami) $XDG_CACHE_HOME
mkdir -p /var/local/git
git clone /var/local/jenkins/grpc /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
(cd /var/local/git/grpc/ && exec git submodule | awk '{ system("git submodule \
update --init --reference ./../../jenkins/grpc/" $2 " " $2) }')
(cd /var/local/jenkins/grpc / && git submodule foreach 'cd /var/local/git/grpc \
&& git submodule update --init --reference /var/local/jenkins/grpc/${name} \
${name}')
mkdir -p reports

Loading…
Cancel
Save