Skip to content

feat(tests): Blake2 test spec refactor #1395

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

Merged
merged 4 commits into from
Apr 4, 2025

Conversation

reedsa
Copy link
Contributor

@reedsa reedsa commented Apr 3, 2025

πŸ—’οΈ Description

Follow on to #1244 to add a spec file with common variables and constants.

πŸ”— 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.

Add files for spec and common variables and constants
@reedsa reedsa added the type:test Type: Add/refactor fw unit tests; no fw or el client test case changes label Apr 3, 2025
@reedsa reedsa requested a review from marioevz April 3, 2025 23:24
@reedsa reedsa marked this pull request as ready for review April 3, 2025 23:25
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.

Looks great!

Pushed two commits to improve readability of the changes between each test case:

  • h, m, t0 and t1 now default to the most common used values to remove these lines, and makes it easier to visualize what the changes are between each case.
  • Changed the IDs to match the test scenario rather than the ethereum/tests ID

Hashed the outputs between the changes I pushed and the previous commit in the PR and the outputs were identical.

Will merge in a bit!

@marioevz marioevz merged commit 8dd8df1 into ethereum:main Apr 4, 2025
11 of 12 checks passed
felix314159 pushed a commit to felix314159/execution-spec-tests that referenced this pull request May 16, 2025
* Blake2 test spec refactor

Add files for spec and common variables and constants

* CHANGELOG.md

* refactor(tests): EIP-152: Spec m, h, t0, t1 defaults

* refactor(tests): EIP-152: test IDs

---------

Co-authored-by: Mario Vega <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:test Type: Add/refactor fw unit tests; no fw or el client test case changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants