ci: install newer criu for almalinux-8

We are seeing a ton on flakes on almalinux-8 CI job, all caused by criu
inability to freeze a cgroup. This was worked around in criu [1], but
obviously we can't rely on a distro vendor to update the package.

Let's use a copr (thanks to Adrian Reber!)

[1]: https://github.com/checkpoint-restore/criu/pull/2545

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2025-04-16 12:10:28 -07:00
parent e55fe63aed
commit b520f750ef

View File

@@ -31,7 +31,7 @@ task:
install_dependencies_script: |
case $DISTRO in
*-8)
yum config-manager --set-enabled powertools # for glibc-static
dnf config-manager --set-enabled powertools # for glibc-static
;;
*-9)
dnf config-manager --set-enabled crb # for glibc-static
@@ -50,6 +50,15 @@ task:
done
[ $? -eq 0 ] # fail if yum failed
case $DISTRO in
*-8)
# Use newer criu (with https://github.com/checkpoint-restore/criu/pull/2545).
# Alas we have to disable container-tools for that.
dnf -y module disable container-tools
dnf -y copr enable adrian/criu-el8
dnf -y install criu
esac
# Install Go.
URL_PREFIX="https://go.dev/dl/"
# Find out the latest minor release URL.