From fa890c0006abec7151c76f903467cd7e42696187 Mon Sep 17 00:00:00 2001 From: Dmitry Kondratyev Date: Tue, 8 Aug 2023 23:05:03 -0400 Subject: [PATCH] update CI workflow --- .github/workflows/ci.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index cfcbaa4..47a4ebe 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -14,10 +14,10 @@ jobs: with: version: v3.12.1 - - uses: actions/setup-python@v4 - with: - python-version: '3.9' - check-latest: true + # - uses: actions/setup-python@v4 + # with: + # python-version: '3.9' + # check-latest: true # - name: Set up chart-testing # uses: helm/chart-testing-action@v2.5.0 @@ -36,7 +36,7 @@ jobs: run: | POD_NAME=$(kubectl get pod -l app=jupyterhub -l component=hub -o jsonpath='{.items[*].metadata.name}') while true; do - POD_STATUS=$(kubectl get pod $POD_NAME -o jsonpath='{.items[*].status.phase}') + POD_STATUS=$(kubectl get pod $POD_NAME -o jsonpath='{.status.phase}') if [[ "$POD_STATUS" == "Failed" ]]; then echo "Pod $POD_NAME is in a Failed state." exit 1 @@ -45,6 +45,8 @@ jobs: break else echo "Pod $POD_NAME is in $POD_STATUS state. Waiting..." + kubectl describe pod $POD_NAME + echo "--------" kubectl logs $POD_NAME | tail echo "--------" sleep 10 # Adjust the sleep interval as needed