-
Notifications
You must be signed in to change notification settings - Fork 975
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into sz-stablecontainer
- Loading branch information
Showing
28 changed files
with
965 additions
and
701 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
Oops, something went wrong.