Skip to content

Commit

Permalink
increase timeout for CI
Browse files Browse the repository at this point in the history
Signed-off-by: Hailong Cui <[email protected]>
  • Loading branch information
Hailong-am committed Sep 30, 2024
1 parent a42ae1c commit c86a362
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 12 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/ftr-e2e-dashboards-observability-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,21 @@ jobs:
if: ${{ runner.os == 'Linux' }}
run: |
cd ./OpenSearch-Dashboards
if timeout 600 grep -q "bundles compiled successfully after" <(tail -n0 -f dashboard.log); then
echo "OpenSearch Dashboards compiled successfully."
else
echo "Timeout for 600 seconds reached. OpenSearch Dashboards did not finish compiling."
exit 1
fi
timeout=900
interval=60
elapsed=0
while [ $elapsed -lt $timeout ]; do
if grep -q "bundles compiled successfully after" dashboard.log; then
echo "OpenSearch Dashboards compiled successfully."
exit 0
fi
sleep $interval
elapsed=$((elapsed + interval))
done
echo "Timeout for $timeout seconds reached. OpenSearch Dashboards did not finish compiling."
exit 1
- name: Checkout Dashboards Functioanl Test Repo
uses: actions/checkout@v2
Expand Down
21 changes: 15 additions & 6 deletions .github/workflows/integration-tests-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,21 @@ jobs:
if: ${{ runner.os == 'Linux' }}
run: |
cd ./OpenSearch-Dashboards
if timeout 600 grep -q "bundles compiled successfully after" <(tail -n0 -f dashboard.log); then
echo "OpenSearch Dashboards compiled successfully."
else
echo "Timeout for 600 seconds reached. OpenSearch Dashboards did not finish compiling."
exit 1
fi
timeout=900
interval=60
elapsed=0
while [ $elapsed -lt $timeout ]; do
if grep -q "bundles compiled successfully after" dashboard.log; then
echo "OpenSearch Dashboards compiled successfully."
exit 0
fi
sleep $interval
elapsed=$((elapsed + interval))
done
echo "Timeout for $timeout seconds reached. OpenSearch Dashboards did not finish compiling."
exit 1
- name: Install Cypress
run: |
Expand Down

0 comments on commit c86a362

Please sign in to comment.