Skip to content

Commit

Permalink
redistribute mainnet replay sub-job ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
msmouse committed Oct 1, 2023
1 parent af4956e commit 85b3042
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/workflow-run-replay-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
strategy:
fail-fast: false
matrix:
number: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] # runner number
number: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16] # runner number
steps:
- name: Echo Runner Number
run: echo "Runner is ${{ matrix.number }}"
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:

- name: Run replay-verify in parallel
shell: bash
run: testsuite/replay_verify.py ${{ matrix.number }} 16 # first argument is the runner number, second argument is the total number of runners
run: testsuite/replay_verify.py ${{ matrix.number }} 17 # first argument is the runner number, second argument is the total number of runners
env:
BUCKET: ${{ inputs.BUCKET }}
SUB_DIR: ${{ inputs.SUB_DIR }}
Expand Down
36 changes: 19 additions & 17 deletions testsuite/replay_verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,26 +45,28 @@
[483500001, 516281795],
[516281796, 551052675],
[551052676, 582481398],
[582481399, sys.maxsize],
[582481399, 640_000_000],
[640_000_001, sys.maxsize],
]

mainnet_runner_mapping = [
[0, 14949498],
[14949499, 30518131],
[30518132, 49314011],
[49314012, 69611025],
[69611026, 90057535],
[90057536, 109821002],
[109821003, 125881567],
[125881568, 134463753],
[134463754, 153497556],
[153497557, 171327640],
[171327641, 188112798],
[188112799, 202553811],
[202553812, 208815844],
[208815845, 214051314],
[214051315, 220182489],
[220182490, sys.maxsize],
[0, 50_000_000],
[50_000_001, 100_000_000],
[100_000_001, 110_000_000],
[110_000_001, 150_000_000],
[150_000_001, 170_000_000],
[170_000_001, 180_000_000],
[180_000_001, 190_000_000],
[190_000_001, 200_000_000],
[200_000_001, 210_000_000],
[210_000_001, 220_000_000],
[220_000_001, 230_000_000],
[230_000_001, 240_000_000],
[240_000_001, 250_000_000],
[250_000_001, 260_000_000],
[260_000_001, 270_000_000],
[270_000_001, 278_000_000],
[278_000_001, sys.maxsize],
]


Expand Down

0 comments on commit 85b3042

Please sign in to comment.