Skip to content

Commit

Permalink
Backport: Fix multiple cores assignments 1.7 (#3469) (#3497)
Browse files Browse the repository at this point in the history
Backport from `release-polkadot-v1.7.2`.

Expected patches for (1.7.0):

- polkadot-node-core-backing `8.0.1`
- polkadot-node-core-provisioner `8.0.1`
- polkadot-statement-table `8.0.1`
- polkadot-primitives `8.0.1`
- polkadot-runtime-parachains `8.0.1`

---------

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: alindima <alin@parity.io>
Co-authored-by: eskimor <eskimor@users.noreply.github.com>
Co-authored-by: Andrei Sandu <54316454+sandreim@users.noreply.github.com>
Co-authored-by: alindima <alin@parity.io>
Co-authored-by: eskimor <eskimor@no-such-url.com>
  • Loading branch information
5 people authored Feb 28, 2024
1 parent abb8b9f commit 0fa7f6f
Show file tree
Hide file tree
Showing 28 changed files with 2,096 additions and 438 deletions.
8 changes: 8 additions & 0 deletions .gitlab/pipeline/zombienet/polkadot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,14 @@ zombienet-polkadot-functional-0011-async-backing-6-seconds-rate:
--local-dir="${LOCAL_DIR}/functional"
--test="0011-async-backing-6-seconds-rate.zndsl"

zombienet-polkadot-functional-0012-elastic-scaling-mvp:
extends:
- .zombienet-polkadot-common
script:
- /home/nonroot/zombie-net/scripts/ci/run-test-local-env-manager.sh
--local-dir="${LOCAL_DIR}/functional"
--test="0012-elastic-scaling-mvp.zndsl"

zombienet-polkadot-smoke-0001-parachains-smoke-test:
extends:
- .zombienet-polkadot-common
Expand Down
52 changes: 46 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions polkadot/node/core/backing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ bitvec = { version = "1.0.0", default-features = false, features = ["alloc"] }
gum = { package = "tracing-gum", path = "../../gum", version = "8.0.0" }
thiserror = "1.0.48"
fatality = "0.0.6"
schnellru = "0.2.1"

[dev-dependencies]
sp-core = { path = "../../../../substrate/primitives/core" }
Expand All @@ -31,5 +32,6 @@ sc-keystore = { path = "../../../../substrate/client/keystore" }
sp-tracing = { path = "../../../../substrate/primitives/tracing" }
futures = { version = "0.3.21", features = ["thread-pool"] }
assert_matches = "1.4.0"
rstest = "0.18.2"
polkadot-node-subsystem-test-helpers = { path = "../../subsystem-test-helpers" }
test-helpers = { package = "polkadot-primitives-test-helpers", path = "../../../primitives/test-helpers" }
3 changes: 3 additions & 0 deletions polkadot/node/core/backing/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ pub enum Error {
#[error("Candidate is not found")]
CandidateNotFound,

#[error("CoreIndex cannot be determined for a candidate")]
CoreIndexUnavailable,

#[error("Signature is invalid")]
InvalidSignature,

Expand Down
Loading

0 comments on commit 0fa7f6f

Please sign in to comment.