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

Sync main with sync layer stable #1962

Merged

Conversation

StanislavBreadless
Copy link
Contributor

What ❔

Why ❔

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.
  • Spellcheck has been run via zk spellcheck.

popzxc and others added 5 commits May 16, 2024 05:42
Extracts remaining (strategically meaningful) parts of `zksync_core`.

This was a hell of a feat to de-entangle all of these interdependencies
(especially in tests, oh boy).
The following crates were extracted:

- zksync_node_test_utils
- zksync_state_keeper
- zksync_reorg_detector
- zksync_consistency_checker
- zksync_metadata_calculator
- zksync_node_sync
- zksync_node_consensus
- zksync_contract_verification_server
- zksync_node_api_server
- zksync_tee_verifier_input_producer

Contents of `zksync_core::utils` were moved to other places.
`zksync_core` was renamed to `zksync_core_leftovers` (and will be
removed when we migrate to the framework).

⚠️ this is not a perfect PR. In some places, moving stuff to another
location may not be fully idiomatic. In other places, the visibility of
many items could've been reduced. However, it was TOUGH to get this PR
even to this form, so let's focus on major issues. All the minor things
are to be polished later.

Once this is merged, I'll also update settings for infra to enable logs
for new crates.
## What ❔

Only do a hex string conversion if serializer/deserializer
`.is_human_readable()`.

## Why ❔

bincode does not need a hex string presentation.

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [x] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [x] Code has been formatted via `zk fmt` and `zk lint`.
- [ ] Spellcheck has been run via `zk spellcheck`.

Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
## What ❔

This PR creates a new abstraction `OutputHandlerFactory` that can
orchestrate output handlers in a non-trivial manner. Specifically, for
the purposes of VM runner we create an implementation
`ConcurrentOutputHandlerFactory` that can produce delegated output
handlers that internally use another output handler (i.e. delegatee is
specific to the VM runner implementation). The main benefit of this
implementation is that `handle_l1_batch` is non-blocking and finishes
almost immediately. The actual work is spawned as a future and is then
handled asynchronously enabling us to create many output handlers in
parallel.

## Why ❔

One of the components for the upcoming VM runner

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [x] Tests for the changes have been added / updated.
- [x] Documentation comments have been added / updated.
- [x] Code has been formatted via `zk fmt` and `zk lint`.
- [x] Spellcheck has been run via `zk spellcheck`.
- [x] Linkcheck has been run via `zk linkcheck`.
## What ❔
Docker image and CI for verified-sources-fetcher

## Why ❔
For use it as independent component

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [x] Tests for the changes have been added / updated.
- [x] Documentation comments have been added / updated.
- [x] Code has been formatted via `zk fmt` and `zk lint`.
- [x] Spellcheck has been run via `zk spellcheck`.
@StanislavBreadless StanislavBreadless requested a review from a team as a code owner May 16, 2024 12:42
@StanislavBreadless StanislavBreadless requested review from yorik, alexandrst88, artmakh, hatemosphere, onyxet and otani88 and removed request for a team May 16, 2024 12:42
@StanislavBreadless StanislavBreadless changed the title Sb sync main with sync layer stable Sync main with sync layer stable May 16, 2024
@StanislavBreadless StanislavBreadless merged commit 745f2c3 into sync-layer-stable May 16, 2024
38 of 47 checks passed
@StanislavBreadless StanislavBreadless deleted the sb-sync-main-with-sync-layer-stable branch May 16, 2024 12:42
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.

5 participants