Skip to content

Increase dashboards timeout & store logs on failure #2371

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 4, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions .github/workflows/ftr-e2e-dashboards-observability-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,20 @@ jobs:
- name: Check If OpenSearch Dashboards Is Ready
if: ${{ runner.os == 'Linux' }}
run: |
cd ./OpenSearch-Dashboards
if timeout 60 grep -q "http server running" <(tail -n +1 -f dashboard.log); then
echo "OpenSearch Dashboards started successfully."
if timeout 1200 grep -q "bundles compiled successfully after" <(tail -n0 -f dashboard.log); then
echo "OpenSearch Dashboards compiled successfully."
else
echo "Timeout of 60 seconds reached. OpenSearch Dashboards did not start successfully."
echo "Timeout for 1200 seconds reached. OpenSearch Dashboards did not finish compiling."
exit 1
fi&
fi
working-directory: OpenSearch-Dashboards

- name: Upload Dashboards logs
uses: actions/upload-artifact@v4
if: failure()
with:
name: dashboard.logs
path: OpenSearch-Dashboards/dashboard.log

- name: Checkout Dashboards Functioanl Test Repo
uses: actions/checkout@v2
Expand Down
17 changes: 12 additions & 5 deletions .github/workflows/integration-tests-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,20 @@ jobs:
- name: Check If OpenSearch Dashboards Is Ready
if: ${{ runner.os == 'Linux' }}
run: |
cd ./OpenSearch-Dashboards
if timeout 60 grep -q "http server running" <(tail -n +1 -f dashboard.log); then
echo "OpenSearch Dashboards started successfully."
if timeout 1200 grep -q "bundles compiled successfully after" <(tail -n0 -f dashboard.log); then
echo "OpenSearch Dashboards compiled successfully."
else
echo "Timeout of 60 seconds reached. OpenSearch Dashboards did not start successfully."
echo "Timeout for 1200 seconds reached. OpenSearch Dashboards did not finish compiling."
exit 1
fi&
fi
working-directory: OpenSearch-Dashboards

- name: Upload Dashboards logs
uses: actions/upload-artifact@v4
if: failure()
with:
name: dashboard.logs
path: OpenSearch-Dashboards/dashboard.log

- name: Install Cypress
run: |
Expand Down
Loading