-
Notifications
You must be signed in to change notification settings - Fork 85
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
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @nagmo-starkware and the rest of your teammates on Graphite |
There was a problem hiding this 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
There was a problem hiding this 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?
There was a problem hiding this 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
5193e8a
to
298a494
Compare
There was a problem hiding this 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.
There was a problem hiding this 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 r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @ShahakShama)
298a494
to
e008936
Compare
e008936
to
a4a0faa
Compare
Codecov ReportAttention: Patch coverage is
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. |
There was a problem hiding this 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 7 files reviewed, all discussions resolved (waiting on @ShahakShama)
Pull Request type
Please check the type of change your PR introduces:
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this introduce a breaking change?
Other information
This change is