mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 05:51:02 +00:00
Remove nextest filtration (#3885)
Fixes https://github.com/paritytech/polkadot-sdk/issues/3884#issuecomment-2026058687 After moving regression tests to benchmarks (https://github.com/paritytech/polkadot-sdk/pull/3741) we don't need to filter tests anymore. --------- Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Andrei Sandu <54316454+sandreim@users.noreply.github.com> Co-authored-by: Alin Dima <alin@parity.io> Co-authored-by: Andrei Sandu <andrei-mihail@parity.io> Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Javier Viola <363911+pepoviola@users.noreply.github.com> Co-authored-by: Serban Iorga <serban@parity.io> Co-authored-by: Adrian Catangiu <adrian@parity.io> Co-authored-by: Bastian Köcher <git@kchr.de> Co-authored-by: Alexandru Vasile <60601340+lexnv@users.noreply.github.com> Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com> Co-authored-by: Dastan <88332432+dastansam@users.noreply.github.com> Co-authored-by: Liam Aharon <liam.aharon@hotmail.com> Co-authored-by: Clara van Staden <claravanstaden64@gmail.com> Co-authored-by: Ron <yrong1997@gmail.com> Co-authored-by: Vincent Geddes <vincent@snowfork.com> Co-authored-by: Svyatoslav Nikolsky <svyatonik@gmail.com> Co-authored-by: Bastian Köcher <info@kchr.de>
This commit is contained in:
@@ -25,7 +25,6 @@ test-linux-stable:
|
|||||||
# "upgrade_version_checks_should_work" is currently failing
|
# "upgrade_version_checks_should_work" is currently failing
|
||||||
- |
|
- |
|
||||||
time cargo nextest run \
|
time cargo nextest run \
|
||||||
--filter-expr 'not deps(/polkadot-subsystem-bench/)' \
|
|
||||||
--workspace \
|
--workspace \
|
||||||
--locked \
|
--locked \
|
||||||
--release \
|
--release \
|
||||||
@@ -70,7 +69,7 @@ test-linux-stable-runtime-benchmarks:
|
|||||||
# but still want to have debug assertions.
|
# but still want to have debug assertions.
|
||||||
RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
|
RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
|
||||||
script:
|
script:
|
||||||
- time cargo nextest run --filter-expr 'not deps(/polkadot-subsystem-bench/)' --workspace --features runtime-benchmarks benchmark --locked --cargo-profile testnet
|
- time cargo nextest run --workspace --features runtime-benchmarks benchmark --locked --cargo-profile testnet
|
||||||
|
|
||||||
# can be used to run all tests
|
# can be used to run all tests
|
||||||
# test-linux-stable-all:
|
# test-linux-stable-all:
|
||||||
|
|||||||
@@ -149,6 +149,11 @@ mod benchmarks {
|
|||||||
|
|
||||||
#[benchmark]
|
#[benchmark]
|
||||||
fn promote() -> Result<(), BenchmarkError> {
|
fn promote() -> Result<(), BenchmarkError> {
|
||||||
|
// Ensure that the `min_promotion_period` wont get in our way.
|
||||||
|
let mut params = Params::<T, I>::get();
|
||||||
|
params.min_promotion_period = [Zero::zero(); RANK_COUNT];
|
||||||
|
Params::<T, I>::put(¶ms);
|
||||||
|
|
||||||
let member = make_member::<T, I>(1)?;
|
let member = make_member::<T, I>(1)?;
|
||||||
ensure_evidence::<T, I>(&member)?;
|
ensure_evidence::<T, I>(&member)?;
|
||||||
|
|
||||||
|
|||||||
@@ -149,7 +149,8 @@ pub mod pallet {
|
|||||||
};
|
};
|
||||||
use frame_system::{ensure_root, pallet_prelude::*};
|
use frame_system::{ensure_root, pallet_prelude::*};
|
||||||
|
|
||||||
const RANK_COUNT: usize = 9;
|
/// Number of available ranks.
|
||||||
|
pub(crate) const RANK_COUNT: usize = 9;
|
||||||
|
|
||||||
#[pallet::pallet]
|
#[pallet::pallet]
|
||||||
pub struct Pallet<T, I = ()>(PhantomData<(T, I)>);
|
pub struct Pallet<T, I = ()>(PhantomData<(T, I)>);
|
||||||
|
|||||||
@@ -1501,8 +1501,11 @@ fn scheduler_handles_periodic_unavailable_preimage() {
|
|||||||
run_to_block(4);
|
run_to_block(4);
|
||||||
assert_eq!(logger::log().len(), 1);
|
assert_eq!(logger::log().len(), 1);
|
||||||
|
|
||||||
// Unnote the preimage
|
// As the public api doesn't support to remove a noted preimage, we need to first unnote it
|
||||||
|
// and then request it again. Basically this should not happen in real life (whatever you
|
||||||
|
// call real life;).
|
||||||
Preimage::unnote(&hash);
|
Preimage::unnote(&hash);
|
||||||
|
Preimage::request(&hash);
|
||||||
|
|
||||||
// Does not ever execute again.
|
// Does not ever execute again.
|
||||||
run_to_block(100);
|
run_to_block(100);
|
||||||
|
|||||||
Reference in New Issue
Block a user