aptos-core icon indicating copy to clipboard operation
aptos-core copied to clipboard

Test helper for reconfiguration time

Open rohitna opened this issue 2 years ago • 2 comments

Description

This adds a test function that one can use to set reconfiguration time for tests. This is helpful in testing on-chain validator oracles.

Test Plan

Test only function


This change is Reviewable

rohitna avatar Sep 10 '22 21:09 rohitna

:white_check_mark: Forge suite compat success on testnet ==> c0406ef43b29e50e2c4c90adf93c27772dd3fdd7

Compatibility test results for testnet ==> c0406ef43b29e50e2c4c90adf93c27772dd3fdd7 (PR)
1. Check liveness of validators at old version: testnet
compatibility::simple-validator-upgrade::liveness-check : 6897 TPS, 4129 ms latency, 6000 ms p99 latency,no expired txns
2. Upgrading first Validator to new version: c0406ef43b29e50e2c4c90adf93c27772dd3fdd7
compatibility::simple-validator-upgrade::single-validator-upgrade : 5069 TPS, 5118 ms latency, 10200 ms p99 latency,no expired txns
3. Upgrading rest of first batch to new version: c0406ef43b29e50e2c4c90adf93c27772dd3fdd7
compatibility::simple-validator-upgrade::half-validator-upgrade : 5532 TPS, 4753 ms latency, 7000 ms p99 latency,no expired txns
4. upgrading second batch to new version: c0406ef43b29e50e2c4c90adf93c27772dd3fdd7
compatibility::simple-validator-upgrade::rest-validator-upgrade : 6275 TPS, 4071 ms latency, 6800 ms p99 latency,no expired txns
5. check swarm health
Compatibility test for testnet ==> c0406ef43b29e50e2c4c90adf93c27772dd3fdd7 passed
Test Ok

Forge is running suite land_blocking on 5c5f4dc2305ca84be5728ec8d214f2f9202bb5d7

Forge is running suite compat on testnet ==> 5c5f4dc2305ca84be5728ec8d214f2f9202bb5d7

:white_check_mark: Forge suite land_blocking success on 5c5f4dc2305ca84be5728ec8d214f2f9202bb5d7

performance benchmark with full nodes : 7707 TPS, 3849 ms latency, 5400 ms p99 latency,no expired txns
Test Ok

github-actions[bot] avatar Sep 15 '22 19:09 github-actions[bot]

Forge is running suite land_blocking on c0406ef43b29e50e2c4c90adf93c27772dd3fdd7

Forge is running suite compat on testnet ==> c0406ef43b29e50e2c4c90adf93c27772dd3fdd7

:white_check_mark: Forge suite land_blocking success on c0406ef43b29e50e2c4c90adf93c27772dd3fdd7

performance benchmark with full nodes : 7695 TPS, 3843 ms latency, 5100 ms p99 latency,no expired txns
Test Ok

:white_check_mark: Forge suite compat success on testnet ==> 5c5f4dc2305ca84be5728ec8d214f2f9202bb5d7

Compatibility test results for testnet ==> 5c5f4dc2305ca84be5728ec8d214f2f9202bb5d7 (PR)
1. Check liveness of validators at old version: testnet
compatibility::simple-validator-upgrade::liveness-check : 7982 TPS, 3346 ms latency, 4900 ms p99 latency,no expired txns
2. Upgrading first Validator to new version: 5c5f4dc2305ca84be5728ec8d214f2f9202bb5d7
compatibility::simple-validator-upgrade::single-validator-upgrade : 6135 TPS, 4512 ms latency, 6300 ms p99 latency,no expired txns
3. Upgrading rest of first batch to new version: 5c5f4dc2305ca84be5728ec8d214f2f9202bb5d7
compatibility::simple-validator-upgrade::half-validator-upgrade : 5488 TPS, 4847 ms latency, 7900 ms p99 latency,no expired txns
4. upgrading second batch to new version: 5c5f4dc2305ca84be5728ec8d214f2f9202bb5d7
compatibility::simple-validator-upgrade::rest-validator-upgrade : 6116 TPS, 4255 ms latency, 7800 ms p99 latency,no expired txns
5. check swarm health
Compatibility test for testnet ==> 5c5f4dc2305ca84be5728ec8d214f2f9202bb5d7 passed
Test Ok

github-actions[bot] avatar Sep 15 '22 19:09 github-actions[bot]