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(code): Add "full" proposal logic in consensus but outside the driver #417

Merged
merged 30 commits into from
Sep 30, 2024

Conversation

ancazamfir
Copy link
Collaborator

Closes: #416


PR author checklist

Copy link

codecov bot commented Sep 23, 2024

Codecov Report

Attention: Patch coverage is 91.34948% with 25 lines in your changes missing coverage. Please review.

Project coverage is 84.82%. Comparing base (2ede9bb) to head (9989d31).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
code/crates/consensus/src/handle.rs 74.67% 19 Missing ⚠️
code/crates/consensus/src/full_proposal.rs 96.74% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #417      +/-   ##
==========================================
+ Coverage   83.96%   84.82%   +0.86%     
==========================================
  Files          88       89       +1     
  Lines        6283     6487     +204     
==========================================
+ Hits         5275     5502     +227     
+ Misses       1008      985      -23     
Flag Coverage Δ
integration 85.08% <91.35%> (+0.86%) ⬆️
mbt 23.23% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Base automatically changed from anca/decision_proposal_round to main September 24, 2024 12:12
@ancazamfir ancazamfir requested a review from romac September 26, 2024 09:47
@ancazamfir
Copy link
Collaborator Author

@romac , added L28 handling, please take a look.

@romac romac marked this pull request as ready for review September 26, 2024 11:13
Copy link
Member

@romac romac left a comment

Choose a reason for hiding this comment

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

Amazing work!

@ancazamfir
Copy link
Collaborator Author

will clean up tests and add more

Remove proposal for ALL rounds on decide. Keep the last two heights.

Push proposed value for higher heights in the msg_queue.

Add full_proposals_for_value to return multiple proposals after value
add.

Refactor tests.

Add more POL tests.
@ancazamfir
Copy link
Collaborator Author

@romac, as discussed I added the case where the value is received after the proposal(s). Added tests.

@ancazamfir ancazamfir merged commit a4b3564 into main Sep 30, 2024
12 checks passed
@ancazamfir ancazamfir deleted the anca/complete_prop_outsideconsensus branch September 30, 2024 15:30
romac added a commit that referenced this pull request Sep 30, 2024
…river (#417)

* Implement the complete proposal logic

* Add tests for the new keeper.

* Handle L28

* Remove proposals for all rounds on decide. Keep the last two heights.

---------

Co-authored-by: Romain Ruetschi <[email protected]>
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.

code: Multiplexing votes with full proposals is broken
2 participants