|
@ -1,10 +1,19 @@ |
|
|
# Runs Jepsen tests: https://github.com/tendermint/jepsen. |
|
|
|
|
|
|
|
|
# Runs a Jepsen test - cas-register (no nemesis) by default. |
|
|
|
|
|
# See inputs for various options. |
|
|
|
|
|
# Repo: https://github.com/tendermint/jepsen |
|
|
|
|
|
# |
|
|
|
|
|
# If you want to test a new breaking version of Tendermint, you'll need to |
|
|
|
|
|
# update the Merkleeyes ABCI app and 'merkleeyesUrl' input accordingly. You can |
|
|
|
|
|
# upload a new tarball to |
|
|
|
|
|
# https://github.com/tendermint/jepsen/releases/tag/0.2.1. |
|
|
|
|
|
# |
|
|
|
|
|
# Manually triggered. |
|
|
name: jepsen |
|
|
name: jepsen |
|
|
on: |
|
|
on: |
|
|
workflow_dispatch: |
|
|
workflow_dispatch: |
|
|
inputs: |
|
|
inputs: |
|
|
workload: |
|
|
workload: |
|
|
description: 'Test workload to run; e.g. cas-register, set' |
|
|
|
|
|
|
|
|
description: 'Test workload to run: (cas-register | set)' |
|
|
required: true |
|
|
required: true |
|
|
default: 'cas-register' |
|
|
default: 'cas-register' |
|
|
nemesis: |
|
|
nemesis: |
|
@ -24,23 +33,24 @@ on: |
|
|
required: true |
|
|
required: true |
|
|
default: 60 |
|
|
default: 60 |
|
|
tendermintUrl: |
|
|
tendermintUrl: |
|
|
description: 'Where to grab the Tendermint binary (linux/amd64 tarball)?' |
|
|
|
|
|
|
|
|
description: 'Where to grab the Tendermint tarball (w/ linux/amd64 binary)' |
|
|
required: true |
|
|
required: true |
|
|
default: 'https://github.com/melekes/katas/releases/download/0.2.0/tendermint.tar.gz' |
|
|
default: 'https://github.com/melekes/katas/releases/download/0.2.0/tendermint.tar.gz' |
|
|
merkleeyesUrl: |
|
|
merkleeyesUrl: |
|
|
description: 'Where to grab the Merkleeyes binary (linux/amd64 tarball)?' |
|
|
|
|
|
|
|
|
description: 'Where to grab the Merkleeyes tarball (w/ linux/amd64 binary)' |
|
|
required: true |
|
|
required: true |
|
|
default: 'https://github.com/melekes/katas/releases/download/0.2.0/merkleeyes_0.1.7.tar.gz' |
|
|
|
|
|
|
|
|
default: 'https://github.com/tendermint/jepsen/releases/download/0.2.1/merkleeyes_0.1.7.tar.gz' |
|
|
|
|
|
|
|
|
jobs: |
|
|
jobs: |
|
|
jepsen-test: |
|
|
jepsen-test: |
|
|
runs-on: ubuntu-latest |
|
|
runs-on: ubuntu-latest |
|
|
steps: |
|
|
steps: |
|
|
- uses: actions/checkout@v2 |
|
|
|
|
|
|
|
|
- name: Checkout the Jepsen repository |
|
|
|
|
|
uses: actions/checkout@v2 |
|
|
with: |
|
|
with: |
|
|
repository: 'tendermint/jepsen' |
|
|
repository: 'tendermint/jepsen' |
|
|
|
|
|
|
|
|
- name: Start a Jepsen cluster |
|
|
|
|
|
|
|
|
- name: Start a Jepsen cluster in background |
|
|
working-directory: docker |
|
|
working-directory: docker |
|
|
run: ./bin/up --daemon |
|
|
run: ./bin/up --daemon |
|
|
|
|
|
|
|
|