Skip to content

Commit 5405046

Browse files
committed
Increase dashboards timeout & store logs on failure
Signed-off-by: Shenoy Pratik <[email protected]>
1 parent 5cfe888 commit 5405046

File tree

2 files changed

+24
-10
lines changed

2 files changed

+24
-10
lines changed

.github/workflows/ftr-e2e-dashboards-observability-test.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,20 @@ jobs:
150150
- name: Check If OpenSearch Dashboards Is Ready
151151
if: ${{ runner.os == 'Linux' }}
152152
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."
156155
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."
158157
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
160167

161168
- name: Checkout Dashboards Functioanl Test Repo
162169
uses: actions/checkout@v2

.github/workflows/integration-tests-workflow.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,20 @@ jobs:
163163
- name: Check If OpenSearch Dashboards Is Ready
164164
if: ${{ runner.os == 'Linux' }}
165165
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."
169168
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."
171170
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
173180

174181
- name: Install Cypress
175182
run: |

0 commit comments

Comments
 (0)