Skip to content

refactor(tests): update JUMPF EOF tests to max_stack_increase #1458

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chfast
Copy link
Member

@chfast chfast commented Apr 16, 2025

🗒️ Description

This updates EIP-6206 (JUMPF) tests to use max_stack_increase instead of max_stack_height.
In many places the value is correctly auto-computed so for these cases the explicit value is omitted.

🔗 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.

This updates EIP-6206 (JUMPF) tests to use `max_stack_increase`
instead of `max_stack_height`.
In many places the value is correctly auto-computed so for these cases
the explicit value is omitted.
@chfast chfast added scope:tests Scope: Changes EL client test cases in `./tests` type:refactor Type: Refactor fork:osaka Osaka hardfork labels Apr 16, 2025
@chfast chfast requested review from marioevz and pdobacz April 16, 2025 07:53
@@ -391,7 +390,7 @@ def test_jumpf_to_returning_variable_stack_3(eof_test: EOFTestFiller):
Section.Code(
code=Op.REVERT(0, 0),
code_inputs=1,
max_stack_height=3,
Copy link
Collaborator

Choose a reason for hiding this comment

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

difference here is != code_inputs, but it looks sensible. Can you confirm this is intended?

Copy link
Member Author

Choose a reason for hiding this comment

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

Looks like typo

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

Successfully merging this pull request may close these issues.

2 participants