forked from 0xPolygonHermez/cdk-erigon
-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (33 loc) · 1.24 KB
/
nightly-node-compare.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Nightly - Compare Blocks
on:
schedule:
- cron: '30 3 * * *' # run at 3:30am to give time for other suites to run first
workflow_dispatch:
jobs:
compare-blocks:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
nodes:
- name: "Integration 8"
erigon: "http://34.175.214.161:18124"
zkevm: "http://34.175.214.161:18505"
sequencer: "http://34.175.214.161:18123"
compare-blocks: 1000
allowed-block-diff: 2000
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.22'
- name: Install dependencies
run: go get github.com/google/go-cmp/cmp
- name: Build the compare_blocks binary
run: go build -o compare_blocks zk/debug_tools/nightly-block-compare/main.go
- name: Run block comparison
run: |
echo "Comparing blocks for pair: ${{ matrix.nodes.name }}"
./compare_blocks -erigon ${{ matrix.nodes.erigon }} -zkevm ${{ matrix.nodes.zkevm }} -sequencer ${{ matrix.nodes.sequencer }} -blocks ${{matrix.nodes.compare-blocks}} -diff ${{ matrix.nodes.allowed-block-diff }}