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): run hive tests with levm, generate and publish report #1546

Merged
merged 46 commits into from
Dec 27, 2024

Conversation

JereSalo
Copy link
Contributor

@JereSalo JereSalo commented Dec 20, 2024

Motivation

Description

  • We now can execute multiple transactions in a block and commit them after execution of them all.

  • It refactors get_state_transitions_levm, now in account_updates we'll have only the things that have changed from the account, so that we don't have much redundant information

  • We build the client image with LEVM, we run hive tests and then we publish them

  • Add to the Dockerfile the possibility to add build flags.

  • Avoid panicking if setup wasn't completed successfully, as no tests will run in that scenario.

We can run tests with hive but the problem is that these tests execute a lot of blocks at the beginning and we usually fail at some block because of a difference in state, I tried debugging some tests and I fixed some things in other PRs but at some point I got stuck and decided that it was a better idea to leave it as is and merge this to main.

@JereSalo JereSalo added the levm Lambda EVM implementation label Dec 20, 2024
@JereSalo JereSalo self-assigned this Dec 20, 2024
@JereSalo JereSalo changed the title feat(levm): run hive tests with levm (executing multiple transactions in block) feat(levm): run hive tests with levm (and make them pass!) Dec 20, 2024
@JereSalo JereSalo marked this pull request as ready for review December 23, 2024 18:53
@JereSalo JereSalo requested a review from a team as a code owner December 23, 2024 18:53
JereSalo and others added 2 commits December 27, 2024 10:24
**Motivation**

<!-- Why does this pull request exist? What are its goals? -->
Publish results of running Hive tests with LEVM to slack channel 

**Description**

<!-- A clear and concise general description of the changes this PR
introduces -->

- We build the client image with LEVM, we run hive tests and then we
publish them
- Add to the Dockerfile the possibility to add build flags.
- Avoid panicking if setup wasn't completed successfully, as no tests
will run in that scenario.
@JereSalo JereSalo changed the title feat(levm): run hive tests with levm (and make them pass!) feat(levm): run hive tests with levm, generate and publish report Dec 27, 2024
@JereSalo JereSalo marked this pull request as draft December 27, 2024 14:00
@JereSalo JereSalo marked this pull request as ready for review December 27, 2024 15:01
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. Left some suggestions.

@@ -28,6 +28,7 @@ path = "./blockchain.rs"

[features]
default = ["c-kzg"]
default-levm = ["default", "levm"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's name the target to levm

Suggested change
default-levm = ["default", "levm"]
levm = ["default", "levm"]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is already a levm target
levm = ["ethrex-vm/levm"]
Do you think I should just do: levm = ["default", "ethrex-vm/levm"]?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

crates/vm/Cargo.toml Outdated Show resolved Hide resolved
crates/vm/vm.rs Outdated Show resolved Hide resolved
crates/vm/vm.rs Outdated Show resolved Hide resolved
@JereSalo JereSalo added this pull request to the merge queue Dec 27, 2024
Merged via the queue into main with commit ecfa698 Dec 27, 2024
20 checks passed
@JereSalo JereSalo deleted the levm/integration_l1_hive branch December 27, 2024 20:14
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