mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
ci: switch CentOS 7 test to Cirrus CI
On Cirrus CI we can run tests on the orignal CentOS 7 kernel. The kernel is rather old, but on GitHub Actions we a 5.8 kernel and a containerized CentOS 7 user space not much is working correctly anymore. With this commit CentOS 7 based tests are no longer running on GitHub Actions but on Cirrus CI. Signed-off-by: Adrian Reber <areber@redhat.com>
This commit is contained in:
parent
1fbe876242
commit
6ef01d3e6a
2 changed files with 29 additions and 15 deletions
29
.cirrus.yml
29
.cirrus.yml
|
|
@ -48,3 +48,32 @@ task:
|
|||
|
||||
build_script: |
|
||||
make -C scripts/ci local SKIP_CI_PREP=1 CC=gcc CD_TO_TOP=1
|
||||
|
||||
task:
|
||||
name: CentOS 7 based test
|
||||
environment:
|
||||
HOME: "/root"
|
||||
CIRRUS_WORKING_DIR: "/tmp/criu"
|
||||
|
||||
compute_engine_instance:
|
||||
image_project: centos-cloud
|
||||
image: family/centos-7
|
||||
platform: linux
|
||||
cpu: 4
|
||||
memory: 8G
|
||||
|
||||
setup_script: |
|
||||
ln -sf /usr/include/google/protobuf/descriptor.proto images/google/protobuf/descriptor.proto
|
||||
yum install -y findutils gcc git gnutls-devel iproute iptables libaio-devel libasan libcap-devel libnet-devel libnl3-devel make procps-ng protobuf-c-devel protobuf-devel protobuf-python python python-flake8 python-ipaddress python2-future python2-junit_xml python-yaml python-six sudo tar which e2fsprogs python2-pip rubygem-asciidoctor libselinux-devel
|
||||
# Even with selinux in permissive mode the selinux tests will be executed
|
||||
# The Cirrus CI user runs as a service from selinux point of view and is
|
||||
# much more restricted than a normal shell (system_u:system_r:unconfined_service_t:s0)
|
||||
# The test case above (vagrant-fedora-no-vdso) should run selinux tests in enforcing mode
|
||||
setenforce 0
|
||||
# Enable user namespaces on CentOS 7
|
||||
echo 10000 > /proc/sys/user/max_user_namespaces
|
||||
# Adapt sudoers to our needs
|
||||
echo 'root ALL=(ALL:ALL) ALL' | EDITOR='tee -a' visudo
|
||||
|
||||
build_script: |
|
||||
make -C scripts/ci local SKIP_CI_PREP=1 CC=gcc CD_TO_TOP=1 ZDTM_IGNORE_TAINT=1 ZDTM_OPTS="-x zdtm/static/socket-raw -x zdtm/static/child_subreaper_existing_child -x zdtm/static/fifo_upon_unix_socket01 -x zdtm/static/overmount_sock -x zdtm/static/tempfs_overmounted"
|
||||
|
|
|
|||
15
.github/workflows/centos-test.yml
vendored
15
.github/workflows/centos-test.yml
vendored
|
|
@ -1,15 +0,0 @@
|
|||
name: CentOS Test
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-20.04
|
||||
strategy:
|
||||
matrix:
|
||||
target: [centos7]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Run CentOS ${{ matrix.target }} Test
|
||||
run: sudo -E make -C scripts/ci ${{ matrix.target }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue