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(sync): stop sync at block number from config for profiling #1838

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

nagmo-starkware
Copy link
Contributor

@nagmo-starkware nagmo-starkware commented Mar 25, 2024

Pull Request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build-related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this introduce a breaking change?

  • Yes
  • No

Other information


This change is Reviewable

@nagmo-starkware
Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @nagmo-starkware and the rest of your teammates on Graphite Graphite

Copy link
Contributor

@yair-starkware yair-starkware left a comment

Choose a reason for hiding this comment

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

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

a discussion (no related file):
Why do you want to merge this to main?



crates/papyrus_p2p_sync/src/stream_factory.rs line 116 at r1 (raw file):

                        current_block_number >= stop_sync_at_block_number
                    }) {
                        return;

Please add log

Copy link
Contributor Author

@nagmo-starkware nagmo-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: all files reviewed, 2 unresolved discussions (waiting on @ShahakShama and @yair-starkware)

a discussion (no related file):

Previously, yair-starkware (Yair) wrote…

Why do you want to merge this to main?

I think it's useful to have the option to run profiling. this change is necessary for that



crates/papyrus_p2p_sync/src/stream_factory.rs line 116 at r1 (raw file):

Previously, yair-starkware (Yair) wrote…

Please add log

you'll get this:
ERROR P2P Sync stopped.
don't you think it's enough?

Copy link
Contributor

@yair-starkware yair-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: all files reviewed, 1 unresolved discussion (waiting on @nagmo-starkware and @ShahakShama)


crates/papyrus_p2p_sync/src/stream_factory.rs line 116 at r1 (raw file):

Previously, nagmo-starkware wrote…

you'll get this:
ERROR P2P Sync stopped.
don't you think it's enough?

I would prefer an informative message

@nagmo-starkware nagmo-starkware force-pushed the nevo/p2p_sync/stop_sync_from_config branch from 5193e8a to 298a494 Compare March 28, 2024 08:30
Copy link
Contributor Author

@nagmo-starkware nagmo-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: 4 of 5 files reviewed, 1 unresolved discussion (waiting on @ShahakShama and @yair-starkware)


crates/papyrus_p2p_sync/src/stream_factory.rs line 116 at r1 (raw file):

Previously, yair-starkware (Yair) wrote…

I would prefer an informative message

Done.

yair-starkware
yair-starkware previously approved these changes Mar 28, 2024
Copy link
Contributor

@yair-starkware yair-starkware 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 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ShahakShama)

@nagmo-starkware nagmo-starkware force-pushed the nevo/p2p_sync/stop_sync_from_config branch from 298a494 to e008936 Compare April 2, 2024 08:46
@nagmo-starkware nagmo-starkware marked this pull request as ready for review April 2, 2024 08:48
@nagmo-starkware nagmo-starkware force-pushed the nevo/p2p_sync/stop_sync_from_config branch from e008936 to a4a0faa Compare April 2, 2024 08:48
Copy link

codecov bot commented Apr 2, 2024

Codecov Report

Attention: Patch coverage is 53.84615% with 12 lines in your changes are missing coverage. Please review.

Project coverage is 72.65%. Comparing base (577618a) to head (a4a0faa).
Report is 1 commits behind head on main.

Files Patch % Lines
crates/papyrus_node/src/main.rs 0.00% 7 Missing ⚠️
crates/papyrus_p2p_sync/src/stream_factory.rs 28.57% 3 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1838      +/-   ##
==========================================
- Coverage   72.67%   72.65%   -0.03%     
==========================================
  Files         143      143              
  Lines       20287    20310      +23     
  Branches    20287    20310      +23     
==========================================
+ Hits        14744    14756      +12     
- Misses       3775     3784       +9     
- Partials     1768     1770       +2     

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

Copy link
Contributor

@yair-starkware yair-starkware left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: 2 of 7 files reviewed, all discussions resolved (waiting on @ShahakShama)

@nagmo-starkware nagmo-starkware added this pull request to the merge queue Apr 2, 2024
Merged via the queue into main with commit 7bfd213 Apr 2, 2024
32 of 33 checks passed
@nagmo-starkware nagmo-starkware deleted the nevo/p2p_sync/stop_sync_from_config branch April 2, 2024 11:31
@github-actions github-actions bot locked and limited conversation to collaborators Apr 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants