-
Notifications
You must be signed in to change notification settings - Fork 997
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3786 from ethereum/dev
release v1.5.0-alpha.3
- Loading branch information
Showing
56 changed files
with
2,636 additions
and
1,763 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,78 @@ | ||
name: Run test vector generation | ||
|
||
defaults: | ||
run: | ||
shell: zsh {0} | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
ref: | ||
description: The branch, tag or SHA to checkout and build from | ||
default: dev | ||
type: string | ||
required: true | ||
|
||
jobs: | ||
generate-tests: | ||
runs-on: [self-hosted-ghr-custom, size-chungus-x64, profile-consensusSpecs] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: 'ethereum/consensus-specs' | ||
path: 'consensus-specs' | ||
ref: ${{ inputs.source_ref }} | ||
- name: Checkout consensus-spec-tests repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: 'ethereum/consensus-spec-tests' | ||
path: 'consensus-spec-tests' | ||
fetch-depth: 1 | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
cache: '' | ||
- name: Clean up Spec Repository | ||
run: | | ||
cd consensus-specs | ||
make clean | ||
- name: Install dependencies and generate pyspec | ||
run: | | ||
cd consensus-specs | ||
make install_test | ||
make -B pyspec | ||
- name: Generate tests | ||
run: | | ||
cd consensus-specs | ||
make -j 16 generate_tests 2>&1 | tee ../consensustestgen.log | ||
cp -r presets/ ../consensus-spec-tests/presets | ||
cp -r configs/ ../consensus-spec-tests/configs | ||
find . -type d -empty -delete | ||
- name: Archive configurations | ||
run: | | ||
cd consensus-spec-tests | ||
tar -czvf general.tar.gz tests/general | ||
tar -czvf minimal.tar.gz tests/minimal | ||
tar -czvf mainnet.tar.gz tests/mainnet | ||
- name: Upload general.tar.gz | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: General Test Configuration | ||
path: consensus-spec-tests/general.tar.gz | ||
- name: Upload minimal.tar.gz | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Minimal Test Configuration | ||
path: consensus-spec-tests/minimal.tar.gz | ||
- name: Upload mainnet.tar.gz | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Mainnet Test Configuration | ||
path: consensus-spec-tests/mainnet.tar.gz | ||
- name: Upload consensustestgen | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: consensustestgen.log | ||
path: consensustestgen.log |
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
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,12 @@ | ||
# Mainnet preset - EIP6800 | ||
|
||
# Misc | ||
# --------------------------------------------------------------- | ||
# `uint64(2**16)` (= 65,536) | ||
MAX_STEMS: 65536 | ||
# `uint64(33)` | ||
MAX_COMMITMENTS_PER_STEM: 33 | ||
# `uint64(2**8)` (= 256) | ||
VERKLE_WIDTH: 256 | ||
# `uint64(2**3)` (= 8) | ||
IPA_PROOF_DEPTH: 8 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Minimal preset - EIP6800 | ||
|
||
# Execution | ||
# --------------------------------------------------------------- | ||
# `uint64(2**16)` (= 65,536) | ||
MAX_STEMS: 65536 | ||
# `uint64(33)` | ||
MAX_COMMITMENTS_PER_STEM: 33 | ||
# `uint64(2**8)` (= 256) | ||
VERKLE_WIDTH: 256 | ||
# `uint64(2**3)` (= 8) | ||
IPA_PROOF_DEPTH: 8 |
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
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,21 @@ | ||
from typing import Dict | ||
|
||
from .base import BaseSpecBuilder | ||
from ..constants import EIP6800 | ||
|
||
|
||
class EIP6800SpecBuilder(BaseSpecBuilder): | ||
fork: str = EIP6800 | ||
|
||
@classmethod | ||
def imports(cls, preset_name: str): | ||
return f''' | ||
from eth2spec.deneb import {preset_name} as deneb | ||
from eth2spec.utils.ssz.ssz_typing import Bytes31 | ||
''' | ||
|
||
@classmethod | ||
def hardcoded_custom_type_dep_constants(cls, spec_object) -> str: | ||
return { | ||
'MAX_STEMS': spec_object.preset_vars['MAX_STEMS'].value, | ||
} |
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.
389b2dd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍