mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Merge pull request #12425 from appwrite/codex/fix-benchmark-health-wait
Wait for benchmark health check
This commit is contained in:
1 file changed
+18
@@ -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
|
||||
|
||||
Reference in new issue
Block a user