File tree 2 files changed +24
-10
lines changed 2 files changed +24
-10
lines changed Original file line number Diff line number Diff line change @@ -150,13 +150,20 @@ jobs:
150
150
- name : Check If OpenSearch Dashboards Is Ready
151
151
if : ${{ runner.os == 'Linux' }}
152
152
run : |
153
- cd ./OpenSearch-Dashboards
154
- if timeout 60 grep -q "http server running" <(tail -n +1 -f dashboard.log); then
155
- echo "OpenSearch Dashboards started successfully."
153
+ if timeout 1200 grep -q "bundles compiled successfully after" <(tail -n0 -f dashboard.log); then
154
+ echo "OpenSearch Dashboards compiled successfully."
156
155
else
157
- echo "Timeout of 60 seconds reached. OpenSearch Dashboards did not start successfully ."
156
+ echo "Timeout for 1200 seconds reached. OpenSearch Dashboards did not finish compiling ."
158
157
exit 1
159
- fi&
158
+ fi
159
+ working-directory : OpenSearch-Dashboards
160
+
161
+ - name : Upload Dashboards logs
162
+ uses : actions/upload-artifact@v4
163
+ if : failure()
164
+ with :
165
+ name : dashboard.logs
166
+ path : OpenSearch-Dashboards/dashboard.log
160
167
161
168
- name : Checkout Dashboards Functioanl Test Repo
162
169
uses : actions/checkout@v2
Original file line number Diff line number Diff line change @@ -163,13 +163,20 @@ jobs:
163
163
- name : Check If OpenSearch Dashboards Is Ready
164
164
if : ${{ runner.os == 'Linux' }}
165
165
run : |
166
- cd ./OpenSearch-Dashboards
167
- if timeout 60 grep -q "http server running" <(tail -n +1 -f dashboard.log); then
168
- echo "OpenSearch Dashboards started successfully."
166
+ if timeout 1200 grep -q "bundles compiled successfully after" <(tail -n0 -f dashboard.log); then
167
+ echo "OpenSearch Dashboards compiled successfully."
169
168
else
170
- echo "Timeout of 60 seconds reached. OpenSearch Dashboards did not start successfully ."
169
+ echo "Timeout for 1200 seconds reached. OpenSearch Dashboards did not finish compiling ."
171
170
exit 1
172
- fi&
171
+ fi
172
+ working-directory : OpenSearch-Dashboards
173
+
174
+ - name : Upload Dashboards logs
175
+ uses : actions/upload-artifact@v4
176
+ if : failure()
177
+ with :
178
+ name : dashboard.logs
179
+ path : OpenSearch-Dashboards/dashboard.log
173
180
174
181
- name : Install Cypress
175
182
run : |
You can’t perform that action at this time.
0 commit comments