From d5cb0e7d0b580831297a557cee63407d2a454225 Mon Sep 17 00:00:00 2001 From: sophia Date: Mon, 20 Jan 2025 12:24:14 -0800 Subject: [PATCH] debug --- .github/workflows/test_local_integration.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test_local_integration.yaml b/.github/workflows/test_local_integration.yaml index 97152a659..7b8b24961 100644 --- a/.github/workflows/test_local_integration.yaml +++ b/.github/workflows/test_local_integration.yaml @@ -92,6 +92,12 @@ jobs: working-directory: ${{ steps.init.outputs.directory }} run: nebari deploy --config ${{ steps.init.outputs.config }} --disable-prompt + - name: Try to get state + working-directory: ${{ steps.init.outputs.directory }} + run: | + kubectl kub get secret -n default tfstate-default-projectname-dev-07-kubernetes-services --template={{.data}} | cut -d ":" -f2 | cut -d "]" -f1 | base64 --decode | gzip -d --to-stdout > terraform_state + cat terraform_state | jq | grep conda-store-service-account | sed -n '2 p' | tr -s ' ' | sed "s/\"config.json\": \"//" | sed -e 's/\\\"/\"/g' -e 's/^.//g' -e 's/.$//g' | jq '."service-tokens-mapping"."conda-store-service-account"' + - name: Health check uses: ./.github/actions/health-check with: @@ -172,12 +178,13 @@ jobs: # install conda-store-server python -m pip install conda-store/conda-store-server - - name: Get conda store token from terraform state + - name: Get conda-store token from terraform state id: conda-store-token working-directory: ${{ steps.init.outputs.directory }} run: | - cat stages/07-kubernetes-services/terraform.tfstate | jq | grep conda-store-service-account | sed -n '2 p' | tr -s ' ' | sed "s/\"config.json\": \"//" | sed -e 's/\\\"/\"/g' -e 's/^.//g' -e 's/.$//g' | jq '."service-tokens-mapping"."conda-store-service-account"' - echo "CONDA_STORE_TOKEN=$(cat stages/07-kubernetes-services/terraform.tfstate | jq | grep conda-store-service-account | sed -n '2 p' | tr -s ' ' | sed "s/\"config.json\": \"//" | sed -e 's/\\\"/\"/g' -e 's/^.//g' -e 's/.$//g' | jq '."service-tokens-mapping"."conda-store-service-account"')" >> "$GITHUB_OUTPUT" + kubectl get secret -n default tfstate-default-projectname-dev-07-kubernetes-services --template={{.data}} | cut -d ":" -f2 | cut -d "]" -f1 | base64 --decode | gzip -d --to-stdout > terraform_state + cat terraform_state | jq | grep conda-store-service-account | sed -n '2 p' | tr -s ' ' | sed "s/\"config.json\": \"//" | sed -e 's/\\\"/\"/g' -e 's/^.//g' -e 's/.$//g' | jq '."service-tokens-mapping"."conda-store-service-account"' + echo "CONDA_STORE_TOKEN=$(cat terraform_state | jq | grep conda-store-service-account | sed -n '2 p' | tr -s ' ' | sed "s/\"config.json\": \"//" | sed -e 's/\\\"/\"/g' -e 's/^.//g' -e 's/.$//g' | jq '."service-tokens-mapping"."conda-store-service-account"')" >> "$GITHUB_OUTPUT" - name: Run conda-store-server user_journey tests env: