Skip to content

Commit

Permalink
ci: make await_binderhub smarter
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Oct 10, 2021
1 parent abdb8c8 commit 1c35ceb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ jobs:
if: matrix.test == 'helm'
run: |
. ci/common
await_binderhub
await_binderhub binderhub-test
echo curl http://localhost:30901/health to check BinderHub\'s health
curl http://localhost:30901/health --max-time 5 --retry 5 --retry-delay 1 --retry-connrefused
Expand Down
15 changes: 13 additions & 2 deletions ci/common
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ await_jupyterhub() {
}

await_binderhub() {
await_jupyterhub
kubectl rollout status --watch --timeout 300s deployment/binder
# accepts the release name as a parameter
await_jupyterhub \
&& kubectl rollout status --watch --timeout 300s deployment/binder \
&& (
if kubectl get "daemonset/${1}-dind" > /dev/null 2>&1; then
kubectl rollout status --watch --timeout 300s "daemonset/${1}-dind"
fi
)
&& (
if kubectl get "daemonset/${1}-image-cleaner" > /dev/null 2>&1; then
kubectl rollout status --watch --timeout 300s "daemonset/${1}-image-cleaner"
fi
)
}

0 comments on commit 1c35ceb

Please sign in to comment.