diff --git a/.github/test-apparmor.sh b/.github/test-apparmor.sh index 357a9f79..1abae8f3 100755 --- a/.github/test-apparmor.sh +++ b/.github/test-apparmor.sh @@ -88,6 +88,18 @@ sysctl -w kernel.apparmor_restrict_unprivileged_userns=1 || { echo " WARNING: sysctl not available (older kernel?), test may not be meaningful." } +# --------------------------------------------------------------------------- +# ip6table_filter — the code executor's IPv6 iptables rules need it +# --------------------------------------------------------------------------- +# The code executor (4.98.0-edge and later) applies an ip6tables rule at +# startup and exits when the filter table is missing. The runner kernel +# doesn't have the module loaded, and the container can't load it. +echo "=== Loading ip6table_filter ===" + +modprobe ip6table_filter || { + echo " WARNING: could not load ip6table_filter; the code executor's IPv6 rules will fail." +} + # --------------------------------------------------------------------------- # Deploy AppArmor DaemonSets + ConfigMaps via helm template + kubectl apply # --------------------------------------------------------------------------- diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 823a66de..bc778163 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -57,10 +57,11 @@ jobs: exit 0 fi - # Render tests exercise the chart too. - changed_tests=$(git diff --name-only "origin/main...HEAD" -- '.github/test_*.py') + # Render tests and the AppArmor/executor integration scripts exercise + # the chart too. + changed_tests=$(git diff --name-only "origin/main...HEAD" -- '.github/test_*.py' '.github/test-*.sh') if [[ -n "$changed_tests" ]]; then - echo "Chart render tests changed: $changed_tests" + echo "Chart tests changed: $changed_tests" echo "run=true" >> "$GITHUB_OUTPUT" echo "changed=" >> "$GITHUB_OUTPUT" exit 0