diff --git a/.github/workflows/performance_testing.yml b/.github/workflows/performance_testing.yml index 9716abdb4250..65acd3b47563 100644 --- a/.github/workflows/performance_testing.yml +++ b/.github/workflows/performance_testing.yml @@ -58,10 +58,27 @@ jobs: - name: Run bootstrap run: yarn osd bootstrap + # - name: Start OpenSearch Dashboards + # run: | + # yarn wait-on http://localhost:9200 + # yarn start --no-base-path & yarn wait-on http://localhost:5601 + + - name: Wait for OpenSearch to be ready + run: | + until curl -s http://localhost:9200 >/dev/null; do + echo "Waiting for OpenSearch..." + sleep 10 + done + echo "OpenSearch is up!" + - name: Start OpenSearch Dashboards run: | - yarn wait-on http://localhost:9200 - yarn start --no-base-path & yarn wait-on http://localhost:5601 + yarn start --no-base-path & + until curl -s http://localhost:5601 >/dev/null; do + echo "Waiting for OpenSearch Dashboards..." + sleep 10 + done + echo "OpenSearch Dashboards is up!" - name: Mock data run: |