mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
ci: add Fedora Rawhide based test on Cirrus
We have ability to use nested virtualization on Cirrus, and already have "Vagrant Fedora based test (no VDSO)" test, let's do analogical for Fedora Rawhide to get fresh kernel. Suggested-by: Adrian Reber <areber@redhat.com> Signed-off-by: Alexander Mikhalitsyn <alexander.mikhalitsyn@virtuozzo.com>
This commit is contained in:
parent
03aff7e823
commit
267c1fdade
3 changed files with 38 additions and 2 deletions
21
.cirrus.yml
21
.cirrus.yml
|
|
@ -19,6 +19,27 @@ task:
|
|||
build_script: |
|
||||
make -C scripts/ci vagrant-fedora-no-vdso
|
||||
|
||||
task:
|
||||
name: Vagrant Fedora Rawhide based test
|
||||
environment:
|
||||
HOME: "/root"
|
||||
CIRRUS_WORKING_DIR: "/tmp/criu"
|
||||
|
||||
compute_engine_instance:
|
||||
image_project: cirrus-images
|
||||
image: family/docker-kvm
|
||||
platform: linux
|
||||
cpu: 4
|
||||
memory: 16G
|
||||
nested_virtualization: true
|
||||
|
||||
setup_script: |
|
||||
scripts/ci/apt-install make gcc pkg-config git perl-modules iproute2 kmod wget cpu-checker
|
||||
sudo kvm-ok
|
||||
ln -sf /usr/include/google/protobuf/descriptor.proto images/google/protobuf/descriptor.proto
|
||||
build_script: |
|
||||
make -C scripts/ci vagrant-fedora-rawhide
|
||||
|
||||
task:
|
||||
name: CentOS 8 based test
|
||||
environment:
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ export CONTAINER_TERMINAL
|
|||
ifeq ($(UNAME),x86_64)
|
||||
# On anything besides x86_64 Travis is running unprivileged LXD
|
||||
# containers which do not support running docker with '--privileged'.
|
||||
CONTAINER_OPTS := --rm $(CONTAINER_TERMINAL) --privileged -v /lib/modules:/lib/modules --tmpfs /run
|
||||
CONTAINER_OPTS := --rm $(CONTAINER_TERMINAL) --privileged --userns=host --cgroupns=host -v /lib/modules:/lib/modules --tmpfs /run
|
||||
else
|
||||
CONTAINER_OPTS := --rm -v /lib/modules:/lib/modules --tmpfs /run
|
||||
endif
|
||||
|
|
@ -92,7 +92,10 @@ setup-vagrant:
|
|||
vagrant-fedora-no-vdso: setup-vagrant
|
||||
./vagrant.sh fedora-no-vdso
|
||||
|
||||
.PHONY: setup-vagrant vagrant-fedora-no-vdso
|
||||
vagrant-fedora-rawhide: setup-vagrant
|
||||
./vagrant.sh fedora-rawhide
|
||||
|
||||
.PHONY: setup-vagrant vagrant-fedora-no-vdso vagrant-fedora-rawhide
|
||||
|
||||
%:
|
||||
$(MAKE) -C ../build $@$(target-suffix)
|
||||
|
|
|
|||
|
|
@ -56,4 +56,16 @@ fedora-no-vdso() {
|
|||
ssh default 'cd /vagrant/criu/test; sudo ./zdtm.py run -t zdtm/transition/pidfd_store_sk --rpc --pre 2'
|
||||
}
|
||||
|
||||
fedora-rawhide() {
|
||||
#
|
||||
# Workaround the problem:
|
||||
# error running container: error from /usr/bin/crun creating container for [...]: sd-bus call: Transport endpoint is not connected
|
||||
# Let's just use runc instead of crun
|
||||
# see also https://github.com/kata-containers/tests/issues/4283
|
||||
#
|
||||
ssh default 'sudo dnf remove -y crun || true'
|
||||
ssh default sudo dnf install -y podman runc
|
||||
ssh default 'cd /vagrant; tar xf criu.tar; cd criu; sudo -E make -C scripts/ci fedora-rawhide CONTAINER_RUNTIME=podman BUILD_OPTIONS="--security-opt seccomp=unconfined"'
|
||||
}
|
||||
|
||||
$1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue