Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tests): EOF - Change kind_data from 0x04 to 0xff #1339

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pdobacz
Copy link
Collaborator

@pdobacz pdobacz commented Mar 21, 2025

πŸ—’οΈ Description

Align with eof-devnet-1 changes ipsilon/eof#173. Fills with evmone after a respective update, will be referenced soon πŸ‘‡

πŸ”— Related Issues

βœ… Checklist

  • All: Set appropriate labels for the changes.
  • All: Considered squashing commits to improve commit history.
  • All: Added an entry to CHANGELOG.md.
  • All: Considered updating the online docs in the ./docs/ directory.
  • Tests: All converted JSON/YML tests from ethereum/tests have been added to converted-ethereum-tests.txt.
  • Tests: A PR with removal of converted JSON/YML tests from ethereum/tests have been opened.
  • Tests: Included the type and version of evm t8n tool used to locally execute test cases: e.g., ref with commit hash or geth 1.13.1-stable-3f40e65.
  • Tests: Ran mkdocs serve locally and verified the auto-generated docs for new tests in the Test Case Reference are correctly formatted.

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.

Some minor suggestions, but overall looks good to me!

@@ -31,16 +31,14 @@
VERSION_NUMBER_BYTES,
)

VERSION_MAX_SECTION_KIND = 3
Copy link
Member

Choose a reason for hiding this comment

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

What about doing something like VERSION_MAX_NON_DATA_SECTION_KIND?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm skeptical. It was used in only 3 spots in one test. Also, this abstraction might not hold in future designs, e.g. metadata section kind might end up being at 5 skipping 4, so a concept like max section kind is a bit misleading. It might not be a contiguous key list.

@@ -832,8 +832,8 @@ def test_wide_container(eof_test: EOFTestFiller, width: int, exception: EOFExcep
]
+ 2 * [abort_sub_container],
expected_bytecode="""
ef0001010004020001000b03000200140014040000000080000436600060ff6000ec015000ef00010100
0402000100010400000000800000feef000101000402000100010400000000800000fe""",
ef0001010004020001000b03000200140014ff0000000080000436600060ff6000ec015000ef00010100
Copy link
Contributor

Choose a reason for hiding this comment

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

@marioevz
this is what I mean. one byte change in the format and we have to correct all the tests.
in this case I think it is better we have a few unit tests for eof format builder.
and disable expected_bytecode validation in most of EOF tests. unless EOF want to stay super secure and maintain it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I second this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope:tests Scope: Changes EL client test cases in `./tests`
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants