Skip to content

Commit

Permalink
ci: increase verbosity of wait script
Browse files Browse the repository at this point in the history
  • Loading branch information
BrendanGalloway committed Mar 29, 2022
1 parent 1faabd3 commit 3d7ace1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build/ci/waitForCIJob.bash
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
set -e
set -x

echo "Waiting for the test job to finish"
echo "GitHub Run ID $GITHUB_RUN_ID"
Expand All @@ -8,7 +9,10 @@ echo "GitHub Run ID $GITHUB_RUN_ID"

while [[ $(kubectl get job -l ci-run=$GITHUB_RUN_ID,test-name=${TEST_NAME:-pytest} -o json | jq -r '.items[0].status.succeeded') != 1 ]]
do
sleep 5;
kubectl get job -l ci-run=$GITHUB_RUN_ID,test-name=${TEST_NAME:-pytest}
kuebctl get pod -l ci-run=$GITHUB_RUN_ID,test-name=${TEST_NAME:-pytest} || true
kubectl logs -l ci-run=$GITHUB_RUN_ID,test-name=${TEST_NAME:-pytest} --tail 10 || true
sleep 30;
done

echo "Job is complete"
echo "Job is complete"

0 comments on commit 3d7ace1

Please sign in to comment.