diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 08804bd723..8a7537cf1d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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