Files
computer-playbook/scripts/tests/deploy/act/down_act_outer.sh
T
kevinveenbirkenbachandClaude Opus 4.8 f414c8df27 fix(test): harden act-swarm cleanup
down_act_outer: match the act outer runner by name prefix instead of a hardcoded image ancestor, so it works regardless of ACT_PLATFORM_IMAGE. 13_cleanup: warn loudly when a node survives 'docker rm -f' (kernel D-state / stuck NFS, reboot needed) instead of swallowing the error.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-23 19:29:39 +02:00

14 lines
472 B
Bash
Executable File

#!/usr/bin/env bash
set +e
# Match act's outer-runner name prefix, not the image: ACT_PLATFORM_IMAGE varies the ancestor.
ids="$(docker ps -aq --filter "name=^act-")"
if [ -n "${ids}" ]; then
echo "→ removing act outer container(s): ${ids}"
# Word-splitting on $ids is intentional: docker rm -f wants each ID as its own argv element.
# shellcheck disable=SC2086
docker rm -f ${ids} >/dev/null 2>&1
else
echo "→ no act outer container present (nothing to do)"
fi