apollo_batcher: use finish proposal api#12972
apollo_batcher: use finish proposal api#12972itamar-starkware wants to merge 1 commit into03-02-apollo_batcher_add_finish_proposal_apifrom
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
f035373 to
5ada8e4
Compare
589e327 to
49938c3
Compare
5ada8e4 to
873a4df
Compare
49938c3 to
5c1e50a
Compare
873a4df to
9f4baa8
Compare
5c1e50a to
9a37bca
Compare
ArniStarkware
left a comment
There was a problem hiding this comment.
@ArniStarkware reviewed 1 file.
Reviewable status: 1 of 7 files reviewed, all discussions resolved (waiting on TzahiTaub).
ArniStarkware
left a comment
There was a problem hiding this comment.
@ArniStarkware reviewed 6 files and all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on TzahiTaub).
eabd9b9 to
c0af453
Compare
9a16d29 to
591851e
Compare
ArniStarkware
left a comment
There was a problem hiding this comment.
@ArniStarkware reviewed 7 files and all commit messages, and made 1 comment.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on TzahiTaub).
591851e to
069a411
Compare
c0af453 to
b1b94c2
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
crates/apollo_consensus_orchestrator/src/sequencer_consensus_context_test.rs
Show resolved
Hide resolved
069a411 to
74f4238
Compare
b1b94c2 to
2775684
Compare
74f4238 to
699182b
Compare
2775684 to
e3a313e
Compare

TL;DR
Removed deprecated
SendProposalContent::Finishvariant and migrated all callers to use the dedicatedfinish_proposalmethod.What changed?
SendProposalContent::Finishvariant from the enum, leaving onlySendProposalContent::TxsProposalStatus::Finishedvariant from proposal status responsesBatcher::send_proposal_contentthat handled finish requestsfinish_proposalmethod withFinishProposalInputinstead of sending finish content throughsend_proposal_contentSendProposalContent::Finish/Aborttoproposal finalization/abortHow to test?
Run the existing test suite to verify that:
Why make this change?
This removes technical debt by eliminating a deprecated API pattern. The change consolidates proposal finishing into a dedicated method rather than overloading the content sending mechanism, resulting in cleaner separation of concerns and a more maintainable codebase.
Note
Medium Risk
Moderate risk because it changes a cross-crate API and response types between consensus and batcher; regressions would show up as proposals not finalizing or incorrect status handling, though changes are narrow and covered by updated tests.
Overview
Migrates proposal finalization off the overloaded
send_proposal_contentpath by removing the deprecatedSendProposalContent::Finish+ProposalStatus::Finishedvariants and routing all finish semantics through the dedicatedfinish_proposal(FinishProposalInput) -> FinishProposalStatusAPI.Updates batcher logic, consensus-orchestrator validation flow (
validate_proposal), and related mocks/tests to usefinish_proposal, and adjusts docs/comments to refer to proposal finalization/abort rather than the old Finish/Abort stream semantics.Written by Cursor Bugbot for commit e3a313e. This will update automatically on new commits. Configure here.