Skip to content

Commit 8a03585

Browse files
committed
fix(test-suite): remove --remove-orphans from selective cleanup
cleanup_single_step and cleanup_from_step used --remove-orphans with a single compose file, causing Docker Compose to tear down every container in the project not defined in that file. This destroyed the entire stack when running e.g. --only test-suite.
1 parent 7930337 commit 8a03585

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test-suite/fhevm/scripts/deploy-fhevm-stack.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ cleanup_from_step() {
708708
fi
709709
if [[ -f "$env_file" ]]; then
710710
log_info "Stopping $component services..."
711-
docker compose -p "${PROJECT}" --env-file "$env_file" -f "$compose_file" down -v --remove-orphans 2>/dev/null || true
711+
docker compose -p "${PROJECT}" --env-file "$env_file" -f "$compose_file" down -v 2>/dev/null || true
712712
fi
713713
fi
714714
done
@@ -737,7 +737,7 @@ cleanup_single_step() {
737737
fi
738738
if [[ -f "$env_file" ]]; then
739739
log_info "Stopping $compose services..."
740-
docker compose -p "${PROJECT}" --env-file "$env_file" -f "$compose_file" down -v --remove-orphans 2>/dev/null || true
740+
docker compose -p "${PROJECT}" --env-file "$env_file" -f "$compose_file" down -v 2>/dev/null || true
741741
fi
742742
fi
743743

0 commit comments

Comments
 (0)