mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
ci: More fixes and tweaks
+ ubuntu
+ fix build by adding --disable-ruby
+ fix a test failure due to missing python libvirt import
+ fedora
+ use `--privileged` docker flag which also handles seccomp disable
+ this makes some network tests work, so enable them
+ exclude a flakey test
+ better document remaining disabled tests
Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
24
.github/workflows/main.yml
vendored
24
.github/workflows/main.yml
vendored
@@ -38,7 +38,8 @@ jobs:
|
||||
run: |
|
||||
# Git is needed to run git submodule command.
|
||||
# json-c is missing from the Ubuntu package deps.
|
||||
sudo apt-get -y install git libjson-c-dev
|
||||
# python libvirt module used unconditionally in a python test
|
||||
sudo apt-get -y install git libjson-c-dev python3-libvirt
|
||||
|
||||
- name: Fix broken Ubuntu kernel permissions
|
||||
run: |
|
||||
@@ -59,7 +60,9 @@ jobs:
|
||||
- name: Compile the code
|
||||
run: |
|
||||
autoreconf -fiv
|
||||
./configure --enable-werror
|
||||
# --disable-ruby needed for
|
||||
# https://github.com/libguestfs/libguestfs/issues/309
|
||||
./configure --enable-werror --disable-ruby
|
||||
make -j
|
||||
|
||||
- name: Run the quick test
|
||||
@@ -99,7 +102,7 @@ jobs:
|
||||
|
||||
container:
|
||||
image: quay.io/fedora/fedora:${{ matrix.release }}
|
||||
options: --security-opt seccomp=unconfined
|
||||
options: --privileged
|
||||
|
||||
steps:
|
||||
- name: Identify the system
|
||||
@@ -141,15 +144,18 @@ jobs:
|
||||
|
||||
- name: Run the full tests
|
||||
run: |
|
||||
# guestunmount exit(3) doesn't trigger for root user
|
||||
# https://github.com/libguestfs/libguestfs/issues/307
|
||||
export SKIP_TEST_GUESTUNMOUNT_FD=1
|
||||
# error: passt exited with status 1
|
||||
export SKIP_TEST_NETWORK_SH=1
|
||||
# error: passt exited with status 1
|
||||
|
||||
# test-fuse-unmount-race.sh is flakey:
|
||||
# ./test-fuse-umount-race.sh: wait for guestmount to exit failed after 10 seconds
|
||||
export SKIP_TEST_FUSE_UMOUNT_RACE_SH=1
|
||||
|
||||
# test-rsync.sh is busted for root user
|
||||
# rsync_out: '/dir2/' to 'rsync://root@169.254.2.2:65257/dest/': rsync: [generator] failed to set times on "." (in dest): Operation not permitted (1)
|
||||
export SKIP_TEST_RSYNC_SH=1
|
||||
# error: internal_autosync: umount: /sysroot: umount: /sysroot:
|
||||
# target is busy
|
||||
export SKIP_RHBZ1011907_1165785_SH=1
|
||||
|
||||
if ! make check; then
|
||||
find -name test-suite.log -exec cat {} \;
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user