Skip to content

Commit

Permalink
shell+brain dump of testing files
Browse files Browse the repository at this point in the history
  • Loading branch information
michalkucharczyk committed Jan 9, 2025
1 parent 4059282 commit dc98150
Show file tree
Hide file tree
Showing 14 changed files with 209,614 additions and 0 deletions.
80,110 changes: 80,110 additions & 0 deletions substrate/client/transaction-pool/testing/asset-hub-rococo-local-20k.json

Large diffs are not rendered by default.

110 changes: 110 additions & 0 deletions substrate/client/transaction-pool/testing/asset-hub-rococo-local.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
[relaychain]
default_command = "../../target/release/polkadot"
default_args = [ "-lparachain=debug" ]
chain = "westend-local"

[[relaychain.nodes]]
name = "alice"
validator = true

[[relaychain.nodes]]
name = "bob"
validator = true

[[relaychain.nodes]]
name = "charlie"
validator = true

[[relaychain.nodes]]
name = "dave"
validator = true

[[parachains]]
id = 1000
chain = "asset-hub-westend-local"
cumulus_based = true

# run alice as parachain collator
[[parachains.collators]]
name = "alice"
validator = true
command = "../../target/release/polkadot-parachain"
args = ["-lparachain=debug"]

# run bob as parachain collator
[[parachains.collators]]
name = "bob"
validator = true
command = "../../target/release/polkadot-parachain"
args = ["-lparachain=debug"]

# run charlie as parachain collator
[[parachains.collators]]
name = "charlie"
validator = true
command = "../../target/release/polkadot-parachain"
args = ["-lparachain=debug"]

# run dave as parachain collator
[[parachains.collators]]
name = "dave"
validator = true
command = "../../target/release/polkadot-parachain"
args = ["-lparachain=debug"]

# run eve as parachain collator
[[parachains.collators]]
name = "eve"
validator = true
command = "../../target/release/polkadot-parachain"
args = ["-lparachain=debug"]

# run ferdie as parachain collator
[[parachains.collators]]
name = "ferdie"
validator = true
command = "../../target/release/polkadot-parachain"
args = ["-lparachain=debug"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
[relaychain]
default_command = "../polkadot/target/release/polkadot"
default_args = [ "-lparachain=debug" ]
chain = "rococo-local"

[[relaychain.nodes]]
name = "alice"
validator = true

[[relaychain.nodes]]
name = "bob"
validator = true

[[relaychain.nodes]]
name = "charlie"
validator = true

[[relaychain.nodes]]
name = "dave"
validator = true

[[parachains]]
id = 1013
chain = "bridge-hub-rococo-local"
cumulus_based = true

# run alice as parachain collator
[[parachains.collators]]
name = "alice"
validator = true
command = "./target/release/polkadot-parachain"
args = ["-lparachain=debug"]

# run bob as parachain collator
[[parachains.collators]]
name = "bob"
validator = true
command = "./target/release/polkadot-parachain"
args = ["-lparachain=debug"]

# run charlie as parachain collator
[[parachains.collators]]
name = "charlie"
validator = true
command = "./target/release/polkadot-parachain"
args = ["-lparachain=debug"]

# run dave as parachain collator
[[parachains.collators]]
name = "dave"
validator = true
command = "./target/release/polkadot-parachain"
args = ["-lparachain=debug"]

# run eve as parachain collator
[[parachains.collators]]
name = "eve"
validator = true
command = "./target/release/polkadot-parachain"
args = ["-lparachain=debug"]

# run ferdie as parachain collator
[[parachains.collators]]
name = "ferdie"
validator = true
command = "./target/release/polkadot-parachain"
args = ["-lparachain=debug"]
27 changes: 27 additions & 0 deletions substrate/client/transaction-pool/testing/readme
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
This is basically a shell/brain-dump of my activities in testing transaction
pool. It is not well organised (apologies). Intended to build something better
from this.

I have different zombienet files, for different scenarios, e.g.:
- one collator,
- 3x collator + 1x rpc node
- limits on transactions pool
- old transaction pool (for comparing behaviour)
- debug levels

Also different runtimes are checked (e.g. yap and asset-hub).

Ther is a `run` bash script that allows to customize PATH and execute zombienet with particular scenario.


Test tool:
I am using this tool for testing scenarios:
https://github.com/michalkucharczyk/tx-test-tool/

`testing-commands` file contains a history dump of different test executions. (Provided for reference).

Test tool 2:
There is also one more tool:
https://github.com/paritytech/polkadot-stps/

Mainly used by chains team to check the transaction throughput. I think that sending method shall be incorporated into tx-test-tool.
31 changes: 31 additions & 0 deletions substrate/client/transaction-pool/testing/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# export PATH=/home/miszka/parity/14-txpool-forks/polkadot-sdk/target/release:$PATH
# export PATH=/home/miszka/parity/14-txpool-forks/polkadot-sdk-master-02/target/release:$PATH
# export PATH=/home/miszka/parity/20-mythical/polkadot-sdk-mythical-branch/target/release:$PATH

# export PATH=/home/miszka/parity/14-txpool-forks/polkadot-sdk-v1.16.2/target/release:$PATH
# export PATH=/home/miszka/parity/14-txpool-forks/polkadot-sdk-master/target/release:$PATH
# export PATH=/home/miszka/parity/14-txpool-forks/polkadot-sdk-master/target/release-master:$PATH
# export PATH=/home/miszka/parity/14-txpool-forks/polkadot-sdk-master/target/release:$PATH

# export PATH=/home/miszka/parity/14-txpool-forks/polkadot-sdk-master/target/release-rotator-old:$PATH
export PATH=/home/miszka/parity/14-txpool-forks/polkadot-sdk-master/target/release/:$PATH


# export PATH=/home/miszka/parity/14-txpool-forks/polkadot-sdk-master/target/release-master:$PATH
# export PATH=/home/miszka/parity/14-txpool-forks/polkadot-sdk-master/target/release-telemetry-fix:$PATH
# export PATH=/home/miszka/parity/14-txpool-forks/polkadot-sdk-master/target/release-network-sync-notifications/:$PATH
#

# export PATH=/home/miszka/parity/14-txpool-forks/polkadot-sdk-master-03/target/release-master/:$PATH

ls -al `which test-parachain`
ls -al `which substrate-node`
ls -al `which polkadot-parachain`
ls -al `which polkadot`

zombienet-linux -l text spawn -p native small_network-yap.toml
# zombienet-linux -l text spawn -p native small_network-single-collator.toml
# zombienet-linux -l text spawn -p native small_network-old-pool.toml
# zombienet-linux -l text spawn -p native small_network-limits-30.toml
# zombienet-linux -l text spawn -p native small_network-old-pool-small.toml

122 changes: 122 additions & 0 deletions substrate/client/transaction-pool/testing/small_network-limits-30.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
[relaychain]
# single-state
# fork-aware
default_image = "parity/polkadot:latest"
default_command = "polkadot"
chain = "rococo-local"

[[relaychain.nodes]]
name = "alice"
ws_port = 9944
validator = true

[[relaychain.nodes]]
name = "bob"
validator = true

[[parachains]]
id = 2000
cumulus_based = true
# chain = "asset-hub-rococo-local"
chain = "asset-hub-rococo-local-20k.json"

# run charlie as parachain collator
[[parachains.collators]]
name = "charlie"
validator = false
image = "parity/polkadot-parachain:latest"
command = "polkadot-parachain"
# command = "test-parachain"
ws_port = 9933
rpc_port = 8833
args = [
"--force-authoring",
"--pool-limit 300",
"--pool-kbytes 2048000",
"--rpc-max-connections 15000",
"--rpc-max-response-size 150",
"-lbasic-authorship=info",
"-ltxpool=trace",
"-lsync=trace",
"-laura::cumulus=debug",
"-lpeerset=trace",
"-lsub-libp2p=debug",
"--pool-type=fork-aware",
"--state-pruning=1024",
"--rpc-max-subscriptions-per-connection=128000"
]

[[parachains.collators]]
name = "dave"
validator = true
image = "parity/polkadot-parachain:latest"
command = "polkadot-parachain"
# command = "test-parachain"
ws_port = 9934
rpc_port = 8834
args = [
"--force-authoring",
"--pool-limit 300",
"--pool-kbytes 2048000",
"--rpc-max-connections 15000",
"--rpc-max-response-size 150",
"-lbasic-authorship=info",
"-ltxpool=debug",
"-lsync=trace",
"-laura::cumulus=debug",
"-lpeerset=trace",
"-lsub-libp2p=debug",
"--pool-type=fork-aware",
"--state-pruning=1024",
"--rpc-max-subscriptions-per-connection=128000"
]

[[parachains.collators]]
name = "eve"
validator = true
image = "parity/polkadot-parachain:latest"
command = "polkadot-parachain"
# command = "test-parachain"
ws_port = 9935
rpc_port = 8835
args = [
"--force-authoring",
"--pool-limit 300",
"--pool-kbytes 2048000",
"--rpc-max-connections 15000",
"--rpc-max-response-size 150",
"-lbasic-authorship=info",
"-ltxpool=debug",
"-lsync=trace",
"-laura::cumulus=debug",
"-lpeerset=trace",
"-lsub-libp2p=debug",
"--pool-type=fork-aware",
"--state-pruning=1024",
"--rpc-max-subscriptions-per-connection=128000"
]

[[parachains.collators]]
name = "ferdie"
validator = true
image = "parity/polkadot-parachain:latest"
command = "polkadot-parachain"
# command = "test-parachain"
ws_port = 9935
rpc_port = 8835
args = [
"--force-authoring",
"--pool-limit 300",
"--pool-kbytes 2048000",
"--rpc-max-connections 15000",
"--rpc-max-response-size 150",
"-lbasic-authorship=info",
"-ltxpool=debug",
"-lsync=trace",
"-laura::cumulus=debug",
"-lpeerset=trace",
"-lsub-libp2p=debug",
"--pool-type=fork-aware",
"--state-pruning=1024",
"--rpc-max-subscriptions-per-connection=128000"
]
Loading

0 comments on commit dc98150

Please sign in to comment.