diff --git a/.github/workflows/ci-dgraph-load-tests.yml b/.github/workflows/ci-dgraph-load-tests.yml index 1bd4349f11e..88ca040a5e6 100644 --- a/.github/workflows/ci-dgraph-load-tests.yml +++ b/.github/workflows/ci-dgraph-load-tests.yml @@ -9,14 +9,6 @@ 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: diff --git a/.github/workflows/ci-dgraph-tests.yml b/.github/workflows/ci-dgraph-tests.yml index f6827090ace..7d0502b7127 100644 --- a/.github/workflows/ci-dgraph-tests.yml +++ b/.github/workflows/ci-dgraph-tests.yml @@ -9,14 +9,6 @@ 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: diff --git a/contrib/gh-runner/gh-runner.sh b/contrib/gh-runner/gh-runner.sh index 0b45d46b4eb..983277097fc 100644 --- a/contrib/gh-runner/gh-runner.sh +++ b/contrib/gh-runner/gh-runner.sh @@ -26,6 +26,7 @@ curl -o actions-runner-linux-x64-2.296.2.tar.gz -L https://github.com/actions/ru echo "34a8f34956cdacd2156d4c658cce8dd54c5aef316a16bbbc95eb3ca4fd76429a actions-runner-linux-x64-2.296.2.tar.gz" | shasum -a 256 -c tar xzf ./actions-runner-linux-x64-2.296.2.tar.gz ./config.sh --url https://github.com/dgraph-io/dgraph --token $TOKEN +sudo chown -R $USER:$USER /home/ubuntu/actions-runner/_work # fixes the test cruft cleanup issue sudo ./svc.sh install sudo ./svc.sh start # Reboot Machine