Skip to content

Commit

Permalink
Crave, GitHub Action: limit runtime to 40min. (#3152)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
uvatbc and HoustonPutman authored Jan 31, 2025
1 parent f772376 commit e81bc32
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/tests-via-crave.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}

0 comments on commit e81bc32

Please sign in to comment.