Skip to content

Conversation

@alindima
Copy link
Contributor

@alindima alindima commented Jan 20, 2025

Part of #5079.

Removes all usage of the static async backing params, replacing them with dynamically computed equivalent values (based on the claim queue and scheduling lookahead).

Adds a new runtime API for querying the scheduling lookahead value. If not present, falls back to 3 (the default value that is backwards compatible with values we have on production networks for allowed_ancestry_len)

Also resolves most of #4447, removing code that handles async backing not yet being enabled.
While doing this, I removed the support for collation protocol version 1 on collators, as it only worked for leaves not supporting async backing (which are none).
I also unhooked the legacy v1 statement-distribution (for the same reason as above). That subsystem is basically dead code now, so I had to remove some of its tests as they would no longer pass (since the subsystem no longer sends messages to the legacy variant). I did not remove the entire legacy subsystem yet, as that would pollute this PR too much. We can remove the entire v1 and v2 validation protocols in a follow up PR.

In another PR: remove test files with names prospective_parachains (it'd pollute this PR if we do now)

TODO:

  • add deprecation warnings
  • prdoc

- backing_implicit_view
- candidate-validation
- prospective-parachains
- provisioner
- collator protocol (both sides)
@alindima alindima added the T8-polkadot This PR/Issue is related to/affects the Polkadot network. label Jan 20, 2025
@alindima alindima marked this pull request as draft January 20, 2025 10:21
@sandreim sandreim mentioned this pull request Jan 20, 2025
10 tasks
@alindima
Copy link
Contributor Author

/cmd prdoc

Copy link
Contributor

@sandreim sandreim left a comment

Choose a reason for hiding this comment

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

LGTM modulo some of the PRDoc version bumps. If we are adding new API in a backward compatible manner, it should be minor bump.

@alindima
Copy link
Contributor Author

LGTM modulo some of the PRDoc version bumps. If we are adding new API in a backward compatible manner, it should be minor bump.

good point. the prdoc bot bumped all with major by default. I did another pass through the prdoc and demoted most of them to minor

@paritytech-workflow-stopper
Copy link

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

@alindima alindima added this pull request to the merge queue Feb 3, 2025
Merged via the queue into master with commit 4cd07c5 Feb 3, 2025
205 of 207 checks passed
@alindima alindima deleted the alindima/remove-async-backing-params branch February 3, 2025 09:41
Ank4n pushed a commit that referenced this pull request Feb 6, 2025
Part of #5079.

Removes all usage of the static async backing params, replacing them
with dynamically computed equivalent values (based on the claim queue
and scheduling lookahead).

Adds a new runtime API for querying the scheduling lookahead value. If
not present, falls back to 3 (the default value that is backwards
compatible with values we have on production networks for
allowed_ancestry_len)

Also resolves most of
#4447, removing code
that handles async backing not yet being enabled.
While doing this, I removed the support for collation protocol version 1
on collators, as it only worked for leaves not supporting async backing
(which are none).
I also unhooked the legacy v1 statement-distribution (for the same
reason as above). That subsystem is basically dead code now, so I had to
remove some of its tests as they would no longer pass (since the
subsystem no longer sends messages to the legacy variant). I did not
remove the entire legacy subsystem yet, as that would pollute this PR
too much. We can remove the entire v1 and v2 validation protocols in a
follow up PR.

In another PR: remove test files with names `prospective_parachains`
(it'd pollute this PR if we do now)

TODO:
- [x] add deprecation warnings
- [x] prdoc

---------

Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T8-polkadot This PR/Issue is related to/affects the Polkadot network.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants