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

Updates for nightly tests pipeline #15

Open
wants to merge 11 commits into
base: dev
Choose a base branch
from
2 changes: 2 additions & 0 deletions sh/scenarios/chainspecs/client.chainspec.toml.override
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[transactions.v1]
wasm_lanes = [[2, 1_048_576, 2048, 1_000_000_000_000, 1], [3, 104857600, 1024, 500_000_000_000, 3], [4, 172_032, 1024, 50_000_000_000, 7], [5, 12_288, 512, 1_500_000_000, 15]]
2 changes: 2 additions & 0 deletions sh/scenarios/chainspecs/event_stream.chainspec.toml.override
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[transactions.v1]
wasm_lanes = [[2, 1_048_576, 2048, 1_000_000_000_000, 1], [3, 104857600, 1024, 500_000_000_000, 3], [4, 172_032, 1024, 50_000_000_000, 7], [5, 12_288, 512, 1_500_000_000, 15]]
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ round_seigniorage_rate = [0, 1]
locked_funds_period = '0days'
validator_slots = 5
vesting_schedule_period = '0days'

[transactions.v1]
wasm_lanes = [[2, 1_048_576, 2048, 1_000_000_000_000, 1], [3, 104857600, 1024, 500_000_000_000, 3], [4, 172_032, 1024, 50_000_000_000, 7], [5, 12_288, 512, 1_500_000_000, 15]]
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[transactions.v1]
wasm_lanes = [[2, 1_048_576, 2048, 1_000_000_000_000, 1], [3, 104857600, 1024, 500_000_000_000, 3], [4, 172_032, 1024, 50_000_000_000, 7], [5, 12_288, 512, 1_500_000_000, 15]]
6 changes: 3 additions & 3 deletions sh/scenarios/client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1312,8 +1312,8 @@ function get_chainspec_from_rpc() {
OUTPUT=$($(get_path_to_client) get-chainspec \
--node-address "$(get_node_address_rpc)" \
-vv \
| sed -n '/\[protocol\]/,$p' \
| sed '/FAUCET/Q')
| awk '/\[.+\]/{flag=1} flag' \
| awk '/FAUCET/{exit} {print}')

# Check non-empty
check_client_responded "$OUTPUT"
Expand Down Expand Up @@ -1341,7 +1341,7 @@ function get_chainspec_json_from_rpc() {
OUTPUT=$($(get_path_to_client) get-chainspec \
--node-address "$(get_node_address_rpc)" \
-vv \
| sed '/\[protocol\]/Q')
| awk '/\[.+\]/{exit} {print}')

# Check non-empty
check_client_responded "$OUTPUT"
Expand Down
2 changes: 2 additions & 0 deletions sh/scenarios/common/itst.sh
Original file line number Diff line number Diff line change
Expand Up @@ -473,13 +473,15 @@ function assert_node_proposed() {
fi

PROPOSER=$(echo "$BLOCK" | jq -r '.header.proposer')
HEIGHT=$(echo "$BLOCK" | jq -r '.header.height')

if [ "$PROPOSER" == "$PUBLIC_KEY_HEX" ]; then
log "Node-$NODE_ID created a block!"
log "$VERSIONED_BLOCK"
log "Proposer: $PROPOSER"
break;
else
log "Block $HEIGHT proposed by $PROPOSER, but we need one from $PUBLIC_KEY_HEX"
sleep 1
TIMEOUT=$((TIMEOUT-1))
if [ "$TIMEOUT" = '0' ]; then
Expand Down
2 changes: 1 addition & 1 deletion sh/scenarios/validators_disconnect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function main() {
nctl-start node=6
nctl-start node=7
# 7. Check if the network is progressing
do_await_era_change_with_timeout 1 "500"
do_await_era_change_with_timeout 1 "1500"
source "$NCTL"/sh/scenarios/common/health_checks.sh \
errors=0 \
equivocators=0 \
Expand Down