Skip to content

Commit

Permalink
HARMONY-1808: No longer run the Giovanni adapter as part of the harmo…
Browse files Browse the repository at this point in the history
…ny in a box test in Github.
  • Loading branch information
chris-durbin committed Nov 19, 2024
1 parent 5c56831 commit 4e91f08
Showing 1 changed file with 0 additions and 49 deletions.
49 changes: 0 additions & 49 deletions .github/workflows/harmony-in-a-box.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,52 +116,3 @@ jobs:
exit 1
fi
- name: Wait for Giovanni pod to be ready
run: |
for i in {1..10}; do
kubectl -n harmony get pods
running_count=$(kubectl -n harmony get pods -l name="giovanni-adapter" --no-headers | grep "2/2" | wc -l)
if [ "$running_count" -eq 1 ]; then
echo "Giovanni pod is ready! Continue with the workflow."
break
else
echo "Giovanni pod is not ready, wait..."
sleep 60
fi
done
# If Giovanni pod is still not ready, fail the workflow
if [ "$running_count" -ne 1 ]; then
echo "Failed: Giovanni pod is not ready after 10 minutes."
exit 1
fi
- name: Test Giovanni request
id: giovanni
run: |
GIOVANNI_RESP=$(curl -Ln -bj "http://localhost:3000/C1225808238-GES_DISC/ogc-api-coverages/1.0.0/collections/Grid%2FprecipitationCal/coverage/rangeset?format=text%2Fcsv&point=0.76,-3.8&subset=time(%222020-01-06T12%3A00%3A00Z%22%3A%222020-01-06T16%3A00%3A00Z%22)")
GIOVANNI_URL=$(echo "$GIOVANNI_RESP" | jq -r '.links[] | select(.rel == "self") | .href')
echo "status_url: $GIOVANNI_URL"
echo "status_url=$GIOVANNI_URL" >> "$GITHUB_OUTPUT"
- name: Check Giovanni request final status
run: |
for i in {1..30}; do
request_status==$(curl -Ln -bj "${{ steps.giovanni.outputs.status_url }}" | jq -r '.status')
# remove the leading = that shows up only in github actions
GIOVANNI_STATUS="${request_status#=}"
if [[ "$GIOVANNI_STATUS" != "running" ]]; then
break
else
echo "Giovanni request running, wait..."
sleep 10
fi
done
echo "Giovanni request final status is $GIOVANNI_STATUS"
if [ "$GIOVANNI_STATUS" != "successful" ]; then
echo "Error: The final status is not successful."
exit 1
else
echo "The final status is successful."
fi

0 comments on commit 4e91f08

Please sign in to comment.