mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 09:21:04 +00:00
pvf: use test-utils feature to export test only (#7538)
* pvf: use test-utils feature to export test only * adding comment to test-utils feature * make prepare-worker and execute-worker as optional dependencies and add comments to test-utils * remove doc hidden from pvf testing * add prepare worker and execute worker entrypoints to test-utils feature * pvf: add sp_tracing as optional dependency of test-utils * add test-utils for polkadot and malus * add test-utils feature to prepare and execute workers script * remove required features from prepare and executing * Try to trigger CI again to fix broken jobs --------- Co-authored-by: Marcin S <marcin@realemail.net>
This commit is contained in:
@@ -13,6 +13,7 @@ path = "src/main.rs"
|
||||
[[bin]]
|
||||
name = "adder_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"] }
|
||||
@@ -31,11 +32,10 @@ polkadot-node-subsystem = { path = "../../../../node/subsystem" }
|
||||
sc-cli = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||
sc-service = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||
|
||||
# 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" }
|
||||
polkadot-node-core-pvf = { path = "../../../../node/core/pvf", features = ["test-utils"], optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
polkadot-parachain = { path = "../../.." }
|
||||
@@ -44,5 +44,12 @@ polkadot-test-service = { path = "../../../../node/test/service" }
|
||||
substrate-test-utils = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||
sc-service = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||
sp-keyring = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||
# For the puppet worker, depend on ourselves with the test-utils feature.
|
||||
test-parachain-adder-collator = { path = ".", features = ["test-utils"] }
|
||||
|
||||
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"]
|
||||
|
||||
@@ -13,6 +13,7 @@ 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"] }
|
||||
@@ -31,18 +32,24 @@ polkadot-node-subsystem = { path = "../../../../node/subsystem" }
|
||||
sc-cli = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||
sc-service = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||
|
||||
# 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" }
|
||||
polkadot-node-core-pvf = { path = "../../../../node/core/pvf", features = ["test-utils"], optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
polkadot-parachain = { 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"] }
|
||||
|
||||
substrate-test-utils = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||
sc-service = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||
sp-keyring = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||
|
||||
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