mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 12:51:02 +00:00
Retire puppet workers (#1449)
Closes #583 After the separation of PVF worker binaries, dedicated puppet workers are not needed for tests anymore. The production workers can be used instead, avoiding some code duplication and decreasing complexity. The changes also make it possible to further refactor the code to isolate workers completely.
This commit is contained in:
@@ -11,15 +11,10 @@ publish = false
|
||||
name = "undying-collator"
|
||||
path = "src/main.rs"
|
||||
|
||||
[[bin]]
|
||||
name = "undying_collator_puppet_worker"
|
||||
path = "bin/puppet_worker.rs"
|
||||
required-features = ["test-utils"]
|
||||
|
||||
[dependencies]
|
||||
parity-scale-codec = { version = "3.6.1", default-features = false, features = ["derive"] }
|
||||
clap = { version = "4.4.2", features = ["derive"] }
|
||||
futures = "0.3.19"
|
||||
futures = "0.3.21"
|
||||
futures-timer = "3.0.2"
|
||||
log = "0.4.17"
|
||||
|
||||
@@ -33,24 +28,14 @@ polkadot-node-subsystem = { path = "../../../../node/subsystem" }
|
||||
sc-cli = { path = "../../../../../substrate/client/cli" }
|
||||
sp-core = { path = "../../../../../substrate/primitives/core" }
|
||||
sc-service = { path = "../../../../../substrate/client/service" }
|
||||
# This one is tricky. Even though it is not used directly by the collator, we still need it for the
|
||||
# `puppet_worker` binary, which is required for the integration test. However, this shouldn't be
|
||||
# a big problem since it is used transitively anyway.
|
||||
polkadot-node-core-pvf = { path = "../../../../node/core/pvf", features = ["test-utils"], optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
polkadot-parachain-primitives = { path = "../../.." }
|
||||
polkadot-test-service = { path = "../../../../node/test/service" }
|
||||
# For the puppet worker, depend on ourselves with the test-utils feature.
|
||||
test-parachain-undying-collator = { path = "", features = ["test-utils"] }
|
||||
polkadot-node-core-pvf = { path = "../../../../node/core/pvf", features = ["test-utils"] }
|
||||
|
||||
substrate-test-utils = { path = "../../../../../substrate/test-utils" }
|
||||
sc-service = { path = "../../../../../substrate/client/service" }
|
||||
sp-keyring = { path = "../../../../../substrate/primitives/keyring" }
|
||||
|
||||
tokio = { version = "1.24.2", features = ["macros"] }
|
||||
|
||||
[features]
|
||||
# This feature is used to export test code to other crates without putting it in the production build.
|
||||
# This is also used by the `puppet_worker` binary.
|
||||
test-utils = [ "polkadot-node-core-pvf/test-utils" ]
|
||||
|
||||
Reference in New Issue
Block a user