mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 18:41:03 +00:00
Bkchr check all benches (#3180)
* Make sure CI checks all benchmarks * Fix babe
This commit is contained in:
@@ -95,7 +95,7 @@ cargo-check-benches:
|
|||||||
stage: test
|
stage: test
|
||||||
<<: *docker-env
|
<<: *docker-env
|
||||||
script:
|
script:
|
||||||
- BUILD_DUMMY_WASM_BINARY=1 time cargo check --benches
|
- BUILD_DUMMY_WASM_BINARY=1 time cargo check --benches --all
|
||||||
- sccache -s
|
- sccache -s
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -308,7 +308,7 @@ cargo run --release \-- \
|
|||||||
|
|
||||||
Additional Substrate CLI usage options are available and may be shown by running `cargo run \-- --help`.
|
Additional Substrate CLI usage options are available and may be shown by running `cargo run \-- --help`.
|
||||||
|
|
||||||
== WASM binaries
|
=== WASM binaries
|
||||||
|
|
||||||
The WASM binaries are built during the normal `cargo build` process. To control the WASM binary building,
|
The WASM binaries are built during the normal `cargo build` process. To control the WASM binary building,
|
||||||
we support multiple environment variables:
|
we support multiple environment variables:
|
||||||
|
|||||||
@@ -233,7 +233,7 @@ fn run_one_test() {
|
|||||||
let wait_for = futures::future::join_all(import_notifications);
|
let wait_for = futures::future::join_all(import_notifications);
|
||||||
|
|
||||||
let drive_to_completion = futures::future::poll_fn(|| { net.lock().poll(); Ok(Async::NotReady) });
|
let drive_to_completion = futures::future::poll_fn(|| { net.lock().poll(); Ok(Async::NotReady) });
|
||||||
runtime.block_on(wait_for.select(drive_to_completion).map_err(|_| ())).unwrap();
|
let _ = runtime.block_on(wait_for.select(drive_to_completion).map_err(|_| ())).unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
@@ -56,6 +56,8 @@ impl_outer_event! {
|
|||||||
|
|
||||||
srml_support::parameter_types! {
|
srml_support::parameter_types! {
|
||||||
pub const BlockHashCount: u64 = 250;
|
pub const BlockHashCount: u64 = 250;
|
||||||
|
pub const MaximumBlockWeight: u32 = 4 * 1024 * 1024;
|
||||||
|
pub const MaximumBlockLength: u32 = 4 * 1024 * 1024;
|
||||||
}
|
}
|
||||||
#[derive(Clone, Eq, PartialEq)]
|
#[derive(Clone, Eq, PartialEq)]
|
||||||
pub struct Runtime;
|
pub struct Runtime;
|
||||||
@@ -71,6 +73,8 @@ impl system::Trait for Runtime {
|
|||||||
type WeightMultiplierUpdate = ();
|
type WeightMultiplierUpdate = ();
|
||||||
type Event = Event;
|
type Event = Event;
|
||||||
type BlockHashCount = BlockHashCount;
|
type BlockHashCount = BlockHashCount;
|
||||||
|
type MaximumBlockWeight = MaximumBlockWeight;
|
||||||
|
type MaximumBlockLength = MaximumBlockLength;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl module::Trait for Runtime {
|
impl module::Trait for Runtime {
|
||||||
|
|||||||
Reference in New Issue
Block a user