Skip to content

Commit

Permalink
Fix flaky CLC installation in tests (#757)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ldziedziul authored Jun 19, 2024
1 parent 9829d4c commit 3fe5a84
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/scripts/simple-smoke-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 3fe5a84

Please sign in to comment.