From 2d3f73886f0e3764c44d85629fa947d0584e3693 Mon Sep 17 00:00:00 2001 From: Adam0Brien Date: Thu, 21 Nov 2024 11:19:11 +0000 Subject: [PATCH] test workflow --- .github/workflows/e2e-test.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index 11f6ee2c..b85557bd 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -18,7 +18,7 @@ jobs: - name: Monitor Pods in Kind run: | - for i in {1..200}; do + for i in {1..100}; do MIGRATE_STATUS=$(kubectl get pods -l job-name=spicedb-cr-migrate -o jsonpath='{.status.containerStatuses[0].ready}') if [ "$MIGRATE_STATUS" = "Completed" ]; then echo "SpiceDB migration completed." @@ -27,7 +27,10 @@ jobs: echo "SpiceDB migration failed." exit 1 fi - + sleep 1 + done + + for i in {1..100}; do ZK_STATUS=$(kubectl get pods my-cluster-zookeeper-0 -o jsonpath='{.status.phase}') ZK_READY=$(kubectl get pods my-cluster-zookeeper-0 -o jsonpath='{.status.containerStatuses[0].ready}') if [ "$ZK_STATUS" = "Running" ] && [ "$ZK_READY" = "true" ]; then @@ -35,8 +38,9 @@ jobs: exit 0 else echo "Zookeeper is not ready yet. Status: $ZK_STATUS, Ready: $ZK_READY" + fi - sleep 2 + sleep 1 done echo "Timeout reached while waiting for Zookeeper to be ready."