diff options
| author | Michal Nasiadka <mnasiadka@gmail.com> | 2025-12-03 15:36:32 +0100 |
|---|---|---|
| committer | Michal Nasiadka <mnasiadka@gmail.com> | 2025-12-03 15:19:50 +0000 |
| commit | 47a9d943ad4df1187f4e169f14ef6e2dfee33a1b (patch) | |
| tree | 0a3fb2475a07f260898b4d7306b24f92ae6dee09 /tests | |
| parent | 192ef4c86172d8b3dd63bbc58429274aee40bdc4 (diff) | |
| download | kolla-ansible-47a9d943ad4df1187f4e169f14ef6e2dfee33a1b.tar.gz kolla-ansible-47a9d943ad4df1187f4e169f14ef6e2dfee33a1b.zip | |
CI: Retry unhealthies check
Change-Id: I56d389467ffc24f554b421a18df52310d2978f10
Signed-off-by: Michal Nasiadka <mnasiadka@gmail.com>
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/check-failure.sh | 13 |
1 files changed, 12 insertions, 1 deletions
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 |
