Skip to content

Commit

Permalink
[storage] split the replay_verify to multiple jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
areshand committed Jul 5, 2023
1 parent 5a81247 commit 302243c
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/workflow-run-replay-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,24 @@ on:
default: "high-perf-docker-with-local-ssd"

jobs:
generate-runner:
runs-on: ${{ inputs.RUNS_ON }}
outputs:
matrix: ${{ steps.set-runner-number.outputs.matrix }}
steps:
id: set-runner-number
run: |
echo "::set-output name=matrix::{\"include\": [$(for i in {1..10}; do echo \{\"number\":$i\}; if [ $i -lt 10 ]; then echo ','; fi; done)]}" # 10 runners in parallel
replay-verify:
needs: generate-runner
timeout-minutes: ${{ inputs.TIMEOUT_MINUTES || 720 }}
runs-on: ${{ inputs.RUNS_ON }}
strategy:
matrix: ${{fromJson(needs.generate-runner.outputs.matrix)}} # 10 runners in parallel
steps:
- name: Echo Runner Number
run: echo "Number is ${{ matrix.number }}"
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # pin@v3
with:
ref: ${{ inputs.GIT_SHA }}
Expand All @@ -101,7 +115,7 @@ jobs:

- name: Run replay-verify in parallel
shell: bash
run: testsuite/replay_verify.py
run: testsuite/replay_verify.py ${{ matrix.number }}
env:
BUCKET: ${{ inputs.BUCKET }}
SUB_DIR: ${{ inputs.SUB_DIR }}
Expand Down

0 comments on commit 302243c

Please sign in to comment.