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

[replay] Resurrect the debug tooling for aptos

Open runtian-zhou opened this issue 2 years ago • 14 comments

Description

Added an api endpoint for getting the table value from the serialized Move value.

Added a library to allow local execution of transaction with rest endpoint as the storage backend.

Test Plan

Added a smoke test to make sure a p2p transaction can be executed locally.


This change is Reviewable

runtian-zhou avatar Oct 27 '22 06:10 runtian-zhou

Another thing is in order to be able to use the tool in production we may need to cherry pick the api change to the production branch. cc @davidiw

runtian-zhou avatar Oct 27 '22 17:10 runtian-zhou

Sry pushed to the wrong branch :(

runtian-zhou avatar Nov 03 '22 21:11 runtian-zhou

Forge is running suite land_blocking on 4f0288f770aa99310e74f59f7d203476cc5a3218

github-actions[bot] avatar Nov 03 '22 22:11 github-actions[bot]

Forge is running suite compat on 2d8b1b57553d869190f61df1aaf7f31a8fc19a7b ==> 4f0288f770aa99310e74f59f7d203476cc5a3218

github-actions[bot] avatar Nov 03 '22 22:11 github-actions[bot]

:white_check_mark: Forge suite compat success on 2d8b1b57553d869190f61df1aaf7f31a8fc19a7b ==> 4f0288f770aa99310e74f59f7d203476cc5a3218

Compatibility test results for 2d8b1b57553d869190f61df1aaf7f31a8fc19a7b ==> 4f0288f770aa99310e74f59f7d203476cc5a3218 (PR)
1. Check liveness of validators at old version: 2d8b1b57553d869190f61df1aaf7f31a8fc19a7b
compatibility::simple-validator-upgrade::liveness-check : 7400 TPS, 5222 ms latency, 7100 ms p99 latency,no expired txns
2. Upgrading first Validator to new version: 4f0288f770aa99310e74f59f7d203476cc5a3218
compatibility::simple-validator-upgrade::single-validator-upgrade : 4482 TPS, 9178 ms latency, 12400 ms p99 latency,no expired txns
3. Upgrading rest of first batch to new version: 4f0288f770aa99310e74f59f7d203476cc5a3218
compatibility::simple-validator-upgrade::half-validator-upgrade : 4666 TPS, 8406 ms latency, 11800 ms p99 latency,no expired txns
4. upgrading second batch to new version: 4f0288f770aa99310e74f59f7d203476cc5a3218
compatibility::simple-validator-upgrade::rest-validator-upgrade : 6820 TPS, 5780 ms latency, 10100 ms p99 latency,no expired txns
5. check swarm health
Compatibility test for 2d8b1b57553d869190f61df1aaf7f31a8fc19a7b ==> 4f0288f770aa99310e74f59f7d203476cc5a3218 passed
Test Ok

github-actions[bot] avatar Nov 03 '22 22:11 github-actions[bot]

:white_check_mark: Forge suite land_blocking success on 4f0288f770aa99310e74f59f7d203476cc5a3218

performance benchmark with full nodes : 6775 TPS, 5853 ms latency, 18200 ms p99 latency,(!) expired 600 out of 2893620 txns
Test Ok

github-actions[bot] avatar Nov 03 '22 22:11 github-actions[bot]

Forge is running suite compat on 2d8b1b57553d869190f61df1aaf7f31a8fc19a7b ==> 64478f94c971d618187afd7e138b07070fc28741

github-actions[bot] avatar Nov 04 '22 07:11 github-actions[bot]

Forge is running suite land_blocking on 64478f94c971d618187afd7e138b07070fc28741

github-actions[bot] avatar Nov 04 '22 07:11 github-actions[bot]

:white_check_mark: Forge suite compat success on 2d8b1b57553d869190f61df1aaf7f31a8fc19a7b ==> 64478f94c971d618187afd7e138b07070fc28741

Compatibility test results for 2d8b1b57553d869190f61df1aaf7f31a8fc19a7b ==> 64478f94c971d618187afd7e138b07070fc28741 (PR)
1. Check liveness of validators at old version: 2d8b1b57553d869190f61df1aaf7f31a8fc19a7b
compatibility::simple-validator-upgrade::liveness-check : 7418 TPS, 5208 ms latency, 7100 ms p99 latency,no expired txns
2. Upgrading first Validator to new version: 64478f94c971d618187afd7e138b07070fc28741
compatibility::simple-validator-upgrade::single-validator-upgrade : 4942 TPS, 8101 ms latency, 10800 ms p99 latency,no expired txns
3. Upgrading rest of first batch to new version: 64478f94c971d618187afd7e138b07070fc28741
compatibility::simple-validator-upgrade::half-validator-upgrade : 4459 TPS, 9346 ms latency, 12200 ms p99 latency,no expired txns
4. upgrading second batch to new version: 64478f94c971d618187afd7e138b07070fc28741
compatibility::simple-validator-upgrade::rest-validator-upgrade : 6371 TPS, 6046 ms latency, 11500 ms p99 latency,no expired txns
5. check swarm health
Compatibility test for 2d8b1b57553d869190f61df1aaf7f31a8fc19a7b ==> 64478f94c971d618187afd7e138b07070fc28741 passed
Test Ok

github-actions[bot] avatar Nov 04 '22 07:11 github-actions[bot]

:white_check_mark: Forge suite land_blocking success on 64478f94c971d618187afd7e138b07070fc28741

performance benchmark with full nodes : 6879 TPS, 5776 ms latency, 15000 ms p99 latency,(!) expired 1822 out of 2939160 txns
Test Ok

github-actions[bot] avatar Nov 04 '22 07:11 github-actions[bot]

Forge is running suite compat on 2d8b1b57553d869190f61df1aaf7f31a8fc19a7b ==> 242733259564b226f587e86dd963231720ad8b43

github-actions[bot] avatar Nov 04 '22 19:11 github-actions[bot]

Forge is running suite land_blocking on 242733259564b226f587e86dd963231720ad8b43

github-actions[bot] avatar Nov 04 '22 19:11 github-actions[bot]

:white_check_mark: Forge suite compat success on 2d8b1b57553d869190f61df1aaf7f31a8fc19a7b ==> 242733259564b226f587e86dd963231720ad8b43

Compatibility test results for 2d8b1b57553d869190f61df1aaf7f31a8fc19a7b ==> 242733259564b226f587e86dd963231720ad8b43 (PR)
1. Check liveness of validators at old version: 2d8b1b57553d869190f61df1aaf7f31a8fc19a7b
compatibility::simple-validator-upgrade::liveness-check : 7553 TPS, 5096 ms latency, 6600 ms p99 latency,no expired txns
2. Upgrading first Validator to new version: 242733259564b226f587e86dd963231720ad8b43
compatibility::simple-validator-upgrade::single-validator-upgrade : 4348 TPS, 9267 ms latency, 12000 ms p99 latency,no expired txns
3. Upgrading rest of first batch to new version: 242733259564b226f587e86dd963231720ad8b43
compatibility::simple-validator-upgrade::half-validator-upgrade : 4919 TPS, 8128 ms latency, 10700 ms p99 latency,no expired txns
4. upgrading second batch to new version: 242733259564b226f587e86dd963231720ad8b43
compatibility::simple-validator-upgrade::rest-validator-upgrade : 6750 TPS, 5740 ms latency, 9900 ms p99 latency,no expired txns
5. check swarm health
Compatibility test for 2d8b1b57553d869190f61df1aaf7f31a8fc19a7b ==> 242733259564b226f587e86dd963231720ad8b43 passed
Test Ok

github-actions[bot] avatar Nov 04 '22 19:11 github-actions[bot]

:white_check_mark: Forge suite land_blocking success on 242733259564b226f587e86dd963231720ad8b43

performance benchmark with full nodes : 6954 TPS, 5704 ms latency, 10600 ms p99 latency,(!) expired 2732 out of 2972180 txns
Test Ok

github-actions[bot] avatar Nov 04 '22 19:11 github-actions[bot]