Skip to content

[ci] Load ip6table_filter in the AppArmor test so the code executor starts - #433

Merged
mertbozfakioglu merged 1 commit into
mainfrom
mertbozfakioglu/ci-apparmor-ip6table-filter
Nov 24, 2026
Merged

mertbozfakioglu merged 1 commit into
mainfrom
mertbozfakioglu/ci-apparmor-ip6table-filter

Conversation

@mertbozfakioglu

Copy link
Copy Markdown
Contributor

Summary

test-apparmor has failed on main since Nov 19, and it fails every PR that touches the chart (for example #422). It is the only failing job; kube-install-validated fails because of it.

The test runs the newest X.Y.Z-edge executor images. 4.98.0-edge (published Nov 18) has a code executor that applies an ip6tables rule at startup and exits when it can't:

ip6tables v1.8.9 (legacy): can't initialize ip6tables table `filter': Table does not exist (do you need to insmod?)
Failed to apply the ip6tables rule for fe80::/10 or to confirm IPv6 is off. Set DISABLE_IPV6_IPTABLES_RULES=true to start without the IPv6 rules.

The GitHub runner kernel doesn't have ip6table_filter loaded, and the container can't load it.

Run Executor image test-apparmor
main, Nov 16–17 4.93.0-edge pass
main at 5a8be82, Nov 19 4.98.0-edge fail
#422, Nov 24 4.98.0-edge fail

Changes

  • .github/test-apparmor.sh: modprobe ip6table_filter next to the existing sysctl setup, so the executor's IPv6 rules are still tested rather than turned off with DISABLE_IPV6_IPTABLES_RULES=true.
  • .github/workflows/ci.yaml: the chart jobs now also run when .github/test-*.sh changes, as they already do for .github/test_*.py. Without this, a PR that only changes these scripts skips test-apparmor, so this fix couldn't be checked on its own PR.

Testing

  • bash -n on the script; the workflow file parses; the new pathspec matches only test-apparmor.sh and test-executor-nsjail.sh.
  • The AppArmor test needs a Linux runner with root, so this PR's test-apparmor run is the real check.

Follow-up for the executor owners

A customer node without the IPv6 filter table would crash-loop the code executor on 4.98+ in the same way. Today the chart has no way to set DISABLE_IPV6_IPTABLES_RULES on the code executor (#430 adds codeExecutor.env).

🤖 Generated with Claude Code

…tarts

The test runs the newest X.Y.Z-edge executor images. From 4.98.0-edge the
code executor applies an ip6tables rule at startup and exits when the
filter table is missing, which it is on the GitHub runner kernel. Load
ip6table_filter next to the existing sysctl setup.

Also run the chart jobs when .github/test-*.sh changes, as they already do
for .github/test_*.py, so a change to these scripts is tested on its PR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The CI-only fix is safe to merge and keeps the executor’s IPv6 rules enabled.

Reviews (2) · Last reviewed commit: "[ci] Load ip6table_filter in the AppArmo..." · Reviewed by Greptile

Comment thread .github/test-apparmor.sh Resolved
@mertbozfakioglu
mertbozfakioglu marked this pull request as draft November 24, 2026 23:13
@mertbozfakioglu

Copy link
Copy Markdown
Contributor Author

@greptile

@mertbozfakioglu
mertbozfakioglu marked this pull request as ready for review November 24, 2026 23:17
@mertbozfakioglu
mertbozfakioglu merged commit 331a47e into main Nov 24, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants