Skip to content

Commit

Permalink
E2E: exclude terminating pods when wait_util_all_pod_ready (#366)
Browse files Browse the repository at this point in the history
* exclude terminating pods when wait_util_all_pod_ready

Signed-off-by: KfreeZ <[email protected]>
  • Loading branch information
KfreeZ authored Aug 29, 2024
1 parent f9204f0 commit 39fb55e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/scripts/e2e/gmc_xeon_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function validate_audioqa() {
accessUrl=$(kubectl get gmc -n $AUDIOQA_NAMESPACE -o jsonpath="{.items[?(@.metadata.name=='audioqa')].status.accessUrl}")
byte_str=$(kubectl exec "$CLIENT_POD" -n $AUDIOQA_NAMESPACE -- curl $accessUrl -s -X POST -d '{"byte_str": "UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA", "parameters":{"max_new_tokens":64, "do_sample": true, "streaming":false}}' -H 'Content-Type: application/json' | jq .byte_str)
if [ -z "$byte_str" ]; then
echo "audioqa failed, please check the the!"
echo "audioqa failed!"
exit 1
fi
echo "Audioqa response check succeed!"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scripts/e2e/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function wait_until_all_pod_ready() {
timeout=$2

echo "Wait for all pods in NS $namespace to be ready..."
pods=$(kubectl get pods -n $namespace --no-headers -o custom-columns=":metadata.name")
pods=$(kubectl get pods -n $namespace --no-headers | grep -v "Terminating" | awk '{print $1}')
# Loop through each pod
echo "$pods" | while read -r line; do
pod_name=$line
Expand Down

0 comments on commit 39fb55e

Please sign in to comment.