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

collation-generation + collator-protocol: collate on multiple assigned cores #3795

Merged
merged 31 commits into from
Mar 27, 2024

Conversation

sandreim
Copy link
Contributor

@sandreim sandreim commented Mar 22, 2024

This works only for collators that implement the collator_fn allowing collation-generation subsystem to pull collations triggered on new heads.

Also enables request_v2::CollationFetchingResponse::CollationWithParentHeadData for test adder/undying collators.

TODO:

  • fix tests
  • new tests
  • PR doc

@sandreim sandreim changed the title collation-generation: collate on multiple assigned cores collation-generation + collator-protoocl: collate on multiple assigned cores Mar 22, 2024
@sandreim sandreim changed the title collation-generation + collator-protoocl: collate on multiple assigned cores collation-generation + collator-protocol: collate on multiple assigned cores Mar 22, 2024
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
@sandreim sandreim added the R0-silent Changes should not be mentioned in any release notes label Mar 25, 2024
@sandreim sandreim marked this pull request as ready for review March 25, 2024 11:51
@sandreim
Copy link
Contributor Author

Looks like CI gets stuck and it's this PR's fault: TRY 1 SLOW [>480.000s] test-parachain-undying-collator::integration collating_using_undying_collator TRY 1 SLOW [>540.000s] test-parachain-adder-collator::integration collating_using_adder_collator TRY 1 SLOW [>540.000s] test-parachain-undying-collator::integration collating_using_undying_collator

Copy link
Contributor

@alindima alindima left a comment

Choose a reason for hiding this comment

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

Looking good

@sandreim
Copy link
Contributor Author

For some weird reason finality halts

@sandreim
Copy link
Contributor Author

2024-03-25 15:05:01.006 WARN tokio-runtime-worker parachain::approval-voting: Failed to create assignment bitfield block_hash=0x7467bd478b3f36afa7be045b1ae79aef482410b8046335fb8d8f5f42fbea6ee8 err=NullAssignment

@sandreim
Copy link
Contributor Author

For some weird reason finality halts

#3826

Signed-off-by: Andrei Sandu <[email protected]>
@paritytech-cicd-pr
Copy link

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-clippy
Logs: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/5645876

Signed-off-by: Andrei Sandu <[email protected]>
Copy link
Member

@eskimor eskimor left a comment

Choose a reason for hiding this comment

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

Looks good. My only real concern is: Do we have a breaking change here for Babe? If so, what can we do to make this as pain free as possible for parachains?

@sandreim
Copy link
Contributor Author

sandreim commented Mar 26, 2024

Looks good. My only real concern is: Do we have a breaking change here for Babe? If so, what can we do to make this as pain free as possible for parachains?

There is no change that touches Babe in this PR, SubmitCollationParams is a polkadot node side primitive

Copy link
Member

@ordian ordian left a comment

Choose a reason for hiding this comment

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

Looking good modulo missing PRDoc

Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Copy link
Member

@eskimor eskimor left a comment

Choose a reason for hiding this comment

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

Looks good!

Signed-off-by: Andrei Sandu <[email protected]>
@sandreim sandreim enabled auto-merge March 27, 2024 14:39
@sandreim sandreim added this pull request to the merge queue Mar 27, 2024
Merged via the queue into master with commit 417c54c Mar 27, 2024
121 of 132 checks passed
@sandreim sandreim deleted the sandreim/collate_on_multiple_cores branch March 27, 2024 15:08
github-merge-queue bot pushed a commit that referenced this pull request Mar 29, 2024
Somehow #3795 was merged
but tests are failing now on master. I suspect that CI is not even
running these tests anymore which is a big issue.

---------

Signed-off-by: Andrei Sandu <[email protected]>
pgherveou pushed a commit that referenced this pull request Apr 2, 2024
Somehow #3795 was merged
but tests are failing now on master. I suspect that CI is not even
running these tests anymore which is a big issue.

---------

Signed-off-by: Andrei Sandu <[email protected]>
dharjeezy pushed a commit to dharjeezy/polkadot-sdk that referenced this pull request Apr 9, 2024
…d cores (paritytech#3795)

This works only for collators that implement the `collator_fn` allowing
`collation-generation` subsystem to pull collations triggered on new
heads.

Also enables
`request_v2::CollationFetchingResponse::CollationWithParentHeadData` for
test adder/undying collators.

TODO:
- [x] fix tests
- [x] new tests
- [x] PR doc

---------

Signed-off-by: Andrei Sandu <[email protected]>
dharjeezy pushed a commit to dharjeezy/polkadot-sdk that referenced this pull request Apr 9, 2024
Somehow paritytech#3795 was merged
but tests are failing now on master. I suspect that CI is not even
running these tests anymore which is a big issue.

---------

Signed-off-by: Andrei Sandu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R0-silent Changes should not be mentioned in any release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants