Skip to content
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

[Backport 2.x] Increase dashboards timeout & store logs on failure #2372

Merged
merged 1 commit into from
Mar 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
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
11 changes: 9 additions & 2 deletions .github/workflows/ftr-e2e-dashboards-observability-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,20 @@ jobs:
if: ${{ runner.os == 'Linux' }}
run: |
cd ./OpenSearch-Dashboards
if timeout 60 grep -q "http server running" <(tail -n +1 -f dashboard.log); then
if timeout 1200 grep -q "http server running" <(tail -n +1 -f dashboard.log); then
echo "OpenSearch Dashboards started successfully."
else
echo "Timeout of 60 seconds reached. OpenSearch Dashboards did not start successfully."
echo "Timeout of 1200 seconds reached. OpenSearch Dashboards did not start successfully."
exit 1
fi&

- 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
with:
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/integration-tests-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,20 @@ jobs:
if: ${{ runner.os == 'Linux' }}
run: |
cd ./OpenSearch-Dashboards
if timeout 60 grep -q "http server running" <(tail -n +1 -f dashboard.log); then
if timeout 1200 grep -q "http server running" <(tail -n +1 -f dashboard.log); then
echo "OpenSearch Dashboards started successfully."
else
echo "Timeout of 60 seconds reached. OpenSearch Dashboards did not start successfully."
echo "Timeout of 1200 seconds reached. OpenSearch Dashboards did not start successfully."
exit 1
fi&

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

- name: Install Cypress
run: |
cd ./OpenSearch-Dashboards/plugins/dashboards-observability
Expand Down
Loading