Skip to content

Commit

Permalink
CLOUDP-281382: Wait more for chart release verirication (#356)
Browse files Browse the repository at this point in the history
The helm chart release takes around a minute to happen as it
depends on a pages-build-deployment to complete for the new
helm index to be published.
  • Loading branch information
josvazg authored Nov 12, 2024
1 parent b19002a commit 6e9ddab
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/actions/releaser/cr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,17 +111,17 @@ check_charts_released() {
check_chart_version_released() {
local chart_name=$1
local chart_version=$2
local retries=5
local delay=1
local retries=30
local pause=10

echo "Checking helm chart ${chart_name} was released for version ${chart_version}"
for ((i=0; i<retries; i++)); do
update_helm_repo
if chart_released "${chart_name}" "${chart_version}"; then
return 0
fi
echo "$(date -u --iso-8601=seconds): Retrying in ${delay} seconds... ($((i+1))/$retries)"
sleep "${delay}"
delay=$((delay*2))
echo "$(date -u --iso-8601=seconds): Retrying..."
reset_helm_repo
echo "Retrying to check on ${chart_name}:${chart_version} in ${pause} seconds..."
sleep "${pause}"
done
return 1
}
Expand Down

0 comments on commit 6e9ddab

Please sign in to comment.