-
Notifications
You must be signed in to change notification settings - Fork 2
Jepsen test add failure case test #286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
a27267c
Fix Jepsen test failures: handle bootstrap error and wait for gRPC. A…
bootjp e085964
Update JEPSEN_TODO.md with checklist progress
bootjp d160d99
Update JEPSEN_TODO and add CI workflow
bootjp 095a328
Fix Jepsen CI: add missing provision script and improve wait logic
bootjp 3a52b71
Potential fix for code scanning alert no. 13: Workflow does not conta…
bootjp 967556f
Refactor: change flag names to camelCase and improve demo cluster sta…
bootjp 3111699
Merge branch 'main' into feature/fix-create-node
bootjp af4258d
Merge branch 'main' into feature/fix-create-node
bootjp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| name: Jepsen VM Run | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| time-limit: | ||
| description: "Workload runtime seconds" | ||
| required: false | ||
| default: "60" | ||
| rate: | ||
| description: "Ops/sec per worker" | ||
| required: false | ||
| default: "10" | ||
| faults: | ||
| description: "Comma-separated faults (partition,kill,clock)" | ||
| required: false | ||
| default: "partition,kill,clock" | ||
|
|
||
| jobs: | ||
| jepsen: | ||
| # Requires a self-hosted runner with VirtualBox + Vagrant and at least 12GB RAM free. | ||
| runs-on: [self-hosted, virtualbox] | ||
| timeout-minutes: 120 | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
| - name: Set up Go | ||
| uses: actions/setup-go@v5 | ||
| with: | ||
| go-version: "1.25.5" | ||
|
|
||
| - name: Bring up Jepsen VMs | ||
| working-directory: jepsen | ||
| run: vagrant up | ||
|
|
||
| - name: Run Jepsen workload | ||
| working-directory: jepsen | ||
| env: | ||
| HOME: ${{ github.workspace }}/jepsen/tmp-home | ||
| LEIN_HOME: ${{ github.workspace }}/jepsen/.lein | ||
| LEIN_JVM_OPTS: -Duser.home=${{ github.workspace }}/jepsen/tmp-home | ||
| run: | | ||
| vagrant ssh ctrl -c "cd ~/elastickv/jepsen && \ | ||
| lein run -m elastickv.redis-workload \ | ||
| --nodes n1,n2,n3,n4,n5 \ | ||
| --time-limit ${{ github.event.inputs['time-limit'] || github.event.inputs.time-limit }} \ | ||
| --rate ${{ github.event.inputs['rate'] || github.event.inputs.rate }} \ | ||
| --faults ${{ github.event.inputs['faults'] || github.event.inputs.faults }} \ | ||
| --concurrency 10" | ||
|
|
||
| - name: Collect Jepsen artifacts | ||
| if: always() | ||
| working-directory: jepsen | ||
| run: | | ||
| mkdir -p $GITHUB_WORKSPACE/artifacts | ||
| vagrant ssh ctrl -c "cd ~/elastickv/jepsen && tar czf /home/vagrant/results.tgz store/ target/ tmp-home/jepsen.store || true" | ||
| vagrant scp ctrl:/home/vagrant/results.tgz $GITHUB_WORKSPACE/artifacts/results.tgz || true | ||
|
|
||
| - name: Destroy VMs | ||
| if: always() | ||
| working-directory: jepsen | ||
| run: vagrant destroy -f | ||
|
|
||
| - name: Upload artifacts | ||
| if: always() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: jepsen-results | ||
| path: artifacts/results.tgz | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.