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

refactor(state-keeper): Use owned VM storage for batch executor #2559

Merged
merged 5 commits into from
Aug 6, 2024

Conversation

slowli
Copy link
Contributor

@slowli slowli commented Aug 1, 2024

What ❔

  • Refactors ReadStorageFactory and BatchExecutor.
  • Tests the VM runner on multiple batch workloads and fixes bugs discovered by the tests (e.g., a data race in the storage loader).

Why ❔

  • ReadStorageFactory and BatchExecutor become more composable and work in VM runner with less crutches.
  • More tests allow fixing bugs in VM runner earlier.

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • Code has been formatted via zk fmt and zk lint.

fix(vm-runner): Fix data race in storage loader
test(vm-runner): Test VM runner with multiple L1 batches

@slowli slowli changed the title refactor(state-keeper): refactor(state-keeper): Use owned VM storage for batch executor Aug 1, 2024
@slowli slowli force-pushed the aov-pla-1004-test-vm-runner-with-multiple-l1-batches branch from 47d2a70 to a5d000e Compare August 1, 2024 10:10
@slowli slowli marked this pull request as ready for review August 1, 2024 10:43
Copy link
Member

@popzxc popzxc left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@itegulov itegulov left a comment

Choose a reason for hiding this comment

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

Great improvement! ❤️

@slowli slowli added this pull request to the merge queue Aug 6, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 6, 2024
@slowli slowli added this pull request to the merge queue Aug 6, 2024
Merged via the queue into main with commit 1810b78 Aug 6, 2024
48 checks passed
@slowli slowli deleted the aov-pla-1004-test-vm-runner-with-multiple-l1-batches branch August 6, 2024 12:17
@JanKortes212
Copy link

ok

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.

4 participants