Merge pull request #2800 from ctiller/reduce-mac-load

Reduce mac load on Jenkins
pull/2776/merge
Nicolas Noble 10 years ago
commit 2db17838e7
  1. 42
      build.json
  2. 12
      test/core/end2end/gen_build_json.py
  3. 2
      tools/buildgen/plugins/expand_bin_attrs.py
  4. 27
      tools/run_tests/run_tests.py
  5. 3692
      tools/run_tests/tests.json

@ -985,6 +985,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -1002,6 +1004,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -1019,6 +1023,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -1066,6 +1072,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -1083,6 +1091,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -1556,6 +1566,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -1752,6 +1764,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -1769,6 +1783,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -1786,6 +1802,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -1906,6 +1924,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -1926,6 +1946,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -1987,6 +2009,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -2228,6 +2252,8 @@
"grpc++_test_config"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -2249,6 +2275,8 @@
"grpc++_test_config"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -2266,6 +2294,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -2373,6 +2403,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -2394,6 +2426,8 @@
"grpc++_test_config"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -2415,6 +2449,8 @@
"grpc++_test_config"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -2512,6 +2548,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -2564,6 +2602,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},
@ -2584,6 +2624,8 @@
"gpr"
],
"platforms": [
"mac",
"linux",
"posix"
]
},

@ -37,10 +37,10 @@ import collections
FixtureOptions = collections.namedtuple('FixtureOptions', 'fullstack includes_proxy dns_resolver secure platforms')
default_unsecure_fixture_options = FixtureOptions(True, False, True, False, ['windows', 'posix'])
default_unsecure_fixture_options = FixtureOptions(True, False, True, False, ['windows', 'linux', 'mac', 'posix'])
socketpair_unsecure_fixture_options = default_unsecure_fixture_options._replace(fullstack=False, dns_resolver=False)
default_secure_fixture_options = default_unsecure_fixture_options._replace(secure=True)
uds_fixture_options = default_unsecure_fixture_options._replace(dns_resolver=False, platforms=['posix'])
uds_fixture_options = default_unsecure_fixture_options._replace(dns_resolver=False, platforms=['linux', 'mac', 'posix'])
# maps fixture name to whether it requires the security library
END2END_FIXTURES = {
@ -48,11 +48,11 @@ END2END_FIXTURES = {
'chttp2_fullstack': default_unsecure_fixture_options,
'chttp2_fullstack_compression': default_unsecure_fixture_options,
'chttp2_fullstack_uds_posix': uds_fixture_options,
'chttp2_fullstack_uds_posix_with_poll': uds_fixture_options,
'chttp2_fullstack_with_poll': default_unsecure_fixture_options._replace(platforms=['posix']),
'chttp2_fullstack_uds_posix_with_poll': uds_fixture_options._replace(platforms=['linux']),
'chttp2_fullstack_with_poll': default_unsecure_fixture_options._replace(platforms=['linux']),
'chttp2_fullstack_with_proxy': default_unsecure_fixture_options._replace(includes_proxy=True),
'chttp2_simple_ssl_fullstack': default_secure_fixture_options,
'chttp2_simple_ssl_fullstack_with_poll': default_secure_fixture_options._replace(platforms=['posix']),
'chttp2_simple_ssl_fullstack_with_poll': default_secure_fixture_options._replace(platforms=['linux']),
'chttp2_simple_ssl_fullstack_with_proxy': default_secure_fixture_options._replace(includes_proxy=True),
'chttp2_simple_ssl_with_oauth2_fullstack': default_secure_fixture_options,
'chttp2_socket_pair': socketpair_unsecure_fixture_options,
@ -138,7 +138,7 @@ def main():
'language': 'c',
'secure': 'check' if END2END_FIXTURES[f].secure else 'no',
'src': ['test/core/end2end/fixtures/%s.c' % f],
'platforms': [ 'posix' ] if f.endswith('_posix') else END2END_FIXTURES[f].platforms,
'platforms': [ 'linux', 'mac', 'posix' ] if f.endswith('_posix') else END2END_FIXTURES[f].platforms,
'deps': sec_deps if END2END_FIXTURES[f].secure else unsec_deps,
'headers': ['test/core/end2end/end2end_tests.h'],
}

@ -47,5 +47,5 @@ def mako_plugin(dictionary):
for tgt in targets:
tgt['flaky'] = tgt.get('flaky', False)
tgt['platforms'] = tgt.get('platforms', ['windows', 'posix'])
tgt['platforms'] = sorted(tgt.get('platforms', ['windows', 'posix']))

@ -54,6 +54,17 @@ os.chdir(ROOT)
_FORCE_ENVIRON_FOR_WRAPPERS = {}
def platform_string():
if platform.system() == 'Windows':
return 'windows'
elif platform.system() == 'Darwin':
return 'mac'
elif platform.system() == 'Linux':
return 'linux'
else:
return 'posix'
# SimpleConfig: just compile with CONFIG=config, and run the binary to test
class SimpleConfig(object):
@ -109,17 +120,13 @@ class CLanguage(object):
def __init__(self, make_target, test_lang):
self.make_target = make_target
if platform.system() == 'Windows':
plat = 'windows'
else:
plat = 'posix'
self.platform = plat
self.platform = platform_string()
with open('tools/run_tests/tests.json') as f:
js = json.load(f)
self.binaries = [tgt
for tgt in js
if tgt['language'] == test_lang and
plat in tgt['platforms']]
platform_string() in tgt['platforms']]
def test_specs(self, config, travis):
out = []
@ -245,11 +252,7 @@ class RubyLanguage(object):
class CSharpLanguage(object):
def __init__(self):
if platform.system() == 'Windows':
plat = 'windows'
else:
plat = 'posix'
self.platform = plat
self.platform = platform_string()
def test_specs(self, config, travis):
assemblies = ['Grpc.Core.Tests',
@ -263,7 +266,7 @@ class CSharpLanguage(object):
return [config.job_spec([cmd, assembly],
None, shortname=assembly,
environ=_FORCE_ENVIRON_FOR_WRAPPERS)
for assembly in assemblies ]
for assembly in assemblies]
def make_targets(self):
# For Windows, this target doesn't really build anything,

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save