Merge pull request #5151 from jtattermusch/fix_artifacts_and_distribtests

Some distribtest fixes
pull/5153/head
Jan Tattermusch 9 years ago
commit 2a9d5e1c01
  1. 5
      test/distrib/csharp/run_distrib_test.sh
  2. 8
      test/distrib/python/run_distrib_test.sh
  3. 2
      tools/run_tests/artifact_targets.py

@ -34,8 +34,9 @@ cd $(dirname $0)
unzip -o "$EXTERNAL_GIT_ROOT/input_artifacts/csharp_nugets.zip" -d TestNugetFeed unzip -o "$EXTERNAL_GIT_ROOT/input_artifacts/csharp_nugets.zip" -d TestNugetFeed
# TODO(jtattermusch): replace the version number # Extract the version number from Grpc nuget package name.
./update_version.sh 0.13.0 CSHARP_VERSION=$(ls TestNugetFeed | grep '^Grpc\.[0-9].*\.nupkg$' | sed s/^Grpc\.// | sed s/\.nupkg$//)
./update_version.sh $CSHARP_VERSION
nuget restore nuget restore

@ -32,11 +32,11 @@ set -ex
cd $(dirname $0) cd $(dirname $0)
# TODO(jtattermusch): replace the version number # Pick up the source dist archive whatever its version is
SDIST_ARCHIVE="$EXTERNAL_GIT_ROOT/input_artifacts/grpcio-0.12.0b8.tar.gz" SDIST_ARCHIVE=$EXTERNAL_GIT_ROOT/input_artifacts/grpcio-*.tar.gz
BDIST_DIR="file://$EXTERNAL_GIT_ROOT/input_artifacts" BDIST_DIR="file://$EXTERNAL_GIT_ROOT/input_artifacts"
if [ ! -f "${SDIST_ARCHIVE}" ] if [ ! -f ${SDIST_ARCHIVE} ]
then then
echo "Archive ${SDIST_ARCHIVE} does not exist." echo "Archive ${SDIST_ARCHIVE} does not exist."
exit 1 exit 1
@ -52,7 +52,7 @@ $PIP install --upgrade six
GRPC_PYTHON_BINARIES_REPOSITORY="${BDIST_DIR}" \ GRPC_PYTHON_BINARIES_REPOSITORY="${BDIST_DIR}" \
$PIP install \ $PIP install \
"${SDIST_ARCHIVE}" ${SDIST_ARCHIVE}
$PYTHON distribtest.py $PYTHON distribtest.py

@ -62,7 +62,7 @@ def create_jobspec(name, cmdline, environ=None, shell=False,
cmdline=cmdline, cmdline=cmdline,
environ=environ, environ=environ,
shortname='build_artifact.%s' % (name), shortname='build_artifact.%s' % (name),
timeout_seconds=10*60, timeout_seconds=30*60,
flake_retries=flake_retries, flake_retries=flake_retries,
timeout_retries=timeout_retries, timeout_retries=timeout_retries,
shell=shell) shell=shell)

Loading…
Cancel
Save