From c49508009f457b9fea4ee394cac00a66a597b894 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Fri, 29 May 2026 13:58:00 +0530 Subject: [PATCH] Wait for benchmark health check --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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