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

chore(papyrus_p2p_sync): add block data receiver to p2psyncclient #2617

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eitanm-starkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

@eitanm-starkware eitanm-starkware force-pushed the eitan/add_block_data_receiver_to_p2psyncclient_constructor branch from dc1c438 to a27919f Compare December 10, 2024 10:20
@eitanm-starkware eitanm-starkware force-pushed the eitan/add_block_data_receiver_to_p2psyncclient_constructor branch 2 times, most recently from ee0e600 to 583173e Compare December 10, 2024 10:42
Copy link

codecov bot commented Dec 10, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 77.39%. Comparing base (e3165c4) to head (573a7a2).
Report is 823 commits behind head on main.

Files with missing lines Patch % Lines
crates/papyrus_node/src/run.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2617       +/-   ##
===========================================
+ Coverage   40.10%   77.39%   +37.28%     
===========================================
  Files          26      395      +369     
  Lines        1895    42649    +40754     
  Branches     1895    42649    +40754     
===========================================
+ Hits          760    33008    +32248     
- Misses       1100     7345     +6245     
- Partials       35     2296     +2261     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@ShahakShama ShahakShama left a comment

Choose a reason for hiding this comment

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

Reviewed 6 of 6 files at r1, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @eitanm-starkware)


crates/papyrus_node/src/run.rs line 307 at r1 (raw file):

                storage_writer,
                p2p_sync_client_channels,
                Box::pin(futures::stream::pending()),

use .boxed() instead


crates/papyrus_p2p_sync/src/client/mod.rs line 233 at r1 (raw file):

    p2p_sync_channels: P2PSyncClientChannels,
    #[allow(dead_code)]
    block_data_receiver: BoxStream<'static, SyncBlock>,

rename to internal_blocks_receiver

@eitanm-starkware eitanm-starkware force-pushed the eitan/add_block_data_receiver_to_p2psyncclient_constructor branch from 583173e to 138ae92 Compare December 10, 2024 11:41
Copy link
Contributor Author

@eitanm-starkware eitanm-starkware left a comment

Choose a reason for hiding this comment

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

Reviewable status: 2 of 6 files reviewed, 2 unresolved discussions (waiting on @ShahakShama)


crates/papyrus_node/src/run.rs line 307 at r1 (raw file):

Previously, ShahakShama wrote…

use .boxed() instead

Done.


crates/papyrus_p2p_sync/src/client/mod.rs line 233 at r1 (raw file):

Previously, ShahakShama wrote…

rename to internal_blocks_receiver

Done.

Copy link
Contributor

@ShahakShama ShahakShama left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 4 of 4 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @eitanm-starkware)

@eitanm-starkware eitanm-starkware force-pushed the eitan/add_block_data_receiver_to_p2psyncclient_constructor branch from 138ae92 to f4eab0f Compare December 10, 2024 11:58
Copy link
Contributor

@ShahakShama ShahakShama left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @eitanm-starkware)

Copy link
Contributor

@ShahakShama ShahakShama left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @eitanm-starkware)


crates/papyrus_p2p_sync/src/client/mod.rs line 233 at r3 (raw file):

    p2p_sync_channels: P2PSyncClientChannels,
    #[allow(dead_code)]
    internal_blocks_receiver: BoxStream<'static, SyncBlock>,

Should be (BlockNumber, SyncBlock)

@eitanm-starkware eitanm-starkware force-pushed the eitan/add_block_data_receiver_to_p2psyncclient_constructor branch from f4eab0f to fd7a70e Compare December 10, 2024 12:40
Copy link
Contributor

@ShahakShama ShahakShama left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r4, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @eitanm-starkware)


crates/papyrus_p2p_sync/src/client/mod.rs line 233 at r3 (raw file):

Previously, ShahakShama wrote…

Should be (BlockNumber, SyncBlock)

Could you put BlockNumber first? That's the convention in other places in the code (Including your previous PR)

@eitanm-starkware eitanm-starkware force-pushed the eitan/add_block_data_receiver_to_p2psyncclient_constructor branch 2 times, most recently from 7f54bd2 to eb62875 Compare December 10, 2024 13:21
Copy link

Benchmark movements:
tree_computation_flow performance regressed!
tree_computation_flow time: [34.619 ms 34.880 ms 35.184 ms]
change: [+1.2603% +2.0312% +2.9679%] (p = 0.00 < 0.05)
Performance has regressed.
Found 15 outliers among 100 measurements (15.00%)
2 (2.00%) high mild
13 (13.00%) high severe

@eitanm-starkware eitanm-starkware force-pushed the eitan/add_block_data_receiver_to_p2psyncclient_constructor branch from eb62875 to 14e0b30 Compare December 10, 2024 13:34
Copy link
Contributor

@ShahakShama ShahakShama left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 2 of 2 files at r5, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @eitanm-starkware)

@eitanm-starkware eitanm-starkware force-pushed the eitan/add_block_data_receiver_to_p2psyncclient_constructor branch from 14e0b30 to 573a7a2 Compare December 15, 2024 08:00
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