This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
introduce regression test dir #5630
Open
drahnr
wants to merge
6
commits into
master
Choose a base branch
from
bernhard-introduce-first-regression-test
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
5fed749
add a first regression test
drahnr 7eba373
fixings
drahnr acebd4f
foo
drahnr 9046e5e
use node groups
drahnr 96ad828
remove parachains config items
drahnr 7ac6220
Update zombienet_tests/regression/0003-small-net-no-paras.toml
eskimor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
zombienet_tests/regression/0003-small-net-no-paras.feature
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| Description: Small net without paras does create relay chain blocks | ||
| Network: ./0003-small-net-no-paras.toml | ||
| Creds: config | ||
|
|
||
| alice: is up | ||
| bob: is up | ||
| charlie: is up | ||
| dave: is up | ||
| eve: is up | ||
| ferdie: is up | ||
| one: is up | ||
| two: is up | ||
|
|
||
| # Check authority status and peers. | ||
| alice: reports node_roles is 4 | ||
| bob: reports node_roles is 4 | ||
| charlie: reports node_roles is 4 | ||
| dave: reports node_roles is 4 | ||
| eve: reports node_roles is 4 | ||
| ferdie: reports node_roles is 4 | ||
| one: reports node_roles is 4 | ||
| two: reports node_roles is 4 | ||
|
|
||
| alice: reports peers count is at least 7 within 20 seconds | ||
| bob: reports peers count is at least 7 within 20 seconds | ||
| charlie: reports peers count is at least 7 within 20 seconds | ||
| dave: reports peers count is at least 7 within 20 seconds | ||
| ferdie: reports peers count is at least 7 within 20 seconds | ||
| eve: reports peers count is at least 7 within 20 seconds | ||
| one: reports peers count is at least 7 within 20 seconds | ||
| two: reports peers count is at least 7 within 20 seconds | ||
|
|
||
| alice: reports polkadot_parachain_approval_checking_finality_lag is 0 within 12 seconds | ||
| bob: reports polkadot_parachain_approval_checking_finality_lag is 0 within 12 seconds | ||
| charlie: reports polkadot_parachain_approval_checking_finality_lag is 0 within 12 seconds | ||
| dave: reports polkadot_parachain_approval_checking_finality_lag is 0 within 12 seconds | ||
| ferdie: reports polkadot_parachain_approval_checking_finality_lag is 0 within 12 seconds | ||
| eve: reports polkadot_parachain_approval_checking_finality_lag is 0 within 12 seconds | ||
| one: reports polkadot_parachain_approval_checking_finality_lag is 0 within 12 seconds | ||
| two: reports polkadot_parachain_approval_checking_finality_lag is 0 within 12 seconds | ||
|
|
||
| # a session covers 3 blocks, so technically `6 seconds/block * 4 blocks` should be sufficient | ||
| # to produce 4 blocks, but we add a factor of 2, so 48 seconds | ||
| alice: reports block_height{status="best"} is at least 4 within 70 seconds | ||
| bob: reports block_height{status="best"} is at least 4 within 70 seconds | ||
| charlie: reports block_height{status="best"} is at least 4 within 70 seconds | ||
| dave: reports block_height{status="best"} is at least 4 within 70 seconds | ||
| ferdie: reports block_height{status="best"} is at least 4 within 70 seconds | ||
| eve: reports block_height{status="best"} is at least 4 within 70 seconds | ||
| one: reports block_height{status="best"} is at least 4 within 70 seconds | ||
| two: reports block_height{status="best"} is at least 4 within 70 seconds | ||
|
|
||
| alice: reports block_height{status="finalized"} is at least 4 within 90 seconds | ||
| bob: reports block_height{status="finalized"} is at least 4 within 90 seconds | ||
| charlie: reports block_height{status="finalized"} is at least 4 within 90 seconds | ||
| dave: reports block_height{status="finalized"} is at least 4 within 90 seconds | ||
| ferdie: reports block_height{status="finalized"} is at least 4 within 90 seconds | ||
| eve: reports block_height{status="finalized"} is at least 4 within 90 seconds | ||
| one: reports block_height{status="finalized"} is at least 4 within 90 seconds | ||
| two: reports block_height{status="finalized"} is at least 4 within 90 seconds |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| [settings] | ||
| timeout = 1000 | ||
|
|
||
| [relaychain.genesis.runtime.runtime_genesis_config.configuration.config] | ||
| max_validators_per_core = 5 | ||
| needed_approvals = 2 | ||
drahnr marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| # cannot be changed after the first block got produced | ||
| [relaychain.genesis.runtime] | ||
| session_length_in_block = 3 | ||
|
|
||
| [relaychain] | ||
| default_image = "{{ZOMBIENET_INTEGRATION_TEST_IMAGE}}" | ||
| chain = "rococo-local" | ||
| chain_spec_command = "polkadot build-spec --chain rococo-local --disable-default-bootnode" | ||
| default_command = "polkadot" | ||
|
|
||
| [relaychain.default_resources] | ||
| limits = { memory = "4G", cpu = "2" } | ||
| requests = { memory = "2G", cpu = "1" } | ||
|
|
||
| [[relaychain.node_groups]] | ||
| name = "honest-validator" | ||
| count = 10 | ||
| args = ["-lparachain=debug,runtime=debug,afg=trace] | ||
eskimor marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
|
|
||
| # Zer0 parachains | ||
| #[[parachains]] | ||
|
|
||
| [types.Header] | ||
| number = "u64" | ||
| parent_hash = "Hash" | ||
| post_state = "Hash" | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.