Skip to content

Commit 99ba750

Browse files
author
irisdingbj
committed
add more info for tgi pod
Signed-off-by: irisdingbj <shaojun.ding@intel.com>
1 parent f5bd7db commit 99ba750

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/scripts/e2e/go_test.sh

+11-5
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function install_gmc() {
1919
kubectl apply -f $(pwd)/config/rbac/gmc-manager-rbac.yaml
2020
kubectl create configmap gmcyaml -n $SYSTEM_NAMESPACE --from-file $(pwd)/config/manifests
2121
kubectl apply -f $(pwd)/config/manager/gmc-manager.yaml
22-
22+
2323
# Wait until the gmc conroller pod is ready
2424
wait_until_pod_ready "gmc-controller" $SYSTEM_NAMESPACE "gmc-controller"
2525
}
@@ -47,7 +47,7 @@ function validate_chatqna() {
4747
kubectl create ns $APP_NAMESPACE
4848
sed -i "s|namespace: chatqa|namespace: $APP_NAMESPACE|g" $(pwd)/config/samples/chatQnA_xeon.yaml
4949
kubectl apply -f $(pwd)/config/samples/chatQnA_xeon.yaml
50-
50+
5151

5252

5353
output=$(kubectl get pods)
@@ -57,15 +57,20 @@ function validate_chatqna() {
5757
echo "Waiting for the chatqa router service to be ready..."
5858
wait_until_pod_ready "chatqna router" $APP_NAMESPACE "router-service"
5959

60+
# Wait until the tgi pod is ready
61+
TGI_POD_NAME=$(kubectl get pods --namespace=$APP_NAMESPACE | grep ^tgi-service | awk '{print $1}')
62+
kubectl describe pod $TGI_POD_NAME -n $APP_NAMESPACE
63+
kubectl wait --for=condition=ready pod/$TGI_POD_NAME --namespace=$APP_NAMESPACE --timeout=300s
64+
6065

6166
# deploy client pod for testing
62-
kubectl create deployment client-test -n $APP_NAMESPACE --image=python:3.8.13 -- sleep infinity
67+
kubectl create deployment client-test -n $APP_NAMESPACE --image=python:3.8.13 -- sleep infinity
6368

6469
# wait for client pod ready
6570
wait_until_pod_ready "client-test" $APP_NAMESPACE "client-test"
6671
# giving time to populating data
67-
sleep 180
68-
kubectl get pods -n $APP_NAMESPACE
72+
sleep 120
73+
kubectl get pods -n $APP_NAMESPACE
6974
# send request to chatqnA
7075
export CLIENT_POD=$(kubectl get pod -n $APP_NAMESPACE -l app=client-test -o jsonpath={.items..metadata.name})
7176
echo "$CLIENT_POD"
@@ -181,3 +186,4 @@ case "$1" in
181186
echo "Unknown function: $1"
182187
;;
183188
esac
189+

0 commit comments

Comments
 (0)