File tree Expand file tree Collapse file tree 1 file changed +1
-27
lines changed Expand file tree Collapse file tree 1 file changed +1
-27
lines changed Original file line number Diff line number Diff line change @@ -115,33 +115,7 @@ jobs:
115115 echo "INSTANCE_ID=$(terraform output langchain_service_instance_id)" >> $GITHUB_ENV
116116
117117 - name : Wait for Gen AI Chatbot service to be ready
118- run : |
119- echo "Waiting for service to be ready at http://${{ env.INSTANCE_IP }}:8000"
120- for i in {1..60}; do
121- if curl -f -s "http://${{ env.INSTANCE_IP }}:8000/health" > /dev/null 2>&1; then
122- echo "Service is ready!"
123- break
124- fi
125- echo "Attempt $i: Service not ready yet, waiting 10 seconds..."
126- sleep 10
127- done
128-
129- # Final check
130- if ! curl -f -s "http://${{ env.INSTANCE_IP }}:8000/health" > /dev/null 2>&1; then
131- echo "Service failed to become ready after 10 minutes"
132- exit 1
133- fi
134-
135- - name : Generate traffic
136- run : |
137- cd sample-apps/traffic-generator/genai
138- chmod +x generate_traffic.sh
139- export SERVER_URL="http://${{ env.INSTANCE_IP }}:8000"
140- export NUM_REQUESTS="5"
141- export DELAY_SECONDS="5"
142- export TIMEOUT="30"
143- export TRACE_ID="Root=${XRAY_TRACE_ID};Parent=$(openssl rand -hex 8);Sampled=1"
144- ./generate_traffic.sh
118+ run : sleep 120
145119
146120 - name : Validate generated logs
147121 run : ./gradlew validator:run --args='-c python/ec2/adot-genai/log-validation.yml
You can’t perform that action at this time.
0 commit comments