]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ci: do apt-get update before installing required modules
authorChristian Hopps <chopps@labn.net>
Sat, 8 Jun 2024 19:37:47 +0000 (15:37 -0400)
committerChristian Hopps <chopps@labn.net>
Sat, 8 Jun 2024 21:29:19 +0000 (17:29 -0400)
- Use `uname -r` to also install specific module versions since
  with github runners the running kernel can become out-dated with
  the deployed packages.

Signed-off-by: Christian Hopps <chopps@labn.net>
.github/workflows/build-test-docker.yml

index de9f620c9d5f5aeea8fe3f52e19d90e86f645e03..3f53f32d3a8c18ecc6121ebd5eb6a321d49f837f 100644 (file)
@@ -68,11 +68,13 @@ jobs:
       - name: Run topotests
         run: |
           uname -a
-          sudo apt-get install -y linux-modules-extra-azure || true
-          sudo apt-get install -y python3-xmltodict || true
+          MODPKGVER=$(uname -r)
+          sudo apt-get update -y
+          # Github is running old kernels but installing newer packages :(
+          sudo apt-get install -y linux-modules-extra-azure linux-modules-${MODPKGVER} linux-modules-extra-${MODPKGVER} python3-xmltodict
           sudo modprobe vrf || true
-          sudo modprobe mpls-iptunnel || true
-          sudo modprobe mpls-router || true
+          sudo modprobe mpls-iptunnel
+          sudo modprobe mpls-router
           docker load --input /tmp/frr-ubuntu22.tar
 
           if ! grep CONFIG_IP_MROUTE_MULTIPLE_TABLES=y /boot/config*; then