Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/test-apparmor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
Comment thread
greptile-apps[bot] marked this conversation as resolved.
Resolved

# ---------------------------------------------------------------------------
# Deploy AppArmor DaemonSets + ConfigMaps via helm template + kubectl apply
# ---------------------------------------------------------------------------
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading