From cab59fc251a3377379b51fea3a58d2dcffb13116 Mon Sep 17 00:00:00 2001 From: Josef Schlehofer Date: Thu, 13 Aug 2026 11:20:51 +0200 Subject: [PATCH] ci: test_entrypoint: drop the kmods feed before installing packages The kmods feed only exists for the exact kernel the rootfs image was built with. Once the branch moves to a newer kernel, the old kmods directory is removed from the download server and opkg update inside the container fails with a 404, taking down every runtime test even though the tested package built fine. The tests install the built packages from the local packages_ci feed and do not need the kmods feed, so drop it from the feed configuration instead of failing on it. The apk-based branches generate the same kmods entry in distfeeds.list (see include/feeds.mk in openwrt.git), so treat both package managers the same way. --- .github/scripts/test_entrypoint.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/scripts/test_entrypoint.sh b/.github/scripts/test_entrypoint.sh index 3baa934..c38bfe9 100755 --- a/.github/scripts/test_entrypoint.sh +++ b/.github/scripts/test_entrypoint.sh @@ -270,10 +270,19 @@ if is_opkg; then # it's possible to do it for the local feed only, which has signing removed. # This fixes running CI tests. sed -i '/check_signature/d' /etc/opkg.conf + # The kmods feed only exists for the exact kernel the rootfs image was + # built with. Once the branch moves to a newer kernel, the old kmods + # directory is removed from the download server and the update fails + # with a 404, taking down every runtime test. The tests install the + # built packages from the local feed and do not need the kmods feed, + # so drop it instead of failing on it. + sed -i '/\/kmods\//d' /etc/opkg/distfeeds.conf opkg update opkg install $TEST_PACKAGES elif is_apk; then echo "/ci/packages.adb" >> /etc/apk/repositories.d/distfeeds.list + # Drop the kmods feed for the same reason as in the opkg case above. + sed -i '/\/kmods\//d' /etc/apk/repositories.d/distfeeds.list apk update apk add $TEST_PACKAGES fi