forked from ethereum/execution-spec-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main'
- Loading branch information
Showing
61 changed files
with
5,508 additions
and
1,849 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 |
---|---|---|
@@ -1,38 +1,34 @@ | ||
name: Build and Package Fixtures | ||
name: Build and Package Fixture Release | ||
inputs: | ||
name: | ||
description: 'Name of the fixture package' | ||
release_name: | ||
description: 'Name of the fixture release' | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.11 | ||
- name: Install yq | ||
- name: Set up uv | ||
uses: ./.github/actions/setup-uv | ||
- name: Set up Python | ||
shell: bash | ||
run: uv python install 3.10 --no-progress | ||
- name: Install EEST | ||
shell: bash | ||
run: | | ||
pip install yq | ||
- name: Extract fixture properties | ||
run: uv sync --no-progress | ||
- name: Extract fixture release properties from config | ||
id: properties | ||
shell: bash | ||
run: | | ||
yq -r --arg feature "${{ inputs.name }}" '.[$feature] | to_entries | map("\(.key)=\(.value)")[]' ./.github/configs/feature.yaml >> "$GITHUB_OUTPUT" | ||
echo "release_name=${{ inputs.release_name }}" | ||
uv run -q .github/scripts/get_release_props.py ${{ inputs.release_name }} >> "$GITHUB_OUTPUT" | ||
- uses: ./.github/actions/build-evm-base | ||
id: evm-builder | ||
with: | ||
type: ${{ steps.properties.outputs.evm-type }} | ||
- name: Run fixtures fill | ||
- name: Generate fixtures using fill | ||
shell: bash | ||
run: | | ||
pip install --upgrade pip | ||
python -m venv env | ||
source env/bin/activate | ||
pip install -e . | ||
solc-select use ${{ steps.properties.outputs.solc }} --always-install | ||
fill -n ${{ steps.evm-builder.outputs.x-dist }} --evm-bin=${{ steps.evm-builder.outputs.evm-bin }} ${{ steps.properties.outputs.fill-params }} --output=fixtures_${{ inputs.name }}.tar.gz --build-name ${{ inputs.name }} | ||
uv run fill -n ${{ steps.evm-builder.outputs.x-dist }} --evm-bin=${{ steps.evm-builder.outputs.evm-bin }} --solc-version=${{ steps.properties.outputs.solc }} ${{ steps.properties.outputs.fill-params }} --output=fixtures_${{ inputs.release_name }}.tar.gz --build-name ${{ inputs.release_name }} | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: fixtures_${{ inputs.name }} | ||
path: fixtures_${{ inputs.name }}.tar.gz | ||
name: fixtures_${{ inputs.release_name }} | ||
path: fixtures_${{ inputs.release_name }}.tar.gz |
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,11 @@ | ||
name: 'Setup UV' | ||
description: 'Sets up uv with a fixed version' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Install UV | ||
shell: bash | ||
run: | | ||
UV_VERSION="0.4.2" | ||
echo "Installing UV version $UV_VERSION..." | ||
curl -LsSf https://astral.sh/uv/${UV_VERSION}/install.sh | sh |
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,29 @@ | ||
# /// script | ||
# requires-python = ">=3.10" | ||
# dependencies = [ | ||
# "pyyaml", | ||
# "click", | ||
# ] | ||
# /// | ||
|
||
import sys | ||
|
||
import click | ||
import yaml | ||
|
||
RELEASE_PROPS_FILE = './.github/configs/feature.yaml' | ||
|
||
|
||
@click.command() | ||
@click.argument('release', required=True) | ||
def get_release_props(release): | ||
"""Extracts a specific property from the YAML file for a given release.""" | ||
with open(RELEASE_PROPS_FILE) as f: | ||
data = yaml.safe_load(f) | ||
if release not in data: | ||
print(f"Error: Release {release} not found in {RELEASE_PROPS_FILE}.") | ||
sys.exit(1) | ||
print("\n".join(f"{key}={value}" for key, value in data[release].items())) | ||
|
||
if __name__ == "__main__": | ||
get_release_props() |
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.