Files
EvoFirewall/scripts/ci/linux-agent-container-entry.sh
Denozordec a37ffdf061
quality / changes (push) Successful in 6s
quality / commitlint (push) Skipped
quality / openapi (push) Successful in 27s
quality / web (push) Successful in 49s
quality / api (push) Successful in 1m13s
quality / linux-agent-smoke (push) Failing after 1m31s
quality / docker-check (push) Failing after 4m11s
CD / quality (push) Failing after 8m19s
CD / publish (push) Skipped
fix(ci): isolate agent smoke in namespace-capable helper
2026-10-26 13:23:24 +07:00

11 lines
525 B
Bash

#!/usr/bin/env bash
set -Eeuo pipefail
# Fail before any firewall work if the daemon/kernel still forbids namespaces.
if ! unshare --net --mount --pid --fork --mount-proc true; then
echo 'Linux agent helper cannot create required namespaces. A rootful Docker daemon with namespace/netfilter support and the documented helper capabilities is required; smoke was not run.' >&2
exit 1
fi
python3 -B scripts/ci/linux-agent-fixture.test.py
export EVOFW_TEST_ETC_DATA=/work/helper-etc
exec bash scripts/ci/linux-netns-smoke.sh