From 42855bf363074f3396b61e1f433d6d727e59f310 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 2 Oct 2024 17:44:46 +0000 Subject: [PATCH] Fix button label (#2130) * Fix button label Signed-off-by: Derek Ho * Debug Signed-off-by: Derek Ho * look for server running instead of bundles compiled Signed-off-by: Derek Ho * increase timeout to 900 seconds Signed-off-by: Derek Ho * Actually change timeout to 900 seconds Signed-off-by: Derek Ho * Try compile step Signed-off-by: Derek Ho * Bash Signed-off-by: Derek Ho * Fix messaging + look for start now that compile is different step Signed-off-by: Derek Ho --------- Signed-off-by: Derek Ho (cherry picked from commit dc3e5a93d60897cf45498d07ec35db4820c39a17) Signed-off-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