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

feat(levm): running all ef tests with revm and fixing problems #1275

Merged
merged 48 commits into from
Nov 27, 2024

Conversation

JereSalo
Copy link
Contributor

@JereSalo JereSalo commented Nov 25, 2024

Motivation

  • We want to run all eftests with revm and make them pass so it can be a reliable source for comparing execution with levm.

Description

  • Runs all tests with revm -> Done

  • Fix execution of revm -> Most of Cancun tests have been fixed, 8 of them don't pass but it is good enough

  • Access lists are now deserialized, in .json files there are 1 access list per data element. So we use data index for accessing them.

  • I didn't make serious error handling for running with revm because it is not a core functionality, doing that will take a little bit more work but maybe it is not necessary.

Closes #issue_number

@JereSalo JereSalo added the levm Lambda EVM implementation label Nov 25, 2024
@JereSalo JereSalo self-assigned this Nov 25, 2024
@JereSalo JereSalo marked this pull request as ready for review November 27, 2024 14:54
@JereSalo JereSalo requested a review from a team as a code owner November 27, 2024 14:54
@@ -55,6 +55,7 @@ pub fn run_ef_tests(
run_with_levm(&mut reports, &ef_tests)?;
}
re_run_with_revm(&mut reports, &ef_tests)?;
// _run_with_revm(&mut reports, &ef_tests)?;
Copy link
Contributor

@ilitteri ilitteri Nov 27, 2024

Choose a reason for hiding this comment

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

If this is going to be merged to main we should remove this commented line and add documentation on the commented function explaining when to use it.

Suggested change
// _run_with_revm(&mut reports, &ef_tests)?;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in f4891c0

Copy link
Contributor

@ilitteri ilitteri left a comment

Choose a reason for hiding this comment

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

LGTM. We can merge after addressing the comment.

@JereSalo JereSalo requested a review from ilitteri November 27, 2024 19:18
@JereSalo JereSalo added this pull request to the merge queue Nov 27, 2024
Merged via the queue into main with commit 838e530 Nov 27, 2024
3 checks passed
@JereSalo JereSalo deleted the levm/running-ef-tests-revm branch November 27, 2024 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
levm Lambda EVM implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants