From 3fe5a8428cc70e1e4b1d8f58578991c09dc88840 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Dziedziul?= Date: Wed, 19 Jun 2024 19:37:22 +0200 Subject: [PATCH] Fix flaky CLC installation in tests (#757) Downloading the latest version often fails: ``` Hazelcast CLC Installer (c) 2023 Hazelcast, Inc. INFO Creating the Home directory: /home/runner/.hazelcast ERROR could not determine the latest version Error: Process completed with exit code 1. ``` Added retry mechanism for CLC installation. See also: https://hazelcast.slack.com/archives/C0319N7HV8W/p1718023112329759 --- .github/scripts/simple-smoke-test.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/scripts/simple-smoke-test.sh b/.github/scripts/simple-smoke-test.sh index 67de5ed3..873274f9 100755 --- a/.github/scripts/simple-smoke-test.sh +++ b/.github/scripts/simple-smoke-test.sh @@ -35,7 +35,11 @@ function test_docker_image() { } function install_clc() { - curl https://hazelcast.com/clc/install.sh | bash + while ! curl https://hazelcast.com/clc/install.sh | bash + do + echo "Retrying clc installation..." + sleep 3 + done export PATH=$PATH:$HOME/.hazelcast/bin clc config add default cluster.name=dev cluster.address=localhost }