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(consensus): add metric for sync in consensus and update the simulation script #490

Merged

Conversation

matan-starkware
Copy link
Contributor

@matan-starkware matan-starkware commented Aug 18, 2024

This change is Reviewable

Copy link

codecov bot commented Aug 18, 2024

Codecov Report

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

Project coverage is 76.71%. Comparing base (32e3859) to head (c1d9ec6).
Report is 4 commits behind head on main.

Files Patch % Lines
...pyrus_consensus/src/simulation_network_receiver.rs 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #490      +/-   ##
==========================================
+ Coverage   76.66%   76.71%   +0.04%     
==========================================
  Files         348      348              
  Lines       36345    36366      +21     
  Branches    36345    36366      +21     
==========================================
+ Hits        27863    27897      +34     
+ Misses       6160     6147      -13     
  Partials     2322     2322              

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

Copy link
Contributor

@DvirYo-starkware DvirYo-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, 1 unresolved discussion (waiting on @asmaastarkware and @matan-starkware)


crates/sequencing/papyrus_consensus/src/manager.rs line 71 at r1 (raw file):

                current_height = current_height.unchecked_next();
            },
            sync_height = sync_height(current_height, &mut sync_receiver) => {

I think this will set the count to 1, not increment it by one, is it your intention?

@matan-starkware matan-starkware force-pushed the matan/consensus/m3/rename_notify_decision_to_decision_reached branch from 29733c5 to cdcd9f8 Compare August 18, 2024 10:21
@matan-starkware matan-starkware force-pushed the matan/consensus/m3/sync_monitoring_consensus_script branch from 9edafbe to b9e1a5e Compare August 18, 2024 10:21
Copy link
Contributor Author

@matan-starkware matan-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 @asmaastarkware and @DvirYo-starkware)


crates/sequencing/papyrus_consensus/src/manager.rs line 71 at r1 (raw file):

Previously, DvirYo-starkware wrote…

I think this will set the count to 1, not increment it by one, is it your intention?

Not my intention. I ran simulations where the counter seems to increase as expected (it definitely was above 1).

Copy link
Contributor

@asmaastarkware asmaastarkware 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 all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @DvirYo-starkware)

@DvirYo-starkware
Copy link
Contributor

crates/sequencing/papyrus_consensus/src/manager.rs line 71 at r1 (raw file):

Previously, matan-starkware wrote…

Not my intention. I ran simulations where the counter seems to increase as expected (it definitely was above 1).

consider using increment_counter! instead

@matan-starkware matan-starkware changed the base branch from matan/consensus/m3/rename_notify_decision_to_decision_reached to graphite-base/490 August 18, 2024 10:34
@matan-starkware matan-starkware force-pushed the matan/consensus/m3/sync_monitoring_consensus_script branch from b9e1a5e to 2db1588 Compare August 18, 2024 10:34
@matan-starkware matan-starkware changed the base branch from graphite-base/490 to main August 18, 2024 10:35
@matan-starkware matan-starkware force-pushed the matan/consensus/m3/sync_monitoring_consensus_script branch from 2db1588 to 0c2254f Compare August 18, 2024 10:35
@matan-starkware matan-starkware force-pushed the matan/consensus/m3/sync_monitoring_consensus_script branch from 0c2254f to c1d9ec6 Compare August 18, 2024 10:43
Copy link
Contributor Author

@matan-starkware matan-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 @DvirYo-starkware)


crates/sequencing/papyrus_consensus/src/manager.rs line 71 at r1 (raw file):

Previously, DvirYo-starkware wrote…

consider using increment_counter! instead

Done.

Copy link
Contributor

@DvirYo-starkware DvirYo-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 @matan-starkware)

@matan-starkware
Copy link
Contributor Author

matan-starkware commented Aug 18, 2024

Merge activity

@matan-starkware matan-starkware merged commit bc4fc7d into main Aug 18, 2024
22 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Aug 20, 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.

3 participants