Skip to content

Commit

Permalink
fix(test): adjust frequency (#8340)
Browse files Browse the repository at this point in the history
## Problem
- Increase test frequency to capture more run results before RC
- add sleep post docker container cleanup
- adjust the gh-runner cruft cleanup bug

## Solution
- change to `*/30 * * * *`
- introduce wait after cleanup
- make the gh-runner cruft run every 1s
  • Loading branch information
skrdgraph authored Sep 30, 2022
1 parent 56df012 commit dff8415
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci-dgraph-load-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches:
- main
schedule:
- cron: "30 * * * *"
- cron: "*/30 * * * *"
jobs:
dgraph-load-tests:
runs-on: self-hosted
Expand Down Expand Up @@ -63,3 +63,5 @@ jobs:
./t --suite=load
# clean up docker containers after test execution
./t -r
# sleep
sleep 5
4 changes: 3 additions & 1 deletion .github/workflows/ci-dgraph-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches:
- main
schedule:
- cron: "0 * * * *"
- cron: "*/30 * * * *"
jobs:
dgraph-tests:
runs-on: self-hosted
Expand Down Expand Up @@ -63,6 +63,8 @@ jobs:
./t --coverage=true
# clean up docker containers after test execution
./t -r
# sleep
sleep 5
- name: Install Goveralls
run: go install github.com/mattn/goveralls@latest
- name: Send Coverage Results
Expand Down
2 changes: 1 addition & 1 deletion contrib/gh-runner/gh-runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ tar xzf ./actions-runner-linux-x64-2.296.2.tar.gz
# CI Permission Issue
sudo touch /etc/cron.d/ci_permissions_resetter
sudo chown $USER:$USER /etc/cron.d/ci_permissions_resetter
sudo echo "* * * * * root for i in {1..59}; do chown -R $USER:$USER /home/ubuntu/actions-runner/_work & sleep 1; done" > /etc/cron.d/ci_permissions_resetter
sudo echo "* * * * * root for i in {0..60}; do chown -R $USER:$USER /home/ubuntu/actions-runner/_work & sleep 1; done" > /etc/cron.d/ci_permissions_resetter
sudo chown root:root /etc/cron.d/ci_permissions_resetter
# Start GH Actions
sudo ./svc.sh install
Expand Down

0 comments on commit dff8415

Please sign in to comment.