Skip to content

Fully autonomous AI Agents system capable of performing complex penetration testing tasks

fix(e2e): remove the sandbox data volumes on Tier-2 teardown

Sergey Kozyrenkoa69c9bf57ad2
diff --git a/frontend/e2e/tools/run-local-tier.sh b/frontend/e2e/tools/run-local-tier.sh
index bbda709e..2e83c0f5 100755
--- a/frontend/e2e/tools/run-local-tier.sh
+++ b/frontend/e2e/tools/run-local-tier.sh
@@ -23,6 +23,10 @@ compose() {
# sandboxes for any flow id starting with 9.
remove_e2e_sandboxes() {
docker ps -aq --filter 'name=^/?pentagi-terminal-9[0-9]{4,}$' | xargs -r docker rm -f
+ # Each sandbox also gets a `<container>-data` volume, created on the socket
+ # outside the compose project — removing the container leaves it behind, so
+ # every Tier-2 run used to add one more dangling volume.
+ docker volume ls -q --filter 'name=^pentagi-terminal-9[0-9]{4,}-data$' | xargs -r docker volume rm
}
cleanup() {