Reset a follower's state to StateProbe
from StateSnapshot
when the follower catches up into leader's log range.
#338
Workflow file for this run
This file contains 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
name: Test | |
on: [push, pull_request] | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
target: | |
- linux-amd64-unit-4-cpu-race | |
- linux-386-unit-1-cpu | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: "1.21.5" | |
- env: | |
TARGET: ${{ matrix.target }} | |
run: | | |
case "${TARGET}" in | |
linux-amd64-unit-4-cpu-race) | |
GOARCH=amd64 PASSES='unit' RACE='true' CPU='4' ./scripts/test.sh -p=2 | |
;; | |
linux-386-unit-1-cpu) | |
GOARCH=386 PASSES='unit' RACE='false' CPU='1' ./scripts/test.sh -p=4 | |
;; | |
*) | |
echo "Failed to find target" | |
exit 1 | |
;; | |
esac |