ci: port Vagrant Fedora Rawhide test to GitHub Actions

Cirrus CI reports "Failed to start an instance:
FAILED_PRECONDITION: Monthly compute limit exceeded!" making the
Vagrant Fedora Rawhide test unusable.

Replace the Cirrus CI Vagrant-based Fedora Rawhide test with a
Lima VM-based equivalent in GitHub Actions. This follows the same
pattern used by the runc project (lima-vm/lima-actions).

The new vagrant-fedora-rawhide-test job:
- Starts a Lima Fedora VM with KVM acceleration
- Installs the latest vanilla kernel
- Reboots the VM to activate the new kernel
- Runs the fedora-rawhide CI target inside a podman container

Assisted-by: Claude:claude-opus-4-6
Signed-off-by: Adrian Reber <areber@redhat.com>
This commit is contained in:
Adrian Reber 2026-03-14 14:30:41 +00:00 committed by Alexander Mikhalitsyn
parent f880ce65ce
commit 39cbdd02e8
No known key found for this signature in database
GPG key ID: B1F47F5CB05B4FA3
4 changed files with 99 additions and 20 deletions

View file

@ -131,6 +131,41 @@ jobs:
# FIXME: https://github.com/containers/podman/issues/14920
run: sudo -E XDG_RUNTIME_DIR= make -C scripts/ci fedora-rawhide CONTAINER_RUNTIME=podman BUILD_OPTIONS="--security-opt seccomp=unconfined"
vagrant-fedora-rawhide-test:
name: Vagrant Fedora Rawhide based test
needs: [alpine-test]
runs-on: ubuntu-24.04
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Install Lima
uses: lima-vm/lima-actions/setup@v1
- name: Cache Lima images
uses: actions/cache@v4
with:
path: ~/.cache/lima
key: lima-fedora-${{ github.sha }}
restore-keys: lima-fedora-
- name: Start Fedora VM
run: limactl start --plain --name=default --cpus=4 --memory=12 template://fedora
- name: Copy source into VM
run: |
lima sudo mkdir -p /home/criu
lima sudo chown "$(lima whoami)" /home/criu
limactl copy -r . default:/home/criu
- name: Setup VM
run: lima sudo /home/criu/scripts/ci/lima.sh fedora-rawhide-setup
- name: Reboot VM to activate new kernel
run: |
limactl stop default
limactl start default
- name: Show VM info
run: |
lima uname -a
lima cat /proc/cmdline
- name: Run tests
run: ssh -tt lima-default sudo -i /home/criu/scripts/ci/lima.sh fedora-rawhide-test
gcov-test:
needs: [alpine-test]
runs-on: ubuntu-22.04