Skip to content

Conversation

@danceratopz
Copy link
Member

🗒️ Description

Couple of suggestions for src/ethereum_test_specs/helpers.py in #1396:

  1. Define an enum class instead of using string literal for the execution context of the exception.
  2. Rename ty to execution_context.
  3. Add more specific exception class names.

🔗 Related Issues

#1396

Copy link
Member

@marioevz marioevz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks!

@marioevz marioevz merged commit 3355296 into ethereum:support-block-exceptions-refactor-mapper Apr 7, 2025
11 checks passed
marioevz pushed a commit that referenced this pull request Apr 8, 2025
…ock exceptions - Pydantic context to parse using mapper (#1404)

* refactor(fw): use enum helper; rename `ty` to `execution_context`

* refactor(fw): use more specific names for exception classes
marioevz added a commit that referenced this pull request Apr 8, 2025
…ic context to parse using mapper (#1396)

* feat(clis,exceptions,specs): Pydantic validation using exception mapper

* fix(specs): Skip block exception check on requests modifications

* fix(docs): Links

* fix(tests): EIP-4844: mark block as skip block exception verification

* refactor(exceptions): Mapper mappings allow regex, convert from `property` to `ClassVar`

* fix(docs): tox

* chore(deps): remove now unused bdict dependency

* Suggestions for #1396, refactor(exceptions,specs): Support general block exceptions - Pydantic context to parse using mapper (#1404)

* refactor(fw): use enum helper; rename `ty` to `execution_context`

* refactor(fw): use more specific names for exception classes

* fix(tests): Add comment explaining `skip_exception_verification`

* feat(clis): Add `reliable` flag to exception mapper class

* fix: tests

* fix(specs,clis,tools): Use `default_t8n` and remove `run_in_serial` from most unit tests

* fix(specs): Bug and variable names

* fix: bug

* feat(clis/evmone): Add insufficient-blob-fee error

* fix(tests): Allow similar blob exceptions

* Apply suggestions from code review

Co-authored-by: danceratopz <danceratopz@gmail.com>

---------

Co-authored-by: danceratopz <danceratopz@gmail.com>
pacrob pushed a commit to pacrob/execution-spec-tests that referenced this pull request May 5, 2025
…ic context to parse using mapper (ethereum#1396)

* feat(clis,exceptions,specs): Pydantic validation using exception mapper

* fix(specs): Skip block exception check on requests modifications

* fix(docs): Links

* fix(tests): EIP-4844: mark block as skip block exception verification

* refactor(exceptions): Mapper mappings allow regex, convert from `property` to `ClassVar`

* fix(docs): tox

* chore(deps): remove now unused bdict dependency

* Suggestions for ethereum#1396, refactor(exceptions,specs): Support general block exceptions - Pydantic context to parse using mapper (ethereum#1404)

* refactor(fw): use enum helper; rename `ty` to `execution_context`

* refactor(fw): use more specific names for exception classes

* fix(tests): Add comment explaining `skip_exception_verification`

* feat(clis): Add `reliable` flag to exception mapper class

* fix: tests

* fix(specs,clis,tools): Use `default_t8n` and remove `run_in_serial` from most unit tests

* fix(specs): Bug and variable names

* fix: bug

* feat(clis/evmone): Add insufficient-blob-fee error

* fix(tests): Allow similar blob exceptions

* Apply suggestions from code review

Co-authored-by: danceratopz <danceratopz@gmail.com>

---------

Co-authored-by: danceratopz <danceratopz@gmail.com>
felix314159 pushed a commit to felix314159/execution-spec-tests that referenced this pull request May 16, 2025
…ic context to parse using mapper (ethereum#1396)

* feat(clis,exceptions,specs): Pydantic validation using exception mapper

* fix(specs): Skip block exception check on requests modifications

* fix(docs): Links

* fix(tests): EIP-4844: mark block as skip block exception verification

* refactor(exceptions): Mapper mappings allow regex, convert from `property` to `ClassVar`

* fix(docs): tox

* chore(deps): remove now unused bdict dependency

* Suggestions for ethereum#1396, refactor(exceptions,specs): Support general block exceptions - Pydantic context to parse using mapper (ethereum#1404)

* refactor(fw): use enum helper; rename `ty` to `execution_context`

* refactor(fw): use more specific names for exception classes

* fix(tests): Add comment explaining `skip_exception_verification`

* feat(clis): Add `reliable` flag to exception mapper class

* fix: tests

* fix(specs,clis,tools): Use `default_t8n` and remove `run_in_serial` from most unit tests

* fix(specs): Bug and variable names

* fix: bug

* feat(clis/evmone): Add insufficient-blob-fee error

* fix(tests): Allow similar blob exceptions

* Apply suggestions from code review

Co-authored-by: danceratopz <danceratopz@gmail.com>

---------

Co-authored-by: danceratopz <danceratopz@gmail.com>
kclowes pushed a commit to kclowes/execution-spec-tests that referenced this pull request Oct 20, 2025
…ic context to parse using mapper (ethereum#1396)

* feat(clis,exceptions,specs): Pydantic validation using exception mapper

* fix(specs): Skip block exception check on requests modifications

* fix(docs): Links

* fix(tests): EIP-4844: mark block as skip block exception verification

* refactor(exceptions): Mapper mappings allow regex, convert from `property` to `ClassVar`

* fix(docs): tox

* chore(deps): remove now unused bdict dependency

* Suggestions for ethereum#1396, refactor(exceptions,specs): Support general block exceptions - Pydantic context to parse using mapper (ethereum#1404)

* refactor(fw): use enum helper; rename `ty` to `execution_context`

* refactor(fw): use more specific names for exception classes

* fix(tests): Add comment explaining `skip_exception_verification`

* feat(clis): Add `reliable` flag to exception mapper class

* fix: tests

* fix(specs,clis,tools): Use `default_t8n` and remove `run_in_serial` from most unit tests

* fix(specs): Bug and variable names

* fix: bug

* feat(clis/evmone): Add insufficient-blob-fee error

* fix(tests): Allow similar blob exceptions

* Apply suggestions from code review

Co-authored-by: danceratopz <danceratopz@gmail.com>

---------

Co-authored-by: danceratopz <danceratopz@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants