mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +00:00
ci: Add vanilla next kernel test variant to Lima CI job
Refactor lima.sh to extract shared helpers (_common_setup and _common_test) and add a second variant that uses the @kernel-vanilla/next COPR repository. Convert the Lima CI job to a matrix with both stable and next variants so we catch upstream kernel changes (such as the UDPLITE removal in 7.1) early. Assisted-by: Claude Code (claude-opus-4-6):claude-opus-4-6@default Signed-off-by: Adrian Reber <areber@redhat.com>
This commit is contained in:
parent
189ad2c6fe
commit
09d7f7a2ec
2 changed files with 37 additions and 9 deletions
|
|
@ -4,8 +4,10 @@
|
|||
# the Fedora Rawhide based CI tests with a vanilla kernel.
|
||||
# It mirrors the logic from vagrant.sh's setup() and fedora-rawhide().
|
||||
#
|
||||
# lima.sh fedora-rawhide-setup
|
||||
# lima.sh fedora-rawhide-test
|
||||
# lima.sh fedora-stable-setup
|
||||
# lima.sh fedora-stable-test
|
||||
# lima.sh fedora-next-setup
|
||||
# lima.sh fedora-next-test
|
||||
|
||||
|
||||
set -e
|
||||
|
|
@ -13,18 +15,16 @@ set -x
|
|||
|
||||
CRIU_DIR="${CRIU_DIR:-/home/criu}"
|
||||
|
||||
fedora-rawhide-setup() {
|
||||
_common_setup() {
|
||||
# Disable sssd to avoid zdtm test failures in pty04 due to sssd socket
|
||||
systemctl mask sssd
|
||||
|
||||
# Upgrade the kernel to the latest vanilla one
|
||||
dnf -y copr enable @kernel-vanilla/stable
|
||||
# The shellcheck tool misunderstands the "do" to be from a loop
|
||||
# shellcheck disable=SC1010
|
||||
dnf -y do --action=upgrade \* --action=install make podman
|
||||
}
|
||||
|
||||
fedora-rawhide-test() {
|
||||
_common_test() {
|
||||
# Increase the max thread limit for the thread-bomb test
|
||||
sysctl -w kernel.threads-max=100000
|
||||
|
||||
|
|
@ -60,4 +60,24 @@ fedora-rawhide-test() {
|
|||
ZDTM_OPTS="-x zdtm/static/socket-tcpbuf-local"
|
||||
}
|
||||
|
||||
fedora-stable-setup() {
|
||||
# Upgrade the kernel to the latest vanilla stable one
|
||||
dnf -y copr enable @kernel-vanilla/stable
|
||||
_common_setup
|
||||
}
|
||||
|
||||
fedora-stable-test() {
|
||||
_common_test
|
||||
}
|
||||
|
||||
fedora-next-setup() {
|
||||
# Upgrade the kernel to the latest vanilla next one
|
||||
dnf -y copr enable @kernel-vanilla/next
|
||||
_common_setup
|
||||
}
|
||||
|
||||
fedora-next-test() {
|
||||
_common_test
|
||||
}
|
||||
|
||||
"$@"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue