Skip to content

Commit

Permalink
fix(test) add cleanup at start (#8307)
Browse files Browse the repository at this point in the history
* add cleanup at start

* bring in changes from #8301

* cleanup
  • Loading branch information
skrdgraph authored Sep 16, 2022
1 parent 4fd7c96 commit 7a2c09f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci-dgraph-load-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ on:
schedule:
- cron: "*/30 * * * *"
jobs:
#TODO: WE NEED TO REMOVE THIS CLEANUP, and handle it more elegantly, it makes us incompatible with gh-hosted-runners
cleanup:
runs-on: self-hosted
container:
image: ubuntu:latest
steps:
- name: Cleaning up the $GITHUB_WORKSPACE as root from a Docker image
run: find /__w/${{ github.event.repository.name }}/${{ github.event.repository.name }}/. -name . -o -prune -exec rm -rf -- {} + || true
dgraph-load-tests:
runs-on: self-hosted
steps:
Expand Down Expand Up @@ -63,6 +71,3 @@ jobs:
./t --suite=load
# clean up docker containers after test execution
./t -r
- name: Cleaning Up $GITHUB_WORKSPACE
# Volume auto mounted by gh actions pointing to the current working-directory
run: find /__w/${{ github.event.repository.name }}/${{ github.event.repository.name }}/. -name . -o -prune -exec rm -rf -- {} + || true
8 changes: 8 additions & 0 deletions .github/workflows/ci-dgraph-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ on:
schedule:
- cron: "*/30 * * * *"
jobs:
#TODO: WE NEED TO REMOVE THIS CLEANUP, and handle it more elegantly, it makes us incompatible with gh-hosted-runners
cleanup:
runs-on: self-hosted
container:
image: ubuntu:latest
steps:
- name: Cleaning up the $GITHUB_WORKSPACE as root from a Docker image
run: find /__w/${{ github.event.repository.name }}/${{ github.event.repository.name }}/. -name . -o -prune -exec rm -rf -- {} + || true
dgraph-tests:
runs-on: self-hosted
steps:
Expand Down

0 comments on commit 7a2c09f

Please sign in to comment.