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
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 OUTPUT_DIR=fuzzer_output
runtime=${runtime:-3600}
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 OUTPUT_DIR="$OUTPUT_DIR" \
-e config="$config" \

@ -43,10 +43,10 @@ def create_docker_jobspec(name, dockerfile_dir, shell_command, environ={},
for k,v in environ.iteritems():
docker_args += ['-e', '%s=%s' % (k, v)]
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'}
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,
shortname='build_artifact.%s' % (name),
timeout_seconds=30*60,

@ -44,9 +44,9 @@ def create_docker_jobspec(name, dockerfile_dir, shell_command, environ={},
for k,v in environ.iteritems():
docker_args += ['-e', '%s=%s' % (k, v)]
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(
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,
shortname='distribtest.%s' % (name),
timeout_seconds=30*60,

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

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

@ -40,7 +40,7 @@ set -x
# BUILD_INTEROP_DOCKER_EXTRA_ARGS - optional args to be passed to the
# docker run command
cd `dirname $0`/../..
cd `dirname $0`/../../..
GRPC_ROOT=`pwd`
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
# docker run command
cd `dirname $0`/../..
cd `dirname $0`/../../..
GRPC_ROOT=`pwd`
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():
docker_args += ['-e', '%s=%s' % (k, v)]
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'}
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,
shortname='build_package.%s' % (name),
timeout_seconds=30*60,

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

@ -912,13 +912,13 @@ if args.use_docker:
env = os.environ.copy()
env['RUN_TESTS_COMMAND'] = run_tests_cmd
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:
env['XML_REPORT'] = args.xml_report
if not args.travis:
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,
env=env)
sys.exit(0)

@ -1,7 +1,7 @@
{
"dockerImages": {
"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",
"buildType": "asan"
}

@ -1,7 +1,7 @@
{
"dockerImages": {
"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"
}
},

@ -1,7 +1,7 @@
{
"dockerImages": {
"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"
}
},

@ -1,7 +1,7 @@
{
"dockerImages": {
"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"
}
},

@ -1,12 +1,12 @@
{
"dockerImages": {
"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",
"buildType": "opt"
},
"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"
}
},

@ -1,7 +1,7 @@
{
"dockerImages": {
"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"
}
},

@ -1,17 +1,17 @@
{
"dockerImages": {
"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",
"buildType": "opt"
},
"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",
"buildType": "tsan"
},
"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",
"buildType": "asan"
}

@ -1,7 +1,7 @@
{
"dockerImages": {
"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",
"buildType": "opt"
}

@ -1,7 +1,7 @@
{
"dockerImages": {
"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"
}
},

@ -1,7 +1,7 @@
{
"dockerImages": {
"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",
"buildType": "tsan"
}

Loading…
Cancel
Save