Skip to content

Commit

Permalink
Merge pull request #478 from atheo89/increase-timeout
Browse files Browse the repository at this point in the history
Increase timeouts as they were too short.
  • Loading branch information
openshift-merge-bot[bot] authored Nov 29, 2024
2 parents 65bef9f + 4efd65f commit c37b412
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/kubeflow-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,13 @@ jobs:
"quay.io/opendatahub/kubeflow-notebook-controller:1.9-${GIT_HASH}"
"quay.io/opendatahub/odh-notebook-controller:1.9-${GIT_HASH}"
)
# Poll for image readiness total timeout=15m
MAX_ATTEMPTS=10
# Sleep for 5 minutes before starting polling
echo "Sleeping for 5 minutes before starting polling..."
sleep 300
# Poll for image readiness total timeout=20m
MAX_ATTEMPTS=13
SLEEP_DURATION=90
for image in "${IMAGES[@]}"; do
for (( i=1; i<=MAX_ATTEMPTS; i++ )); do
Expand Down Expand Up @@ -105,9 +110,9 @@ jobs:
exit 1
fi
# Polling loop to wait for the PR to be merged total timeout=1h
MAX_ATTEMPTS=10
SLEEP_DURATION=360
# Polling loop to wait for the PR to be merged total timeout=5h
MAX_ATTEMPTS=30
SLEEP_DURATION=600
for (( i=1; i<=MAX_ATTEMPTS; i++ )); do
echo "Checking if PR #$PR_NUMBER is merged (Attempt $i/$MAX_ATTEMPTS)..."
Expand Down

0 comments on commit c37b412

Please sign in to comment.