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

refactor(consensus): remove next_message to ensure cancellation safety #2497

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

matan-starkware
Copy link
Contributor

Previously we could receive a message and then at the await point for continue_propagation or report_peer the select statement could complete another branch resulting in a dropped message.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link

codecov bot commented Dec 5, 2024

Codecov Report

Attention: Patch coverage is 61.90476% with 8 lines in your changes missing coverage. Please review.

Project coverage is 13.23%. Comparing base (e3165c4) to head (a838ea6).
Report is 755 commits behind head on main.

Files with missing lines Patch % Lines
crates/sequencing/papyrus_consensus/src/manager.rs 61.90% 8 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2497       +/-   ##
===========================================
- Coverage   40.10%   13.23%   -26.88%     
===========================================
  Files          26       63       +37     
  Lines        1895     7738     +5843     
  Branches     1895     7738     +5843     
===========================================
+ Hits          760     1024      +264     
- Misses       1100     6677     +5577     
- Partials       35       37        +2     

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

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

Copy link
Collaborator

@dan-starkware dan-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 r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @matan-starkware)

Copy link
Contributor Author

matan-starkware commented Dec 9, 2024

Merge activity

  • Dec 9, 6:22 AM EST: A user started a stack merge that includes this pull request via Graphite.
  • Dec 9, 6:25 AM EST: Graphite rebased this pull request as part of a merge.
  • Dec 9, 6:43 AM EST: A user merged this pull request with Graphite.

@matan-starkware matan-starkware changed the base branch from matan/consensus/manager_start_height to graphite-base/2497 December 9, 2024 11:22
@matan-starkware matan-starkware changed the base branch from graphite-base/2497 to main December 9, 2024 11:22
Previously we could receive a message and then at the await point for continue_propagation or
report_peer the select statement could complete another branch resulting in a dropped message.
@matan-starkware matan-starkware force-pushed the matan/consensus/manager_remove_next_message branch from bd405f2 to a838ea6 Compare December 9, 2024 11:24
@matan-starkware matan-starkware merged commit 780935a into main Dec 9, 2024
16 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Dec 12, 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.

4 participants