Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fork-aware-tx-pool: add heavy load tests based on zombienet #7257

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
113 changes: 84 additions & 29 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,7 @@ cumulus-test-service = { path = "cumulus/test/service" }
curve25519-dalek = { version = "4.1.3" }
derivative = { version = "2.2.0", default-features = false }
derive-syn-parse = { version = "0.2.0" }
derive_builder = { version = "0.20.2", default-features = false }
derive_more = { version = "0.99.17", default-features = false }
digest = { version = "0.10.3", default-features = false }
directories = { version = "5.0.1" }
Expand Down Expand Up @@ -1381,6 +1382,7 @@ westend-emulated-chain = { path = "cumulus/parachains/integration-tests/emulated
westend-runtime = { path = "polkadot/runtime/westend" }
westend-runtime-constants = { path = "polkadot/runtime/westend/constants", default-features = false }
westend-system-emulated-network = { path = "cumulus/parachains/integration-tests/emulated/networks/westend-system" }
which = { version = "7.0.1" }
x25519-dalek = { version = "2.0" }
xcm = { path = "polkadot/xcm", default-features = false, package = "staging-xcm" }
xcm-builder = { path = "polkadot/xcm/xcm-builder", default-features = false, package = "staging-xcm-builder" }
Expand All @@ -1391,6 +1393,7 @@ xcm-procedural = { path = "polkadot/xcm/procedural", default-features = false }
xcm-runtime-apis = { path = "polkadot/xcm/xcm-runtime-apis", default-features = false }
xcm-simulator = { path = "polkadot/xcm/xcm-simulator", default-features = false }
zeroize = { version = "1.7.0", default-features = false }
zombienet-configuration = { version = "0.2.20" }
zombienet-sdk = { version = "0.2.20" }
zstd = { version = "0.12.4", default-features = false }

Expand Down
15 changes: 15 additions & 0 deletions substrate/client/transaction-pool/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,29 @@ tokio = { workspace = true, default-features = true, features = ["macros", "time
tokio-stream = { workspace = true }

[dev-dependencies]
anyhow = { workspace = true }
array-bytes = { workspace = true, default-features = true }
assert_matches = { workspace = true }
async-trait = { workspace = true }
chrono = { workspace = true }
cmd_lib = { workspace = true }
criterion = { workspace = true, default-features = true }
cumulus-client-cli = { workspace = true, default-features = true }
derive_builder = { workspace = true }
env_logger = { workspace = true }
log = { workspace = true }
polkadot-cli = { workspace = true, default-features = true }
sc-block-builder = { workspace = true, default-features = true }
sp-consensus = { workspace = true, default-features = true }
strum = { workspace = true, features = ["derive"] }
substrate-test-runtime = { workspace = true }
substrate-test-runtime-client = { workspace = true }
substrate-test-runtime-transaction-pool = { workspace = true }
tokio = { workspace = true, features = ["rt-multi-thread"] }
which = { workspace = true }
zombienet-configuration = { workspace = true }
zombienet-sdk = { workspace = true }


[[bench]]
name = "basics"
Expand Down
37 changes: 37 additions & 0 deletions substrate/client/transaction-pool/tests/integration.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// This file is part of Substrate.

// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0

// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

// Testsuite of fatp integration tests.

pub mod zombienet;

use zombienet::{Network, ParachainConfig, RelaychainConfig};

#[tokio::test(flavor = "multi_thread")]
// TODO: continue this scenario
async fn send_future_and_then_ready() {
let relay_chain = RelaychainConfig::new("polkadot".to_owned(), "rococo-local".to_owned());
let para_chain = ParachainConfig::new(
"polkadot-parachain".to_owned(),
"tests/zombienet/chain-specs/yap-westend-live-2022.json".to_owned(),
true,
2000,
);
let yap_net = zombienet::yap::YapNetwork::new(relay_chain, para_chain).unwrap();
let _network_handle = yap_net.start().await.unwrap();
}

Large diffs are not rendered by default.

128,057 changes: 128,057 additions & 0 deletions substrate/client/transaction-pool/tests/zombienet/chain-specs/yap-westend-live-2022.json

Large diffs are not rendered by default.

Loading