File tree 1 file changed +10
-17
lines changed
1 file changed +10
-17
lines changed Original file line number Diff line number Diff line change 1
1
name : Dashboards observability plugin E2E test
2
- on :
3
- schedule :
4
- - cron : ' 0 0 * * *'
5
- workflow_dispatch :
2
+
3
+ on : [pull_request, push]
4
+
6
5
env :
7
6
PLUGIN_NAME : dashboards-observability
8
7
OPENSEARCH_DASHBOARDS_VERSION : ' main'
11
10
12
11
jobs :
13
12
tests :
13
+ name : Run test group of ${{ matrix.testgroups }}
14
14
env :
15
15
# Prevents extra Cypress installation progress messages
16
16
CI : 1
25
25
java : [11]
26
26
testgroups : [
27
27
app_analytics_test,
28
- notebooks_test,
29
28
datasources_test,
30
29
event_analytics_test,
31
30
integrations_test,
@@ -130,18 +129,12 @@ jobs:
130
129
if : ${{ runner.os == 'Linux' }}
131
130
run : |
132
131
cd ./OpenSearch-Dashboards
133
- echo "Start checking OpenSearch Dashboards."
134
- for i in {1..60}; do
135
- if grep -q "bundles compiled successfully after" "dashboard.log"; then
136
- echo "OpenSearch Dashboards compiled successfully."
137
- break
138
- fi
139
- if [ $i -eq 60 ]; then
140
- echo "Timeout for 600 seconds reached. OpenSearch Dashboards did not finish compiling."
141
- exit 1
142
- fi
143
- sleep 10
144
- done
132
+ if timeout 600 grep -q "bundles compiled successfully after" <(tail -n0 -f dashboard.log); then
133
+ echo "OpenSearch Dashboards compiled successfully."
134
+ else
135
+ echo "Timeout for 600 seconds reached. OpenSearch Dashboards did not finish compiling."
136
+ exit 1
137
+ fi
145
138
146
139
- name : Install Cypress
147
140
run : |
You can’t perform that action at this time.
0 commit comments