SERVER-35281: Adding Community Support for zSeries RHEL 67

This commit is contained in:
Cristopher Stauffer 2018-05-31 16:08:41 -04:00
parent 8b4d58e36f
commit 91d1ad4978
2 changed files with 36 additions and 3 deletions

View File

@ -41,7 +41,7 @@ import tempfile
import time
# The MongoDB names for the architectures we support.
ARCH_CHOICES = ["x86_64", "arm64"]
ARCH_CHOICES = ["x86_64", "arm64", "s390x"]
# Made up names for the flavors of distribution we package for.
DISTROS = ["suse", "debian", "redhat", "ubuntu", "amazon", "amazon2"]
@ -329,7 +329,7 @@ class Distro(object):
if re.search("(suse)", self.dname):
return ["suse11", "suse12"]
elif re.search("(redhat|fedora|centos)", self.dname):
return ["rhel70", "rhel71", "rhel72", "rhel62", "rhel55"]
return ["rhel70", "rhel71", "rhel72", "rhel62", "rhel55", "rhel67"]
elif self.dname in ['amazon', 'amazon2']:
return [self.dname]
elif self.dname == 'ubuntu':
@ -625,7 +625,7 @@ def make_deb_repo(repo, distro, build_os):
Label: mongodb
Suite: %s
Codename: %s/mongodb-org
Architectures: amd64 arm64
Architectures: amd64 arm64 s390x
Components: %s
Description: MongoDB packages
""" % (distro.repo_os_version(build_os), distro.repo_os_version(build_os), distro.repo_component())

View File

@ -10702,6 +10702,39 @@ buildvariants:
distros:
- rhel62-large
- name: rhel-67-s390x
display_name: SSL RHEL 6.7 s390x
run_on:
- rhel67-zseries-test
batchtime: 1440 # 1 day
expansions:
compile_flags: --ssl MONGO_DISTMOD=rhel67 --release -j3 CCFLAGS="-march=z9-109 -mtune=z10" --variables-files=etc/scons/mongodbtoolchain_gcc.vars --use-s390x-crc32=off
num_jobs_available: $(grep -c ^processor /proc/cpuinfo)
test_flags: --excludeWithAnyTags=requires_mmapv1
has_packages: true
packager_script: packager.py
packager_arch: s390x
packager_distro: rhel67
push_path: linux
push_bucket: downloads.mongodb.org
push_name: linux
push_arch: s390x-rhel67
repo_edition: org
gorootvars: 'PATH="/opt/go1.8/go/bin:/opt/mongodbtoolchain/v2/bin/:$PATH" GOROOT=/opt/go1.8/go CC=/opt/mongodbtoolchain/v2/bin/s390x-mongodb-linux-gcc'
build_mongoreplay: true
tooltags: "-tags ssl"
display_tasks:
- *unittests
tasks:
- name: compile_all_run_unittests_TG
distros:
- rhel67-zseries-build
- name: jsCore
- name: ssl
- name: push
distros:
- rhel62-large
###########################################
# Ubuntu buildvariants #
###########################################