Skip to content

Commit

Permalink
fix: change generate traffic order and expand timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
tamirdavid1 committed Nov 18, 2024
1 parent cbf1ce4 commit bfa8d79
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions tests/e2e/cli-upgrade/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,24 +114,29 @@ spec:
- script:
timeout: 60s
content: |
# Apply the job
kubectl apply -f 05-generate-traffic.yaml
# Wait for the job to complete
job_name=$(kubectl get -f 05-generate-traffic.yaml -o=jsonpath='{.metadata.name}')
kubectl wait --for=condition=complete job/$job_name
# Delete the job
kubectl delete -f 05-generate-traffic.yaml
while true; do
# Apply the job
kubectl apply -f 05-generate-traffic.yaml
# Wait for the job to complete
job_name=$(kubectl get -f 05-generate-traffic.yaml -o=jsonpath='{.metadata.name}')
kubectl wait --for=condition=complete job/$job_name
# Delete the job
kubectl delete -f 05-generate-traffic.yaml
# wait for traces to be available
sleep 8
# Run the wait-for-trace script
echo "Running TraceQL test at $(date)"
../../common/traceql_runner.sh tracesql/wait-for-trace.yaml
if [ $? -eq 0 ]; then
break
else
sleep 3
../../common/flush_traces.sh
sleep 5
fi
done
- name: Verify Trace - Context Propagation
Expand Down

0 comments on commit bfa8d79

Please sign in to comment.