forked from ethereum/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* t8n: verkle-genesis Signed-off-by: Ignacio Hagopian <[email protected]> * review feedback Signed-off-by: Ignacio Hagopian <[email protected]> * imprv Signed-off-by: Ignacio Hagopian <[email protected]> * t8n/evm: add new cli command Signed-off-by: Ignacio Hagopian <[email protected]> * fixes to run conversion fixture Signed-off-by: Ignacio Hagopian <[email protected]> * t8n/evm: use pre alloc to save code in rawdb Signed-off-by: Ignacio Hagopian <[email protected]> * vm: fix gas underflow Signed-off-by: Ignacio Hagopian <[email protected]> * ci: add verkle-genesis filling and consumption Signed-off-by: Ignacio Hagopian <[email protected]> * ci: update runner Signed-off-by: Ignacio Hagopian <[email protected]> * ci: fixes Signed-off-by: Ignacio Hagopian <[email protected]> * ci: use consume direct to run fixtures Signed-off-by: Ignacio Hagopian <[email protected]> * ci: fixes Signed-off-by: Ignacio Hagopian <[email protected]> * ci: include 4762 Signed-off-by: Ignacio Hagopian <[email protected]> * ci: add transition tests Signed-off-by: Ignacio Hagopian <[email protected]> * ci: parallelize running Signed-off-by: Ignacio Hagopian <[email protected]> * ci: include conversion tests | use matrix. (#470) * feat: tweak eest ci (matrix). * chore: remove prev ci. * t8n/evm: fix pre-state for forks before verkle Signed-off-by: Ignacio Hagopian <[email protected]> * t8n: remove EIP6800Transition from forks Signed-off-by: Ignacio Hagopian <[email protected]> * ci: change execution-spec-tests target branch Signed-off-by: Ignacio Hagopian <[email protected]> * ci: fill more tests Signed-off-by: Ignacio Hagopian <[email protected]> * Revert "t8n: remove EIP6800Transition from forks" This reverts commit 660e2eb. * ci: use verkle/main branch for tests Signed-off-by: Ignacio Hagopian <[email protected]> * add todo Signed-off-by: Ignacio Hagopian <[email protected]> * preimages fixes Signed-off-by: Ignacio Hagopian <[email protected]> * fix genesis Signed-off-by: Ignacio Hagopian <[email protected]> * record preimages in genesis commit Signed-off-by: Ignacio Hagopian <[email protected]> * review feedback Signed-off-by: Ignacio Hagopian <[email protected]> --------- Signed-off-by: Ignacio Hagopian <[email protected]> Co-authored-by: spencer <[email protected]>
- Loading branch information
1 parent
9be0b58
commit 9b27fba
Showing
9 changed files
with
252 additions
and
47 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
name: Execution Spec Tests Fill and Consume (Verkle genesis & conversion) | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master, kaustinen-with-shapella] | ||
workflow_dispatch: | ||
|
||
env: | ||
EEST_USER: "ethereum" | ||
EEST_BRANCH: "verkle/main" | ||
|
||
jobs: | ||
setup: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout go-ethereum | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12.4" | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.22.4 | ||
|
||
- name: Build geth evm | ||
run: | | ||
go build -v ./cmd/evm | ||
mkdir -p ${{ github.workspace }}/bin | ||
mv evm ${{ github.workspace }}/bin/evm | ||
chmod +x ${{ github.workspace }}/bin/evm | ||
- name: Archive built evm | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: evm | ||
path: ${{ github.workspace }}/bin/evm | ||
|
||
fill: | ||
runs-on: ubuntu-latest | ||
needs: setup | ||
strategy: | ||
matrix: | ||
test-type: [genesis, conversion] | ||
steps: | ||
- name: Download geth evm | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: evm | ||
path: ./bin | ||
|
||
- name: Make evm binary executable and add to PATH | ||
run: | | ||
chmod +x ./bin/evm | ||
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH | ||
- name: Clone execution-spec-tests and fill tests | ||
run: | | ||
git clone https://github.com/${{ env.EEST_USER }}/execution-spec-tests -b ${{ env.EEST_BRANCH }} | ||
cd execution-spec-tests | ||
python3 -m venv venv | ||
. venv/bin/activate | ||
pip install --upgrade pip | ||
pip install -e ".[docs,lint,test]" | ||
solc-select use 0.8.24 --always-install | ||
if [ "${{ matrix.test-type }}" == "genesis" ]; then | ||
fill --fork Verkle --output=../fixtures-${{ matrix.test-type }} -v -m blockchain_test -n auto | ||
else | ||
fill --from Shanghai --until EIP6800Transition --output=../fixtures-${{ matrix.test-type }} -v -m blockchain_test -n auto | ||
fi | ||
shell: bash | ||
|
||
- name: Upload fixtures | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: fixtures-${{ matrix.test-type }} | ||
path: fixtures-${{ matrix.test-type }} | ||
|
||
consume: | ||
runs-on: ubuntu-latest | ||
needs: fill | ||
strategy: | ||
matrix: | ||
test-type: [genesis, conversion] | ||
steps: | ||
- name: Download geth evm | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: evm | ||
path: ./bin | ||
|
||
- name: Make evm binary executable and add to PATH | ||
run: | | ||
chmod +x ./bin/evm | ||
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH | ||
- name: Download fixtures | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: fixtures-${{ matrix.test-type }} | ||
path: ./fixtures-${{ matrix.test-type }} | ||
|
||
- name: Clone execution-spec-tests and consume tests | ||
run: | | ||
git clone https://github.com/${{ env.EEST_USER }}/execution-spec-tests -b ${{ env.EEST_BRANCH }} | ||
cd execution-spec-tests | ||
python3 -m venv venv | ||
. venv/bin/activate | ||
pip install --upgrade pip | ||
pip install -e ".[docs,lint,test]" | ||
solc-select use 0.8.24 --always-install | ||
consume direct --input=../fixtures-${{ matrix.test-type }} -n auto | ||
shell: bash |
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
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
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
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
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
Oops, something went wrong.