Skip to content

Cumulus: pre-connect to backers before own slot#9929

Merged
bkchr merged 73 commits intomasterfrom
sandreim/collator_protocol_notifications
Nov 3, 2025
Merged

Cumulus: pre-connect to backers before own slot#9929
bkchr merged 73 commits intomasterfrom
sandreim/collator_protocol_notifications

Conversation

@sandreim
Copy link
Copy Markdown
Contributor

@sandreim sandreim commented Oct 3, 2025

On top of #9178. Implements a mechanism to pre-connect to backers, see #9767 (comment)

How it works:

  • connect to backers 6s before own slot starts
  • disconnect from all backers and stop connecting as the RC advances if own slot has finished

TODO:

  • fix collator protocol tests
  • Explicitly disconnect from all backers when own slot has passed
  • add test coverage for new connect/disconnect notifications

alexggh and others added 10 commits July 11, 2025 17:26
Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io>
Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io>
Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io>
…ggh/cleanup_connecting_to_backing_group

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
@sandreim sandreim marked this pull request as ready for review October 4, 2025 09:20
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
@sandreim
Copy link
Copy Markdown
Contributor Author

sandreim commented Oct 4, 2025

/cmd prdoc generate --bump major

@sandreim sandreim added T0-node This PR/Issue is related to the topic “node”. T9-cumulus This PR/Issue is related to cumulus. labels Oct 4, 2025
github-actions bot and others added 3 commits October 4, 2025 10:25
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
…:paritytech/polkadot-sdk into sandreim/collator_protocol_notifications
@sandreim
Copy link
Copy Markdown
Contributor Author

sandreim commented Oct 4, 2025

/cmd fmt

github-actions bot and others added 6 commits October 4, 2025 14:17
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
…:paritytech/polkadot-sdk into sandreim/collator_protocol_notifications
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
sandreim and others added 3 commits October 20, 2025 14:18
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Base automatically changed from alexggh/cleanup_connecting_to_backing_group to master October 20, 2025 12:54
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
@sandreim
Copy link
Copy Markdown
Contributor Author

/cmd fmt

@paritytech-workflow-stopper
Copy link
Copy Markdown

All GitHub workflows were cancelled due to failure one of the required jobs.
Failed workflow url: https://github.com/paritytech/polkadot-sdk/actions/runs/18710942031
Failed job name: test-linux-stable

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
…:paritytech/polkadot-sdk into sandreim/collator_protocol_notifications
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Copy link
Copy Markdown
Contributor

@skunert skunert left a comment

Choose a reason for hiding this comment

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

Looks nice!

.map(|h| BackingGroupConnectionHelper::new(para_client.clone(), keystore.clone(), h.clone()))
.or_else(|| {
tracing::warn!(target: LOG_TARGET,
"Relay chain interface does not provide overseer handle. Backing group pre-connect is disabled.");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This could be an abort condition, I don't think we can handle this gracefully. How would we submit the collation and everything. Should never happen.

@bkchr bkchr added this pull request to the merge queue Nov 3, 2025
Merged via the queue into master with commit 38e3658 Nov 3, 2025
274 of 279 checks passed
@bkchr bkchr deleted the sandreim/collator_protocol_notifications branch November 3, 2025 08:56
@github-project-automation github-project-automation bot moved this from Review/Audit in progress to Completed in parachains team board Nov 3, 2025
RomarQ pushed a commit to moonbeam-foundation/polkadot-sdk that referenced this pull request Dec 3, 2025
On top of paritytech#9178.
Implements a mechanism to pre-connect to backers, see
paritytech#9767 (comment)

How it works:
- connect to backers 6s before own slot starts
- disconnect from all backers and stop connecting as the RC advances if
own slot has finished

TODO:
- [x] fix collator protocol tests
- [x] Explicitly disconnect from all backers when own slot has passed
- [x] add test coverage for new connect/disconnect notifications

---------

Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Co-authored-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io>
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Alexandru Gheorghe <49718502+alexggh@users.noreply.github.com>
Co-authored-by: Bastian Köcher <git@kchr.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T0-node This PR/Issue is related to the topic “node”. T9-cumulus This PR/Issue is related to cumulus.

Projects

Status: Completed

Development

Successfully merging this pull request may close these issues.

7 participants