Browse Source

.github: Jepsen workflow - initial version (#6123)

pull/6134/head
Anton Kaliaev 4 years ago
committed by GitHub
parent
commit
9f697db54f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 48 additions and 0 deletions
  1. +48
    -0
      .github/workflows/jepsen.yml

+ 48
- 0
.github/workflows/jepsen.yml View File

@ -0,0 +1,48 @@
# Runs Jepsen tests: https://github.com/tendermint/jepsen.
name: jepsen
on:
workflow_dispatch:
workload:
description: 'Test workload to run; e.g. cas-register, set'
required: true
default: 'cas-register'
nemesis:
description: 'Nemesis to use; e.g. clocks'
required: true
default: 'none'
dupValidators:
description: 'Whether to have multiple validators share the same key.'
required: false
superByzantineValidators:
description: 'Should byzantine validators have just shy of 2/3 the voting weight?'
required: false
concurrency:
description: 'How many concurrent processes to run'
required: true
default: 10
timeLimit:
description: 'Time limit'
required: false
tendermintUrl:
description: 'Where to grab the Tendermint binary (linux/amd64)?'
required: true
default: 'https://github.com/melekes/katas/releases/download/0.2.0/tendermint.tar.gz'
merkleeyesUrl:
description: 'Where to grab the Merkleeyes binary (linux/amd64)?'
required: true
default: 'https://github.com/melekes/katas/releases/download/0.2.0/merkleeyes_0.1.7.tar.gz'
jobs:
jepsen-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
repository: 'tendermint/jepsen'
- name: Start a Jepsen cluster
working-directory: docker
run: ./bin/up --daemon
- name: Run the test
run: docker exec -it jepsen-control 'cd tendermint && lein run test --nemesis ${{ github.event.inputs.nemesis }} --workload ${{ github.event.inputs.workload }}'

Loading…
Cancel
Save