-
Notifications
You must be signed in to change notification settings - Fork 26
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(sequencing): remove ProposalChunk #2512
chore(sequencing): remove ProposalChunk #2512
Conversation
95f13f3
to
b9fa56f
Compare
84ca7d2
to
8a2c0ae
Compare
b9fa56f
to
4aec645
Compare
0eae84e
to
78dd7ea
Compare
78dd7ea
to
bb57c46
Compare
Artifacts upload workflows: |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2512 +/- ##
===========================================
- Coverage 40.10% 17.99% -22.11%
===========================================
Files 26 119 +93
Lines 1895 14058 +12163
Branches 1895 14058 +12163
===========================================
+ Hits 760 2530 +1770
- Misses 1100 11257 +10157
- Partials 35 271 +236 ☔ 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.
Reviewed 5 of 5 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @guy-starkware and @matan-starkware)
crates/sequencing/papyrus_consensus/src/types.rs
line 31 at r1 (raw file):
/// The chunks of content returned when iterating the proposal. // In practice I expect this to match the type sent to the network // (papyrus_protobuf::ConsensusMessage), and not to be specific to just the block's content.
Replace this with doc to ProposalPart (it should contain the ProposalInit + Fin, right?)
Code quote:
/// The chunks of content returned when iterating the proposal.
// In practice I expect this to match the type sent to the network
// (papyrus_protobuf::ConsensusMessage), and not to be specific to just the block's content.
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 @guy-starkware and @matan-starkware)
crates/sequencing/papyrus_consensus_orchestrator/src/sequencer_consensus_context.rs
line 134 at r1 (raw file):
#[async_trait] impl ConsensusContext for SequencerConsensusContext { // TODO(guyn): Switch to ProposalPart when done with the streaming integration.
does this comment still apply?
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 @asmaastarkware and @matan-starkware)
crates/sequencing/papyrus_consensus/src/types.rs
line 31 at r1 (raw file):
Previously, asmaastarkware (asmaa-starkware) wrote…
Replace this with doc to ProposalPart (it should contain the ProposalInit + Fin, right?)
Done.
crates/sequencing/papyrus_consensus_orchestrator/src/sequencer_consensus_context.rs
line 134 at r1 (raw file):
Previously, asmaastarkware (asmaa-starkware) wrote…
does this comment still apply?
No, I'm removing it. Thanks!
bb57c46
to
8682fd1
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.
Reviewed 2 of 2 files at r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @matan-starkware)
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 3 of 5 files at r1, 2 of 2 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @guy-starkware)
crates/sequencing/papyrus_consensus/src/test_utils.rs
line 21 at r2 (raw file):
#[derive(Debug, PartialEq, Clone)] pub struct MockProposalPart(pub u64);
Please rename this FakeProposalPart or TestProposalPart. A Mock is something which you set expectations on. A Fake is a simplified version for the sake of testing.
Separate PR
Code quote:
#[derive(Debug, PartialEq, Clone)]
pub struct MockProposalPart(pub u64);
8682fd1
to
7bc63e0
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 6 files reviewed, all discussions resolved (waiting on @asmaastarkware and @matan-starkware)
crates/sequencing/papyrus_consensus/src/test_utils.rs
line 21 at r2 (raw file):
Previously, matan-starkware wrote…
Please rename this FakeProposalPart or TestProposalPart. A Mock is something which you set expectations on. A Fake is a simplified version for the sake of testing.
Separate PR
Done.
a5d57e5
to
2f802e2
Compare
2f802e2
to
307e662
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.
Reviewed 6 of 6 files at r4, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @guy-starkware)
No description provided.