fix: correct feature gates for storage-benchmark and metadata-hash
- StorageCmd: change cfg from runtime-benchmarks to storage-benchmark - enable_metadata_hash_in_wasm_builder: add cfg(feature = "metadata-hash") gate - Add storage-benchmark feature to pezkuwi-omni-node-lib Cargo.toml - Add metadata-hash feature to pezframe-metadata-hash-extension Cargo.toml These fixes resolve cargo-check-all-benches CI failures.
This commit is contained in:
@@ -241,6 +241,7 @@ try-runtime = [
|
||||
"pezsp-version/try-runtime",
|
||||
"teyrchains-common/try-runtime",
|
||||
]
|
||||
storage-benchmark = ["pezframe-benchmarking-cli/storage-benchmark"]
|
||||
std = [
|
||||
"bizinikiwi-frame-rpc-system/std",
|
||||
"bizinikiwi-state-trie-migration-rpc/std",
|
||||
|
||||
@@ -252,7 +252,7 @@ where
|
||||
node.run_benchmark_block_cmd(config, cmd)
|
||||
})
|
||||
},
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
#[cfg(feature = "storage-benchmark")]
|
||||
BenchmarkCmd::Storage(cmd) => {
|
||||
// The command needs the full node configuration because it uses the node
|
||||
// client and the database API, storage and shared_trie_cache. It requires
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
use crate::common::spec::BaseNodeSpec;
|
||||
use pezcumulus_client_cli::ExportGenesisHeadCommand;
|
||||
use pezframe_benchmarking_cli::BlockCmd;
|
||||
#[cfg(any(feature = "runtime-benchmarks"))]
|
||||
#[cfg(feature = "storage-benchmark")]
|
||||
use pezframe_benchmarking_cli::StorageCmd;
|
||||
use pezsc_cli::{CheckBlockCmd, ExportBlocksCmd, ExportStateCmd, ImportBlocksCmd, RevertCmd};
|
||||
use pezsc_service::{Configuration, TaskManager};
|
||||
@@ -71,7 +71,7 @@ pub trait NodeCommandRunner {
|
||||
cmd: &BlockCmd,
|
||||
) -> SyncCmdResult;
|
||||
|
||||
#[cfg(any(feature = "runtime-benchmarks"))]
|
||||
#[cfg(feature = "storage-benchmark")]
|
||||
fn run_benchmark_storage_cmd(
|
||||
self: Box<Self>,
|
||||
config: Configuration,
|
||||
@@ -146,7 +146,7 @@ where
|
||||
cmd.run(partial.client)
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "runtime-benchmarks"))]
|
||||
#[cfg(feature = "storage-benchmark")]
|
||||
fn run_benchmark_storage_cmd(
|
||||
self: Box<Self>,
|
||||
config: Configuration,
|
||||
|
||||
Reference in New Issue
Block a user