Skip to content

feat: separate runtimes #136

feat: separate runtimes

feat: separate runtimes #136

Triggered via pull request March 26, 2024 01:31
Status Failure
Total duration 1h 33m 32s
Artifacts

build.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 9 warnings
type annotations needed: node/src/command.rs#L297
error[E0283]: type annotations needed --> node/src/command.rs:297:21 | 297 | let partials = new_partial(&config)?; | ^^^^^^^^^^^ cannot infer type of the type parameter `RuntimeApi` declared on the function `new_partial` | = note: multiple `impl`s satisfying `_: sp_api::ConstructRuntimeApi<sp_runtime::generic::Block<sp_runtime::generic::Header<u32, polkadot_primitives::BlakeTwo256>, sp_runtime::OpaqueExtrinsic>, sc_service::client::client::Client<sc_client_db::Backend<sp_runtime::generic::Block<sp_runtime::generic::Header<u32, polkadot_primitives::BlakeTwo256>, sp_runtime::OpaqueExtrinsic>>, sc_service::LocalCallExecutor<sp_runtime::generic::Block<sp_runtime::generic::Header<u32, polkadot_primitives::BlakeTwo256>, sp_runtime::OpaqueExtrinsic>, sc_client_db::Backend<sp_runtime::generic::Block<sp_runtime::generic::Header<u32, polkadot_primitives::BlakeTwo256>, sp_runtime::OpaqueExtrinsic>>, sc_executor::NativeElseWasmExecutor<_>>, sp_runtime::generic::Block<sp_runtime::generic::Header<u32, polkadot_primitives::BlakeTwo256>, sp_runtime::OpaqueExtrinsic>, _>>` found in the following crates: `polkadot_service`, `pop_runtime_devnet`, `pop_runtime_testnet`: - impl<Block, C> sp_api::ConstructRuntimeApi<Block, C> for polkadot_cli::polkadot_service::RuntimeApi where Block: cumulus_primitives_core::BlockT, C: sp_api::CallApiAt<Block>, C: 'static; - impl<Block, C> sp_api::ConstructRuntimeApi<Block, C> for pop_runtime_devnet::RuntimeApi where Block: cumulus_primitives_core::BlockT, C: sp_api::CallApiAt<Block>, C: 'static; - impl<Block, C> sp_api::ConstructRuntimeApi<Block, C> for pop_runtime_testnet::RuntimeApi where Block: cumulus_primitives_core::BlockT, C: sp_api::CallApiAt<Block>, C: 'static; note: required by a bound in `service::new_partial` --> node/src/service.rs:102:3 | 97 | pub fn new_partial<RuntimeApi, Executor>( | ----------- required by a bound in this function ... 102 | ConstructRuntimeApi<Block, ParachainClient<RuntimeApi, Executor>> + Send + Sync + 'static, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `new_partial` help: consider specifying the generic arguments | 297 | let partials = new_partial::<RuntimeApi, Executor>(&config)?; | ++++++++++++++++++++++++
type annotations needed: node/src/command.rs#L297
error[E0284]: type annotations needed --> node/src/command.rs:297:21 | 297 | let partials = new_partial(&config)?; | ^^^^^^^^^^^ cannot infer type of the type parameter `RuntimeApi` declared on the function `new_partial` | = note: cannot satisfy `<_ as sp_api::ConstructRuntimeApi<sp_runtime::generic::Block<sp_runtime::generic::Header<u32, polkadot_primitives::BlakeTwo256>, sp_runtime::OpaqueExtrinsic>, sc_service::client::client::Client<sc_client_db::Backend<sp_runtime::generic::Block<sp_runtime::generic::Header<u32, polkadot_primitives::BlakeTwo256>, sp_runtime::OpaqueExtrinsic>>, sc_service::LocalCallExecutor<sp_runtime::generic::Block<sp_runtime::generic::Header<u32, polkadot_primitives::BlakeTwo256>, sp_runtime::OpaqueExtrinsic>, sc_client_db::Backend<sp_runtime::generic::Block<sp_runtime::generic::Header<u32, polkadot_primitives::BlakeTwo256>, sp_runtime::OpaqueExtrinsic>>, sc_executor::NativeElseWasmExecutor<_>>, sp_runtime::generic::Block<sp_runtime::generic::Header<u32, polkadot_primitives::BlakeTwo256>, sp_runtime::OpaqueExtrinsic>, _>>>::RuntimeApi == _` help: consider specifying the generic arguments | 297 | let partials = new_partial::<RuntimeApi, Executor>(&config)?; | ++++++++++++++++++++++++
clippy
Clippy had exited with the 101 exit code
check
Process completed with exit code 101.
lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
useless conversion to the same type: `cumulus_primitives_core::Location`: runtime/devnet/src/extensions.rs#L328
warning: useless conversion to the same type: `cumulus_primitives_core::Location` --> runtime/devnet/src/extensions.rs:328:35 | 328 | .deposit_asset(assets.into(), beneficiary.into()) | ^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `beneficiary` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
useless conversion to the same type: `cumulus_primitives_core::Asset`: runtime/devnet/src/extensions.rs#L321
warning: useless conversion to the same type: `cumulus_primitives_core::Asset` --> runtime/devnet/src/extensions.rs:321:20 | 321 | .buy_execution(assets.clone().into(), Unlimited) | ^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `assets.clone()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion = note: `#[warn(clippy::useless_conversion)]` on by default
useless conversion to the same type: `cumulus_primitives_core::Location`: runtime/testnet/src/extensions.rs#L328
warning: useless conversion to the same type: `cumulus_primitives_core::Location` --> runtime/testnet/src/extensions.rs:328:35 | 328 | .deposit_asset(assets.into(), beneficiary.into()) | ^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `beneficiary` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
useless conversion to the same type: `cumulus_primitives_core::Asset`: runtime/testnet/src/extensions.rs#L321
warning: useless conversion to the same type: `cumulus_primitives_core::Asset` --> runtime/testnet/src/extensions.rs:321:20 | 321 | .buy_execution(assets.clone().into(), Unlimited) | ^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `assets.clone()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion = note: `#[warn(clippy::useless_conversion)]` on by default
clippy
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3, actions-rs/clippy-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
check
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3, Swatinem/rust-cache@v2.5.0. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.