|
|
@ -80,7 +80,7 @@ class Config(object): |
|
|
|
self.timeout_multiplier = timeout_multiplier |
|
|
|
self.timeout_multiplier = timeout_multiplier |
|
|
|
|
|
|
|
|
|
|
|
def job_spec(self, cmdline, hash_targets, timeout_seconds=5*60, |
|
|
|
def job_spec(self, cmdline, hash_targets, timeout_seconds=5*60, |
|
|
|
shortname=None, environ={}, cpu_cost=1.0): |
|
|
|
shortname=None, environ={}, cpu_cost=1.0, flaky=False): |
|
|
|
"""Construct a jobset.JobSpec for a test under this config |
|
|
|
"""Construct a jobset.JobSpec for a test under this config |
|
|
|
|
|
|
|
|
|
|
|
Args: |
|
|
|
Args: |
|
|
@ -102,7 +102,7 @@ class Config(object): |
|
|
|
timeout_seconds=(self.timeout_multiplier * timeout_seconds if timeout_seconds else None), |
|
|
|
timeout_seconds=(self.timeout_multiplier * timeout_seconds if timeout_seconds else None), |
|
|
|
hash_targets=hash_targets |
|
|
|
hash_targets=hash_targets |
|
|
|
if self.allow_hashing else None, |
|
|
|
if self.allow_hashing else None, |
|
|
|
flake_retries=5 if args.allow_flakes else 0, |
|
|
|
flake_retries=5 if flaky or args.allow_flakes else 0, |
|
|
|
timeout_retries=3 if args.allow_flakes else 0) |
|
|
|
timeout_retries=3 if args.allow_flakes else 0) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -189,6 +189,7 @@ class CLanguage(object): |
|
|
|
out.append(self.config.job_spec(cmdline, [binary], |
|
|
|
out.append(self.config.job_spec(cmdline, [binary], |
|
|
|
shortname=' '.join(cmdline), |
|
|
|
shortname=' '.join(cmdline), |
|
|
|
cpu_cost=target['cpu_cost'], |
|
|
|
cpu_cost=target['cpu_cost'], |
|
|
|
|
|
|
|
flaky=target.get('flaky', True), |
|
|
|
environ={'GRPC_DEFAULT_SSL_ROOTS_FILE_PATH': |
|
|
|
environ={'GRPC_DEFAULT_SSL_ROOTS_FILE_PATH': |
|
|
|
_ROOT + '/src/core/tsi/test_creds/ca.pem'})) |
|
|
|
_ROOT + '/src/core/tsi/test_creds/ca.pem'})) |
|
|
|
elif self.args.regex == '.*' or self.platform == 'windows': |
|
|
|
elif self.args.regex == '.*' or self.platform == 'windows': |
|
|
@ -231,6 +232,9 @@ class CLanguage(object): |
|
|
|
def _clang_make_options(self): |
|
|
|
def _clang_make_options(self): |
|
|
|
return ['CC=clang', 'CXX=clang++', 'LD=clang', 'LDXX=clang++'] |
|
|
|
return ['CC=clang', 'CXX=clang++', 'LD=clang', 'LDXX=clang++'] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def _gcc44_make_options(self): |
|
|
|
|
|
|
|
return ['CC=gcc-4.4', 'CXX=g++-4.4', 'LD=gcc-4.4', 'LDXX=g++-4.4'] |
|
|
|
|
|
|
|
|
|
|
|
def _compiler_options(self, use_docker, compiler): |
|
|
|
def _compiler_options(self, use_docker, compiler): |
|
|
|
"""Returns docker distro and make options to use for given compiler.""" |
|
|
|
"""Returns docker distro and make options to use for given compiler.""" |
|
|
|
if _is_use_docker_child(): |
|
|
|
if _is_use_docker_child(): |
|
|
@ -241,7 +245,7 @@ class CLanguage(object): |
|
|
|
if compiler == 'gcc4.9' or compiler == 'default': |
|
|
|
if compiler == 'gcc4.9' or compiler == 'default': |
|
|
|
return ('jessie', []) |
|
|
|
return ('jessie', []) |
|
|
|
elif compiler == 'gcc4.4': |
|
|
|
elif compiler == 'gcc4.4': |
|
|
|
return ('squeeze', []) |
|
|
|
return ('wheezy', self._gcc44_make_options()) |
|
|
|
elif compiler == 'gcc5.3': |
|
|
|
elif compiler == 'gcc5.3': |
|
|
|
return ('ubuntu1604', []) |
|
|
|
return ('ubuntu1604', []) |
|
|
|
elif compiler == 'clang3.4': |
|
|
|
elif compiler == 'clang3.4': |
|
|
@ -879,7 +883,7 @@ if args.use_docker: |
|
|
|
sys.exit(1) |
|
|
|
sys.exit(1) |
|
|
|
else: |
|
|
|
else: |
|
|
|
dockerfile_dir = next(iter(dockerfile_dirs)) |
|
|
|
dockerfile_dir = next(iter(dockerfile_dirs)) |
|
|
|
|
|
|
|
|
|
|
|
child_argv = [ arg for arg in sys.argv if not arg == '--use_docker' ] |
|
|
|
child_argv = [ arg for arg in sys.argv if not arg == '--use_docker' ] |
|
|
|
run_tests_cmd = 'python tools/run_tests/run_tests.py %s' % ' '.join(child_argv[1:]) |
|
|
|
run_tests_cmd = 'python tools/run_tests/run_tests.py %s' % ' '.join(child_argv[1:]) |
|
|
|
|
|
|
|
|
|
|
|