Skip to content

Commit 7998608

Browse files
committed
revert to checking older running message
Signed-off-by: Shenoy Pratik <[email protected]>
1 parent 5405046 commit 7998608

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

Diff for: .github/workflows/ftr-e2e-dashboards-observability-test.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,13 @@ jobs:
150150
- name: Check If OpenSearch Dashboards Is Ready
151151
if: ${{ runner.os == 'Linux' }}
152152
run: |
153-
if timeout 1200 grep -q "bundles compiled successfully after" <(tail -n0 -f dashboard.log); then
154-
echo "OpenSearch Dashboards compiled successfully."
153+
cd ./OpenSearch-Dashboards
154+
if timeout 1200 grep -q "http server running" <(tail -n +1 -f dashboard.log); then
155+
echo "OpenSearch Dashboards started successfully."
155156
else
156-
echo "Timeout for 1200 seconds reached. OpenSearch Dashboards did not finish compiling."
157+
echo "Timeout of 1200 seconds reached. OpenSearch Dashboards did not start successfully."
157158
exit 1
158-
fi
159-
working-directory: OpenSearch-Dashboards
159+
fi&
160160
161161
- name: Upload Dashboards logs
162162
uses: actions/upload-artifact@v4

Diff for: .github/workflows/integration-tests-workflow.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,13 @@ jobs:
163163
- name: Check If OpenSearch Dashboards Is Ready
164164
if: ${{ runner.os == 'Linux' }}
165165
run: |
166-
if timeout 1200 grep -q "bundles compiled successfully after" <(tail -n0 -f dashboard.log); then
167-
echo "OpenSearch Dashboards compiled successfully."
166+
cd ./OpenSearch-Dashboards
167+
if timeout 1200 grep -q "http server running" <(tail -n +1 -f dashboard.log); then
168+
echo "OpenSearch Dashboards started successfully."
168169
else
169-
echo "Timeout for 1200 seconds reached. OpenSearch Dashboards did not finish compiling."
170+
echo "Timeout of 1200 seconds reached. OpenSearch Dashboards did not start successfully."
170171
exit 1
171-
fi
172-
working-directory: OpenSearch-Dashboards
172+
fi&
173173
174174
- name: Upload Dashboards logs
175175
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)