From a40fe21cea36c809507395ea6e9a4db5f10d0ac6 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Wed, 2 Oct 2024 14:21:31 -0400 Subject: [PATCH] Fix button label (#2130) (#2131) * Fix button label * Debug * look for server running instead of bundles compiled * increase timeout to 900 seconds * Actually change timeout to 900 seconds * Try compile step * Bash * Fix messaging + look for start now that compile is different step --------- (cherry picked from commit dc3e5a93d60897cf45498d07ec35db4820c39a17) Signed-off-by: Derek Ho Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] --- .github/actions/run-cypress-tests/action.yml | 16 +++++++++++----- public/apps/configuration/panels/get-started.tsx | 2 +- .../test/__snapshots__/get-started.test.tsx.snap | 2 +- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/actions/run-cypress-tests/action.yml b/.github/actions/run-cypress-tests/action.yml index d77adf5a2..11caaf9c2 100644 --- a/.github/actions/run-cypress-tests/action.yml +++ b/.github/actions/run-cypress-tests/action.yml @@ -67,6 +67,12 @@ runs: fi shell: bash + - name: Compile OpenSearch Dashboards + run: | + cd OpenSearch-Dashboards + node scripts/build_opensearch_dashboards_platform_plugins --no-examples --workers=10 --verbose + shell: bash + - name: Run OpenSearch Dashboards with provided configuration if: ${{ runner.os == 'Linux' }} run: | @@ -84,13 +90,13 @@ runs: run: | cd ./OpenSearch-Dashboards echo "Start checking OpenSearch Dashboards." - for i in {1..60}; do - if grep -q "bundles compiled successfully after" "dashboard.log"; then - echo "OpenSearch Dashboards compiled successfully." + for i in {1..6}; do + if grep -q "http server running" "dashboard.log"; then + echo "OpenSearch Dashboards started successfully." break fi - if [ $i -eq 60 ]; then - echo "Timeout for 600 seconds reached. OpenSearch Dashboards did not finish compiling." + if [ $i -eq 6 ]; then + echo "Timeout for 60 seconds reached. OpenSearch Dashboards did not start." exit 1 fi sleep 10 diff --git a/public/apps/configuration/panels/get-started.tsx b/public/apps/configuration/panels/get-started.tsx index 47a7b3a30..51cfd3a14 100644 --- a/public/apps/configuration/panels/get-started.tsx +++ b/public/apps/configuration/panels/get-started.tsx @@ -61,7 +61,7 @@ const addBackendStep = { diff --git a/public/apps/configuration/panels/test/__snapshots__/get-started.test.tsx.snap b/public/apps/configuration/panels/test/__snapshots__/get-started.test.tsx.snap index 001b3b6c9..180d9330f 100644 --- a/public/apps/configuration/panels/test/__snapshots__/get-started.test.tsx.snap +++ b/public/apps/configuration/panels/test/__snapshots__/get-started.test.tsx.snap @@ -431,7 +431,7 @@ exports[`Get started (landing page) renders when backend configuration is enable