Skip to content

Commit

Permalink
fix(ci) fixing the file permission issue for CI runner (#8311)
Browse files Browse the repository at this point in the history
* undo changes to dgraph tests

* undo changes to load tests

* fixing the runner user, to handle cruft cleanup issue

* fix test cruft issue

* fix test cleanup
  • Loading branch information
skrdgraph authored and dshekhar95 committed Sep 19, 2022
1 parent 3f0d3cd commit 3d76ff2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/ci-dgraph-load-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/ci-dgraph-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions contrib/gh-runner/gh-runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d76ff2

Please sign in to comment.