Skip to content

perf(params): validate ConsensusParams once per change set (CON-312) #12637

perf(params): validate ConsensusParams once per change set (CON-312)

perf(params): validate ConsensusParams once per change set (CON-312) #12637

Workflow file for this run

name: ETH Blocktests
on:
push:
branches:
- main
- release/**
pull_request:
branches:
- main
- release/**
merge_group:
branches:
- main
- release/**
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'push' && github.sha || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
defaults:
run:
shell: bash
env:
TOTAL_RUNNERS: 5
jobs:
runner-indexes:
runs-on: ubuntu-latest
name: Generate runner indexes
outputs:
json: ${{ steps.generate-index-list.outputs.json }}
steps:
- id: generate-index-list
run: |
MAX_INDEX=$((${{ env.TOTAL_RUNNERS }}-1))
INDEX_LIST=$(seq 0 ${MAX_INDEX})
INDEX_JSON=$(jq --null-input --compact-output '. |= [inputs]' <<< ${INDEX_LIST})
echo "json=${INDEX_JSON}" >> $GITHUB_OUTPUT
eth-blocktests:
name: "Run ETH Blocktests ${{ matrix.runner-index }}"
runs-on: ubuntu-latest
needs: runner-indexes
strategy:
fail-fast: false
matrix:
# generate runner index array from 0 to total-runners
runner-index: ${{fromJson(needs.runner-indexes.outputs.json)}}
steps:
# See: https://github.com/actions/checkout/releases/tag/v7.0.0
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.25.6'
- name: Clone ETH Blocktests
run: |
git clone https://github.com/ethereum/tests.git ethtests
cd ethtests
git checkout c67e485ff8b5be9abc8ad15345ec21aa22e290d9
- name: "Run ETH Blocktest"
run: ./run_blocktests.sh ./ethtests/BlockchainTests/ ${{ matrix.runner-index }} ${{ env.TOTAL_RUNNERS }}