Wait for benchmark health check

This commit is contained in:
Chirag Aggarwal committed 2026-05-29 13:58:00 +05:30
1 parent 24f1dfdbb1
commit c49508009f
1 file changed
+18
+18
View File
@@ -761,6 +761,15 @@ jobs:
run: |
docker tag ${{ env.IMAGE }}:before ${{ env.IMAGE }}
docker compose up -d --wait --no-build
for attempt in $(seq 1 5); do
if curl -fsS http://localhost/v1/health; then
break
fi
if [ "$attempt" -eq 5 ]; then
exit 1
fi
sleep 1
done
- name: Prepare benchmark files
run: rm -f benchmark-before-summary.json benchmark-after-summary.json benchmark-before-samples.json benchmark-after-samples.json
@@ -816,6 +825,15 @@ jobs:
run: |
docker tag ${{ env.IMAGE }}:after ${{ env.IMAGE }}
docker compose up -d --wait --no-build
for attempt in $(seq 1 5); do
if curl -fsS http://localhost/v1/health; then
break
fi
if [ "$attempt" -eq 5 ]; then
exit 1
fi
sleep 1
done
- name: Benchmark after
id: benchmark_after