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(l2): fix zkVM performance test #1202

Merged
merged 2 commits into from
Nov 19, 2024
Merged

fix(l2): fix zkVM performance test #1202

merged 2 commits into from
Nov 19, 2024

Conversation

xqft
Copy link
Contributor

@xqft xqft commented Nov 18, 2024

Motivation

This test uses the test_data/genesis-l2.json and test_data/l2-loadtest.rlp files. The genesis file was changed in #1158, breaking the test because now the genesis block hash changed and so the second block's parent isn't present in the chain anymore. The test only executed in the CI whenever a file in crates/l2/prover/ was touched, leaving the breaking change unnoticed.

Needed for #1133

Description

  • bring back the old genesis file as test_data/genesis-l2-old.json (a better solution would be to regeneratetest_data/l2-loadtest.rlp).
  • change the test's CI job to always execute.

@xqft xqft marked this pull request as ready for review November 18, 2024 16:12
@xqft xqft requested a review from a team as a code owner November 18, 2024 16:12
Copy link
Contributor

@fborello-lambda fborello-lambda left a comment

Choose a reason for hiding this comment

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

I think it's a good solution overall.

Comment on lines -5 to -6
paths:
- "crates/l2/prover/**"
Copy link
Contributor

Choose a reason for hiding this comment

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

We may trigger the CI even if it's not strictly necessary, which could make the merging process take longer. Maybe we can set it to "crates/l2/**" ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Agreed, let's restore this and then we can merge

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The bug was introduced because the breaking change was made in another directory, outside of crates/, I think we should be running every test each time to avoid predicting where a breaking change could occur.

Copy link
Collaborator

Choose a reason for hiding this comment

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

That's fair, the workflow also does not take too long so I think it's fine to leave it

@jrchatruc jrchatruc added this pull request to the merge queue Nov 19, 2024
Merged via the queue into main with commit 064bd79 Nov 19, 2024
18 checks passed
@jrchatruc jrchatruc deleted the l2/fix_zkvm_perf_test branch November 19, 2024 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants