Merge branch 'master' into python_stress_test_docker

pull/6419/head
Sree Kuchibhotla 9 years ago
commit 819596c190
  1. 1
      tools/jenkins/README.md
  2. 4
      tools/jenkins/run_fuzzer.sh
  3. 4
      tools/run_tests/artifact_targets.py
  4. 4
      tools/run_tests/distribtest_targets.py
  5. 2
      tools/run_tests/dockerize/build_and_run_docker.sh
  6. 2
      tools/run_tests/dockerize/build_docker_and_run_tests.sh
  7. 2
      tools/run_tests/dockerize/build_interop_image.sh
  8. 2
      tools/run_tests/dockerize/build_interop_stress_image.sh
  9. 0
      tools/run_tests/dockerize/docker_run.sh
  10. 0
      tools/run_tests/dockerize/docker_run_tests.sh
  11. 4
      tools/run_tests/package_targets.py
  12. 2
      tools/run_tests/run_interop_tests.py
  13. 2
      tools/run_tests/run_stress_tests.py
  14. 4
      tools/run_tests/run_tests.py
  15. 2
      tools/run_tests/stress_test/configs/asan.json
  16. 2
      tools/run_tests/stress_test/configs/csharp.json
  17. 2
      tools/run_tests/stress_test/configs/go.json
  18. 2
      tools/run_tests/stress_test/configs/java.json
  19. 4
      tools/run_tests/stress_test/configs/node-cxx.json
  20. 2
      tools/run_tests/stress_test/configs/node.json
  21. 6
      tools/run_tests/stress_test/configs/opt-tsan-asan.json
  22. 2
      tools/run_tests/stress_test/configs/opt.json
  23. 2
      tools/run_tests/stress_test/configs/ruby.json
  24. 2
      tools/run_tests/stress_test/configs/tsan.json

@ -0,0 +1 @@
Scripts invoked by Jenkins (our CI platform) to run gRPC test suites.

@ -33,14 +33,14 @@
set -ex set -ex
export RUN_COMMAND="tools/fuzzer/build_and_run_fuzzer.sh $1" export RUN_COMMAND="tools/fuzzer/build_and_run_fuzzer.sh $1"
export DOCKER_RUN_SCRIPT=tools/jenkins/docker_run.sh export DOCKER_RUN_SCRIPT=tools/run_tests/dockerize/docker_run.sh
export DOCKERFILE_DIR=tools/dockerfile/test/fuzzer export DOCKERFILE_DIR=tools/dockerfile/test/fuzzer
export OUTPUT_DIR=fuzzer_output export OUTPUT_DIR=fuzzer_output
runtime=${runtime:-3600} runtime=${runtime:-3600}
jobs=${jobs:-3} jobs=${jobs:-3}
tools/jenkins/build_and_run_docker.sh \ tools/run_tests/dockerize/build_and_run_docker.sh \
-e RUN_COMMAND="$RUN_COMMAND" \ -e RUN_COMMAND="$RUN_COMMAND" \
-e OUTPUT_DIR="$OUTPUT_DIR" \ -e OUTPUT_DIR="$OUTPUT_DIR" \
-e config="$config" \ -e config="$config" \

@ -43,10 +43,10 @@ def create_docker_jobspec(name, dockerfile_dir, shell_command, environ={},
for k,v in environ.iteritems(): for k,v in environ.iteritems():
docker_args += ['-e', '%s=%s' % (k, v)] docker_args += ['-e', '%s=%s' % (k, v)]
docker_env = {'DOCKERFILE_DIR': dockerfile_dir, docker_env = {'DOCKERFILE_DIR': dockerfile_dir,
'DOCKER_RUN_SCRIPT': 'tools/jenkins/docker_run.sh', 'DOCKER_RUN_SCRIPT': 'tools/run_tests/dockerize/docker_run.sh',
'OUTPUT_DIR': 'artifacts'} 'OUTPUT_DIR': 'artifacts'}
jobspec = jobset.JobSpec( jobspec = jobset.JobSpec(
cmdline=['tools/jenkins/build_and_run_docker.sh'] + docker_args, cmdline=['tools/run_tests/dockerize/build_and_run_docker.sh'] + docker_args,
environ=docker_env, environ=docker_env,
shortname='build_artifact.%s' % (name), shortname='build_artifact.%s' % (name),
timeout_seconds=30*60, timeout_seconds=30*60,

@ -44,9 +44,9 @@ def create_docker_jobspec(name, dockerfile_dir, shell_command, environ={},
for k,v in environ.iteritems(): for k,v in environ.iteritems():
docker_args += ['-e', '%s=%s' % (k, v)] docker_args += ['-e', '%s=%s' % (k, v)]
docker_env = {'DOCKERFILE_DIR': dockerfile_dir, docker_env = {'DOCKERFILE_DIR': dockerfile_dir,
'DOCKER_RUN_SCRIPT': 'tools/jenkins/docker_run.sh'} 'DOCKER_RUN_SCRIPT': 'tools/run_tests/dockerize/docker_run.sh'}
jobspec = jobset.JobSpec( jobspec = jobset.JobSpec(
cmdline=['tools/jenkins/build_and_run_docker.sh'] + docker_args, cmdline=['tools/run_tests/dockerize/build_and_run_docker.sh'] + docker_args,
environ=docker_env, environ=docker_env,
shortname='distribtest.%s' % (name), shortname='distribtest.%s' % (name),
timeout_seconds=30*60, timeout_seconds=30*60,

@ -33,7 +33,7 @@
set -ex set -ex
cd $(dirname $0)/../.. cd $(dirname $0)/../../..
git_root=$(pwd) git_root=$(pwd)
cd - cd -

@ -33,7 +33,7 @@
set -ex set -ex
cd $(dirname $0)/../.. cd $(dirname $0)/../../..
git_root=$(pwd) git_root=$(pwd)
cd - cd -

@ -40,7 +40,7 @@ set -x
# BUILD_INTEROP_DOCKER_EXTRA_ARGS - optional args to be passed to the # BUILD_INTEROP_DOCKER_EXTRA_ARGS - optional args to be passed to the
# docker run command # docker run command
cd `dirname $0`/../.. cd `dirname $0`/../../..
GRPC_ROOT=`pwd` GRPC_ROOT=`pwd`
MOUNT_ARGS="-v $GRPC_ROOT:/var/local/jenkins/grpc:ro" MOUNT_ARGS="-v $GRPC_ROOT:/var/local/jenkins/grpc:ro"

@ -44,7 +44,7 @@ set -x
# BUILD_INTEROP_DOCKER_EXTRA_ARGS - optional args to be passed to the # BUILD_INTEROP_DOCKER_EXTRA_ARGS - optional args to be passed to the
# docker run command # docker run command
cd `dirname $0`/../.. cd `dirname $0`/../../..
GRPC_ROOT=`pwd` GRPC_ROOT=`pwd`
MOUNT_ARGS="-v $GRPC_ROOT:/var/local/jenkins/grpc:ro" MOUNT_ARGS="-v $GRPC_ROOT:/var/local/jenkins/grpc:ro"

@ -42,10 +42,10 @@ def create_docker_jobspec(name, dockerfile_dir, shell_command, environ={},
for k,v in environ.iteritems(): for k,v in environ.iteritems():
docker_args += ['-e', '%s=%s' % (k, v)] docker_args += ['-e', '%s=%s' % (k, v)]
docker_env = {'DOCKERFILE_DIR': dockerfile_dir, docker_env = {'DOCKERFILE_DIR': dockerfile_dir,
'DOCKER_RUN_SCRIPT': 'tools/jenkins/docker_run.sh', 'DOCKER_RUN_SCRIPT': 'tools/run_tests/dockerize/docker_run.sh',
'OUTPUT_DIR': 'artifacts'} 'OUTPUT_DIR': 'artifacts'}
jobspec = jobset.JobSpec( jobspec = jobset.JobSpec(
cmdline=['tools/jenkins/build_and_run_docker.sh'] + docker_args, cmdline=['tools/run_tests/dockerize/build_and_run_docker.sh'] + docker_args,
environ=docker_env, environ=docker_env,
shortname='build_package.%s' % (name), shortname='build_package.%s' % (name),
timeout_seconds=30*60, timeout_seconds=30*60,

@ -542,7 +542,7 @@ def build_interop_image_jobspec(language, tag=None):
env['BUILD_INTEROP_DOCKER_EXTRA_ARGS'] = \ env['BUILD_INTEROP_DOCKER_EXTRA_ARGS'] = \
'-v %s:/root/.composer/auth.json:ro' % host_file '-v %s:/root/.composer/auth.json:ro' % host_file
build_job = jobset.JobSpec( build_job = jobset.JobSpec(
cmdline=['tools/jenkins/build_interop_image.sh'], cmdline=['tools/run_tests/dockerize/build_interop_image.sh'],
environ=env, environ=env,
shortname='build_docker_%s' % (language), shortname='build_docker_%s' % (language),
timeout_seconds=30*60) timeout_seconds=30*60)

@ -195,7 +195,7 @@ def build_interop_stress_image_jobspec(language, tag=None):
tag = 'grpc_interop_stress_%s:%s' % (language.safename, uuid.uuid4()) tag = 'grpc_interop_stress_%s:%s' % (language.safename, uuid.uuid4())
env = {'INTEROP_IMAGE': tag, env = {'INTEROP_IMAGE': tag,
'BASE_NAME': 'grpc_interop_stress_%s' % language.safename} 'BASE_NAME': 'grpc_interop_stress_%s' % language.safename}
build_job = jobset.JobSpec(cmdline=['tools/jenkins/build_interop_stress_image.sh'], build_job = jobset.JobSpec(cmdline=['tools/run_tests/dockerize/build_interop_stress_image.sh'],
environ=env, environ=env,
shortname='build_docker_%s' % (language), shortname='build_docker_%s' % (language),
timeout_seconds=30 * 60) timeout_seconds=30 * 60)

@ -912,13 +912,13 @@ if args.use_docker:
env = os.environ.copy() env = os.environ.copy()
env['RUN_TESTS_COMMAND'] = run_tests_cmd env['RUN_TESTS_COMMAND'] = run_tests_cmd
env['DOCKERFILE_DIR'] = dockerfile_dir env['DOCKERFILE_DIR'] = dockerfile_dir
env['DOCKER_RUN_SCRIPT'] = 'tools/jenkins/docker_run_tests.sh' env['DOCKER_RUN_SCRIPT'] = 'tools/run_tests/dockerize/docker_run_tests.sh'
if args.xml_report: if args.xml_report:
env['XML_REPORT'] = args.xml_report env['XML_REPORT'] = args.xml_report
if not args.travis: if not args.travis:
env['TTY_FLAG'] = '-t' # enables Ctrl-C when not on Jenkins. env['TTY_FLAG'] = '-t' # enables Ctrl-C when not on Jenkins.
subprocess.check_call(['tools/jenkins/build_docker_and_run_tests.sh'], subprocess.check_call(['tools/run_tests/dockerize/build_docker_and_run_tests.sh'],
shell=True, shell=True,
env=env) env=env)
sys.exit(0) sys.exit(0)

@ -1,7 +1,7 @@
{ {
"dockerImages": { "dockerImages": {
"grpc_stress_cxx_asan" : { "grpc_stress_cxx_asan" : {
"buildScript": "tools/jenkins/build_interop_stress_image.sh", "buildScript": "tools/run_tests/dockerize/build_interop_stress_image.sh",
"dockerFileDir": "grpc_interop_stress_cxx", "dockerFileDir": "grpc_interop_stress_cxx",
"buildType": "asan" "buildType": "asan"
} }

@ -1,7 +1,7 @@
{ {
"dockerImages": { "dockerImages": {
"grpc_stress_csharp" : { "grpc_stress_csharp" : {
"buildScript": "tools/jenkins/build_interop_stress_image.sh", "buildScript": "tools/run_tests/dockerize/build_interop_stress_image.sh",
"dockerFileDir": "grpc_interop_stress_csharp" "dockerFileDir": "grpc_interop_stress_csharp"
} }
}, },

@ -1,7 +1,7 @@
{ {
"dockerImages": { "dockerImages": {
"grpc_stress_go" : { "grpc_stress_go" : {
"buildScript": "tools/jenkins/build_interop_stress_image.sh", "buildScript": "tools/run_tests/dockerize/build_interop_stress_image.sh",
"dockerFileDir": "grpc_interop_stress_go" "dockerFileDir": "grpc_interop_stress_go"
} }
}, },

@ -1,7 +1,7 @@
{ {
"dockerImages": { "dockerImages": {
"grpc_stress_java" : { "grpc_stress_java" : {
"buildScript": "tools/jenkins/build_interop_stress_image.sh", "buildScript": "tools/run_tests/dockerize/build_interop_stress_image.sh",
"dockerFileDir": "grpc_interop_stress_java" "dockerFileDir": "grpc_interop_stress_java"
} }
}, },

@ -1,12 +1,12 @@
{ {
"dockerImages": { "dockerImages": {
"grpc_stress_cxx_opt" : { "grpc_stress_cxx_opt" : {
"buildScript": "tools/jenkins/build_interop_stress_image.sh", "buildScript": "tools/run_tests/dockerize/build_interop_stress_image.sh",
"dockerFileDir": "grpc_interop_stress_cxx", "dockerFileDir": "grpc_interop_stress_cxx",
"buildType": "opt" "buildType": "opt"
}, },
"grpc_stress_node": { "grpc_stress_node": {
"buildScript": "tools/jenkins/build_interop_stress_image.sh", "buildScript": "tools/run_tests/dockerize/build_interop_stress_image.sh",
"dockerFileDir": "grpc_interop_stress_node" "dockerFileDir": "grpc_interop_stress_node"
} }
}, },

@ -1,7 +1,7 @@
{ {
"dockerImages": { "dockerImages": {
"grpc_stress_node" : { "grpc_stress_node" : {
"buildScript": "tools/jenkins/build_interop_stress_image.sh", "buildScript": "tools/run_tests/dockerize/build_interop_stress_image.sh",
"dockerFileDir": "grpc_interop_stress_node" "dockerFileDir": "grpc_interop_stress_node"
} }
}, },

@ -1,17 +1,17 @@
{ {
"dockerImages": { "dockerImages": {
"grpc_stress_cxx_opt" : { "grpc_stress_cxx_opt" : {
"buildScript": "tools/jenkins/build_interop_stress_image.sh", "buildScript": "tools/run_tests/dockerize/build_interop_stress_image.sh",
"dockerFileDir": "grpc_interop_stress_cxx", "dockerFileDir": "grpc_interop_stress_cxx",
"buildType": "opt" "buildType": "opt"
}, },
"grpc_stress_cxx_tsan": { "grpc_stress_cxx_tsan": {
"buildScript": "tools/jenkins/build_interop_stress_image.sh", "buildScript": "tools/run_tests/dockerize/build_interop_stress_image.sh",
"dockerFileDir": "grpc_interop_stress_cxx", "dockerFileDir": "grpc_interop_stress_cxx",
"buildType": "tsan" "buildType": "tsan"
}, },
"grpc_stress_cxx_asan": { "grpc_stress_cxx_asan": {
"buildScript": "tools/jenkins/build_interop_stress_image.sh", "buildScript": "tools/run_tests/dockerize/build_interop_stress_image.sh",
"dockerFileDir": "grpc_interop_stress_cxx", "dockerFileDir": "grpc_interop_stress_cxx",
"buildType": "asan" "buildType": "asan"
} }

@ -1,7 +1,7 @@
{ {
"dockerImages": { "dockerImages": {
"grpc_stress_cxx_opt" : { "grpc_stress_cxx_opt" : {
"buildScript": "tools/jenkins/build_interop_stress_image.sh", "buildScript": "tools/run_tests/dockerize/build_interop_stress_image.sh",
"dockerFileDir": "grpc_interop_stress_cxx", "dockerFileDir": "grpc_interop_stress_cxx",
"buildType": "opt" "buildType": "opt"
} }

@ -1,7 +1,7 @@
{ {
"dockerImages": { "dockerImages": {
"grpc_stress_ruby" : { "grpc_stress_ruby" : {
"buildScript": "tools/jenkins/build_interop_stress_image.sh", "buildScript": "tools/run_tests/dockerize/build_interop_stress_image.sh",
"dockerFileDir": "grpc_interop_stress_ruby" "dockerFileDir": "grpc_interop_stress_ruby"
} }
}, },

@ -1,7 +1,7 @@
{ {
"dockerImages": { "dockerImages": {
"grpc_stress_cxx_tsan" : { "grpc_stress_cxx_tsan" : {
"buildScript": "tools/jenkins/build_interop_stress_image.sh", "buildScript": "tools/run_tests/dockerize/build_interop_stress_image.sh",
"dockerFileDir": "grpc_interop_stress_cxx", "dockerFileDir": "grpc_interop_stress_cxx",
"buildType": "tsan" "buildType": "tsan"
} }

Loading…
Cancel
Save