else:
environ['ARTIFACTS_OUT'] = os.path.join('artifacts', name)
- jobspec = jobset.JobSpec(
- cmdline=cmdline,
- environ=environ,
- shortname='build_artifact.%s' % (name),
- timeout_seconds=timeout_seconds,
- flake_retries=flake_retries,
- timeout_retries=timeout_retries,
- shell=shell,
- cpu_cost=cpu_cost,
- verbose_success=verbose_success)
+ jobspec = jobset.JobSpec(cmdline=cmdline,
+ environ=environ,
+ shortname='build_artifact.%s' % (name),
+ timeout_seconds=timeout_seconds,
+ flake_retries=flake_retries,
+ timeout_retries=timeout_retries,
+ shell=shell,
+ cpu_cost=cpu_cost,
+ verbose_success=verbose_success)
return jobspec
environ['GRPC_BUILD_GRPCIO_TOOLS_DEPENDENTS'] = 'TRUE'
environ['GRPC_BUILD_MANYLINUX_WHEEL'] = 'TRUE'
- if self.platform == 'manylinux1':
- # manylinux1 currently has too old version of gcc
- # so we need to use this workaround to avoid
- # the "SSE2 instruction set not enabled" boringssl build error
- # https://gcc.gnu.org/ml/gcc-patches/2013-04/msg00740.html
- environ['CFLAGS'] += ' -msse2'
-
return create_docker_jobspec(
self.name,
- 'tools/dockerfile/grpc_artifact_python_%s_%s' % (self.platform,
- self.arch),
+ # NOTE(rbellevi): Do *not* update this without also ensuring the
+ # base_docker_image attribute is accurate.
+ 'tools/dockerfile/grpc_artifact_python_%s_%s' %
+ (self.platform, self.arch),
'tools/run_tests/artifacts/build_artifact_python.sh',
environ=environ,
timeout_seconds=60 * 60,
# seed. We create a random temp-dir here
dir = ''.join(
random.choice(string.ascii_uppercase) for _ in range(10))
- return create_jobspec(
- self.name, [
- 'tools\\run_tests\\artifacts\\build_artifact_python.bat',
- self.py_version, '32' if self.arch == 'x86' else '64'
- ],
- environ=environ,
- timeout_seconds=45 * 60,
- use_workspace=True)
+ return create_jobspec(self.name, [
+ 'tools\\run_tests\\artifacts\\build_artifact_python.bat',
+ self.py_version, '32' if self.arch == 'x86' else '64'
+ ],
+ environ=environ,
+ timeout_seconds=45 * 60,
+ use_workspace=True)
else:
environ['PYTHON'] = self.py_version
environ['SKIP_PIP_INSTALL'] = 'TRUE'
self.name,
'tools/dockerfile/grpc_artifact_android_ndk',
'tools/run_tests/artifacts/build_artifact_csharp_android.sh',
- environ={
- 'ANDROID_ABI': self.arch_abi
- })
+ environ={'ANDROID_ABI': self.arch_abi})
elif self.arch == 'ios':
return create_jobspec(
self.name,
['tools/run_tests/artifacts/build_artifact_csharp_ios.sh'],
use_workspace=True)
elif self.platform == 'windows':
- return create_jobspec(
- self.name, [
- 'tools\\run_tests\\artifacts\\build_artifact_csharp.bat',
- self.arch
- ],
- use_workspace=True)
+ return create_jobspec(self.name, [
+ 'tools\\run_tests\\artifacts\\build_artifact_csharp.bat',
+ self.arch
+ ],
+ use_workspace=True)
else:
if self.platform == 'linux':
cmake_arch_option = '' # x64 is the default architecture
cmake_arch_option = '-DOPENSSL_NO_ASM=ON'
return create_docker_jobspec(
self.name,
- 'tools/dockerfile/grpc_artifact_linux_%s' % self.arch,
+ 'tools/dockerfile/grpc_artifact_centos6_%s' % self.arch,
'tools/run_tests/artifacts/build_artifact_csharp.sh',
- environ={
- 'CMAKE_ARCH_OPTION': cmake_arch_option
- })
+ environ={'CMAKE_ARCH_OPTION': cmake_arch_option})
else:
cmake_arch_option = '' # x64 is the default architecture
if self.arch == 'x86':
def build_jobspec(self):
return create_docker_jobspec(
- self.name, 'tools/dockerfile/grpc_artifact_linux_{}'.format(
- self.arch), 'tools/run_tests/artifacts/build_artifact_php.sh')
+ self.name,
+ 'tools/dockerfile/grpc_artifact_centos6_{}'.format(self.arch),
+ 'tools/run_tests/artifacts/build_artifact_php.sh')
class ProtocArtifact:
def targets():
"""Gets list of supported targets"""
return ([
- Cls(platform, arch)
- for Cls in (CSharpExtArtifact, ProtocArtifact)
+ Cls(platform, arch) for Cls in (CSharpExtArtifact, ProtocArtifact)
for platform in ('linux', 'macos', 'windows') for arch in ('x86', 'x64')
] + [
CSharpExtArtifact('linux', 'android', arch_abi='arm64-v8a'),
CSharpExtArtifact('macos', 'ios'),
# TODO(https://github.com/grpc/grpc/issues/20283)
# Add manylinux2010_x86 targets once this issue is resolved.
- PythonArtifact('manylinux1', 'x86', 'cp27-cp27m'),
- PythonArtifact('manylinux1', 'x86', 'cp27-cp27mu'),
- PythonArtifact('manylinux1', 'x86', 'cp35-cp35m'),
- PythonArtifact('manylinux1', 'x86', 'cp36-cp36m'),
- PythonArtifact('manylinux1', 'x86', 'cp37-cp37m'),
- PythonArtifact('manylinux1', 'x86', 'cp38-cp38'),
PythonArtifact('manylinux2010', 'x86', 'cp27-cp27m'),
PythonArtifact('manylinux2010', 'x86', 'cp27-cp27mu'),
PythonArtifact('manylinux2010', 'x86', 'cp35-cp35m'),
PythonArtifact('linux_extra', 'armv6', '2.7'),
PythonArtifact('linux_extra', 'armv6', '3.5'),
PythonArtifact('linux_extra', 'armv6', '3.6'),
- PythonArtifact('manylinux1', 'x64', 'cp27-cp27m'),
- PythonArtifact('manylinux1', 'x64', 'cp27-cp27mu'),
- PythonArtifact('manylinux1', 'x64', 'cp35-cp35m'),
- PythonArtifact('manylinux1', 'x64', 'cp36-cp36m'),
- PythonArtifact('manylinux1', 'x64', 'cp37-cp37m'),
- PythonArtifact('manylinux1', 'x64', 'cp38-cp38'),
PythonArtifact('manylinux2010', 'x64', 'cp27-cp27m'),
PythonArtifact('manylinux2010', 'x64', 'cp27-cp27mu'),
PythonArtifact('manylinux2010', 'x64', 'cp35-cp35m'),