Skip to content
Snippets Groups Projects
Unverified Commit 289bb2cb authored by Alexander V. Tikhonov's avatar Alexander V. Tikhonov Committed by Alexander Turenko
Browse files

build: add CentOS 8 into CI / CD

Added build + test jobs in GitLab-CI and build + test + deploy jobs on
Travis-CI for CentOS 8.

Updated testing dependencies in the RPM spec to follow the new Python 2
package naming scheme that was introduced in CentOS 8: it uses
'python2-' prefix rather then 'python-'.

CentOS 8 does not provide python2-gevent and python2-greenlet packages,
so they were pushed to https://packagecloud.io/packpack/backports
repository. This repository is enabled in our build image
(packpack/packpack:el-8) by default. Those dependencies are build-time,
so nothing was changed for a user. The source RPM packages were gathered
from https://cbs.centos.org

.

Disabled app-tap/pwd.test.lua on CentOS 8 due to systemd-nss issue,
which was not worked around properly. Filed #4592 to resolved it in the
future.

Eliminated libunwind runtime dependency (and libunwind-devel build
dependency) on CentOS 8, because the base system does not provide it.
fiber.info() backtraces and printing of a backtrace after a crash will
not be available on this system. Hopefully we'll fix it in the future,
filed #4611 on this.

Closes #4543

Reviewed-by: default avatarAlexander Turenko <alexander.turenko@tarantool.org>
Reviewed-by: default avatarIgor Munkin <imun@tarantool.org>
(cherry picked from commit e3d9d8c9)
parent 29039cba
No related branches found
No related tags found
No related merge requests found
...@@ -152,6 +152,12 @@ centos_7: ...@@ -152,6 +152,12 @@ centos_7:
OS: 'el' OS: 'el'
DIST: '7' DIST: '7'
centos_8:
<<: *deploy_test_definition
variables:
OS: 'el'
DIST: '8'
fedora_28: fedora_28:
<<: *deploy_test_definition <<: *deploy_test_definition
variables: variables:
......
...@@ -43,6 +43,9 @@ jobs: ...@@ -43,6 +43,9 @@ jobs:
- name: "CentOS 7 build + test + deploy RPM" - name: "CentOS 7 build + test + deploy RPM"
env: OS=el DIST=7 env: OS=el DIST=7
if: branch = "2.2" if: branch = "2.2"
- name: "CentOS 8 build + test + deploy RPM"
env: OS=el DIST=8
if: branch = "2.2"
- name: "Fedora 28 build + test + deploy RPM" - name: "Fedora 28 build + test + deploy RPM"
env: OS=fedora DIST=28 env: OS=fedora DIST=28
if: branch = "2.2" if: branch = "2.2"
......
...@@ -44,7 +44,14 @@ Requires(preun): chkconfig ...@@ -44,7 +44,14 @@ Requires(preun): chkconfig
Requires(preun): initscripts Requires(preun): initscripts
%endif %endif
%bcond_without backtrace # enabled by default %if 0%{?rhel} >= 8
# gh-4611: Disable backtraces on CentOS 8 by default due to lack
# of libunwind package in the base system.
%bcond_with backtrace
%else
# Enable backtraces by default.
%bcond_without backtrace
%endif
%if %{with backtrace} %if %{with backtrace}
BuildRequires: libunwind-devel BuildRequires: libunwind-devel
...@@ -63,12 +70,18 @@ BuildRequires: libunwind-devel ...@@ -63,12 +70,18 @@ BuildRequires: libunwind-devel
%endif %endif
# For tests # For tests
%if (0%{?fedora} >= 22 || 0%{?rhel} >= 7) %if (0%{?fedora} >= 22 || 0%{?rhel} == 7)
BuildRequires: python >= 2.7 BuildRequires: python >= 2.7
BuildRequires: python-six >= 1.9.0 BuildRequires: python-six >= 1.9.0
BuildRequires: python-gevent >= 1.0 BuildRequires: python-gevent >= 1.0
BuildRequires: python-yaml >= 3.0.9 BuildRequires: python-yaml >= 3.0.9
%endif %endif
%if 0%{?rhel} >= 8
BuildRequires: python2 >= 2.7
BuildRequires: python2-six >= 1.9.0
BuildRequires: python2-gevent >= 1.0
BuildRequires: python2-yaml >= 3.0.9
%endif
Name: tarantool Name: tarantool
# ${major}.${major}.${minor}.${patch}, e.g. 1.6.8.175 # ${major}.${major}.${minor}.${patch}, e.g. 1.6.8.175
......
import subprocess
# Disable the test on CentOS 8 until gh-4592 will be resolved.
try:
cmd = ['rpm', '--eval', '%{centos_ver}']
if subprocess.check_output(cmd).strip() == '8':
self.skip = 1
except:
pass
# vim: set ft=python:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment