Skip to content

Commit

Permalink
[Forwardport main] Minor changes for cypress workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Liang <[email protected]>
  • Loading branch information
RyanL1997 committed Dec 15, 2023
1 parent c775d85 commit a277bc4
Showing 1 changed file with 10 additions and 17 deletions.
27 changes: 10 additions & 17 deletions .github/workflows/integration-tests-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Dashboards observability plugin E2E test
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:

on: [pull_request, push]

env:
PLUGIN_NAME: dashboards-observability
OPENSEARCH_DASHBOARDS_VERSION: 'main'
Expand All @@ -11,6 +10,7 @@ env:

jobs:
tests:
name: Run test group of ${{ matrix.testgroups }}
env:
# Prevents extra Cypress installation progress messages
CI: 1
Expand All @@ -25,7 +25,6 @@ jobs:
java: [11]
testgroups: [
app_analytics_test,
notebooks_test,
datasources_test,
event_analytics_test,
integrations_test,
Expand Down Expand Up @@ -130,18 +129,12 @@ jobs:
if: ${{ runner.os == 'Linux' }}
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."
break
fi
if [ $i -eq 60 ]; then
echo "Timeout for 600 seconds reached. OpenSearch Dashboards did not finish compiling."
exit 1
fi
sleep 10
done
if timeout 600 grep -q "bundles compiled successfully after" <(tail -n0 -f dashboard.log); then
echo "OpenSearch Dashboards compiled successfully."
else
echo "Timeout for 600 seconds reached. OpenSearch Dashboards did not finish compiling."
exit 1
fi
- name: Install Cypress
run: |
Expand Down

0 comments on commit a277bc4

Please sign in to comment.