From 47a9d943ad4df1187f4e169f14ef6e2dfee33a1b Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Wed, 3 Dec 2025 15:36:32 +0100 Subject: CI: Retry unhealthies check Change-Id: I56d389467ffc24f554b421a18df52310d2978f10 Signed-off-by: Michal Nasiadka --- tests/check-failure.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/check-failure.sh b/tests/check-failure.sh index 0aa4cfc17..db599bf1f 100755 --- a/tests/check-failure.sh +++ b/tests/check-failure.sh @@ -96,7 +96,18 @@ check_failure() { fi if [[ -n "$unhealthy_containers" ]]; then - exit 1; + # NOTE(mnasiadka): try checking them again, because usually they are healthy now + ech "Discovered unhealthy containers - sleeping 60 seconds and retrying check" + sleep 60 + if [ "$CONTAINER_ENGINE" = "docker" ]; then + check_docker_unhealthies + elif [ "$CONTAINER_ENGINE" = "podman" ]; then + check_podman_unhealthies + fi + # NOTE(mnasiadka): If they're unhealthy again - let's fail + if [[ -n "$unhealthy_containers" ]]; then + exit 1; + fi fi if [[ -n "$failed_containers" ]]; then -- cgit v1.2.3