This is an automated email from the ASF dual-hosted git repository.
dsmiley pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/branch_9x by this push:
new ebe14d3c24e Crave, GitHub Action: limit runtime to 40min. (#3152)
ebe14d3c24e is described below
commit ebe14d3c24e0285d2947b6885aa36ff88afbc656
Author: uvatbc <[email protected]>
AuthorDate: Fri Jan 31 11:23:50 2025 -0800
Crave, GitHub Action: limit runtime to 40min. (#3152)
* Limit Github Actions runtime and cleanup always
1. Limit the runtime to 40 minutes
2. At the end, always send a clear kill signal to the job running in Crave
---------
Co-authored-by: Houston Putman <[email protected]>
(cherry picked from commit e81bc328d985f2ad4eb1cea24070b4ad8834f2d4)
---
.github/workflows/tests-via-crave.yml | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/tests-via-crave.yml
b/.github/workflows/tests-via-crave.yml
index 91c5c3b4a5e..f9fbc61c9a3 100644
--- a/.github/workflows/tests-via-crave.yml
+++ b/.github/workflows/tests-via-crave.yml
@@ -11,6 +11,7 @@ jobs:
name: Run Solr Tests using Crave.io resources
runs-on: self-hosted
+ timeout-minutes: 40
steps:
- name: Destroy previous clone
@@ -26,5 +27,10 @@ jobs:
run: |
cd /crave-devspaces/pipeline/runs/${GITHUB_RUN_ID}_${GITHUB_RUN_NUMBER}
crave run --clean
- - name: Delete Clone
- run: crave clone destroy -y
/crave-devspaces/pipeline/runs/${GITHUB_RUN_ID}_${GITHUB_RUN_NUMBER}
+ - name: Cleanup
+ if: ${{ always() }}
+ run: |
+ pushd
/crave-devspaces/pipeline/runs/${GITHUB_RUN_ID}_${GITHUB_RUN_NUMBER}
+ crave stop --all
+ popd
+ crave clone destroy -y
/crave-devspaces/pipeline/runs/${GITHUB_RUN_ID}_${GITHUB_RUN_NUMBER}