Skip to content

Commit

Permalink
chore(ci): add jepsen test workflow to run periodically (#8935)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Goldstein authored Mar 13, 2024
1 parent 3d0e8fa commit ec08d12
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/ci-dgraph-jepsen-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: ci-dgraph-jepsen-tests
on:
schedule:
- cron: "0 4 * * 3,6" # run twice weekly
env:
GOPATH: /home/ubuntu/go
jobs:
dgraph-jepsen-tests:
runs-on: [self-hosted, x64]
steps:
- name: Checkout dgraph repo
uses: actions/checkout@v3
- name: Checkout jepsen repo
uses: actions/checkout@v3
with:
repository: dgraph-io/jepsen
path: jepsen
ref: master
- name: Get go version
run: |
#!/bin/bash
GOVERSION=$({ [ -f .go-version ] && cat .go-version; })
echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV
- name: Set jepsen root
run: |
#!/bin/bash
cd jepsen
JEPSEN_ROOT=$(pwd)
echo "JEPSEN_ROOT=$JEPSEN_ROOT" >> $GITHUB_ENV
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GOVERSION }}
- name: Make dgraph linux build
run: make install
- name: Start jepsen cluster
run: |
#!/bin/bash
cd contrib/jepsen
go build -v .
./jepsen --jepsen-root ${{ env.JEPSEN_ROOT }} --up-only
- name: Run jepsen tests
run: |
#!/bin/bash
cd contrib/jepsen
./jepsen --jepsen-root ${{ env.JEPSEN_ROOT }} --jaeger="" --web=false --test-all -l 300
- name: Stop jepsen cluster
run: |
#!/bin/bash
cd contrib/jepsen
./jepsen --jepsen-root ${{ env.JEPSEN_ROOT }} --down-only

0 comments on commit ec08d12

Please sign in to comment.