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

[mpm] Integration test support package and deploy command #3631

Merged
merged 3 commits into from
Aug 10, 2022

Conversation

jolestar
Copy link
Member

@jolestar jolestar commented Aug 9, 2022

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Issue Number: resolve #3574

What is the new behavior?

Other information

starcoinorg/move#11

TODO: 测试用例

@github-actions
Copy link

github-actions bot commented Aug 9, 2022

Benchmark for 0774b3e

Click to view benchmark
Test Base PR %
accumulator_append 605.8±31.59µs 597.4±26.90µs -1.39%
block_apply/block_apply_10 632.7±4.97ms 636.2±7.94ms +0.55%
block_apply/block_apply_1000 64.4±0.05s 64.4±0.04s 0.00%
get_with_proof/db_store 36.3±0.31µs 36.3±0.25µs 0.00%
get_with_proof/mem_store 31.3±0.14µs 31.7±1.74µs +1.28%
put_and_commit/db_store/1 95.3±5.18µs 95.0±4.78µs -0.31%
put_and_commit/db_store/10 862.1±41.49µs 863.6±40.24µs +0.17%
put_and_commit/db_store/100 7.3±0.28ms 7.3±0.30ms 0.00%
put_and_commit/db_store/5 439.4±22.20µs 435.4±21.46µs -0.91%
put_and_commit/db_store/50 3.8±0.17ms 3.8±0.15ms 0.00%
put_and_commit/mem_store/1 61.7±5.73µs 61.9±5.63µs +0.32%
put_and_commit/mem_store/10 574.9±47.10µs 575.3±46.48µs +0.07%
put_and_commit/mem_store/100 5.7±0.83ms 5.6±0.35ms -1.75%
put_and_commit/mem_store/5 291.2±24.75µs 291.1±24.75µs -0.03%
put_and_commit/mem_store/50 2.8±0.18ms 2.8±0.18ms 0.00%
query_block/query_block_in(10)_times(100) 5.3±0.13ms 5.4±0.12ms +1.89%
query_block/query_block_in(10)_times(1000) 54.3±2.24ms 54.1±1.25ms -0.37%
query_block/query_block_in(10)_times(10000) 542.2±9.81ms 543.5±15.91ms +0.24%
query_block/query_block_in(1000)_times(100) 979.7±9.42µs 981.8±11.66µs +0.21%
query_block/query_block_in(1000)_times(1000) 9.8±0.12ms 9.8±0.11ms 0.00%
query_block/query_block_in(1000)_times(10000) 97.7±0.85ms 97.8±0.74ms +0.10%
storage_transaction 1116.5±343.51µs 1082.0±272.05µs -3.09%
vm/transaction_execution/1 706.7±2.06ms 706.5±1.87ms -0.03%
vm/transaction_execution/10 176.4±1.28ms 176.0±1.29ms -0.23%
vm/transaction_execution/20 152.3±0.37ms 152.2±1.14ms -0.07%
vm/transaction_execution/5 234.5±3.77ms 233.8±2.31ms -0.30%
vm/transaction_execution/50 166.4±0.34ms 167.0±2.31ms +0.36%

@baichuan3
Copy link

mpm release 和 submit_upgrade_plan 是在集成测试里执行,还是单独命令行执行?

@codecov
Copy link

codecov bot commented Aug 10, 2022

Codecov Report

Merging #3631 (7a576c1) into master (38e141e) will decrease coverage by 0.09%.
The diff coverage is 0.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3631      +/-   ##
==========================================
- Coverage   28.76%   28.68%   -0.08%     
==========================================
  Files         591      591              
  Lines       50428    50573     +145     
  Branches    23766    23849      +83     
==========================================
- Hits        14503    14502       -1     
- Misses      21742    21918     +176     
+ Partials    14183    14153      -30     
Flag Coverage Δ
unittests 28.68% <0.66%> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...starcoin-transactional-test-harness/src/context.rs 0.00% <0.00%> (ø)
...rcoin-transactional-test-harness/src/fork_state.rs 0.00% <0.00%> (ø)
...oin-transactional-test-harness/src/remote_state.rs 0.00% <0.00%> (ø)
vm/starcoin-transactional-test-harness/src/lib.rs 0.15% <0.68%> (-0.03%) ⬇️
consensus/src/consensus.rs 39.69% <0.00%> (-15.87%) ⬇️
vm/types/src/transaction_metadata.rs 55.23% <0.00%> (-11.94%) ⬇️
...mons/forkable-jellyfish-merkle/src/iterator/mod.rs 41.50% <0.00%> (-5.50%) ⬇️
state/state-tree/src/mock/mod.rs 39.14% <0.00%> (-4.34%) ⬇️
...s/forkable-jellyfish-merkle/src/mock_tree_store.rs 29.32% <0.00%> (-3.44%) ⬇️
vm/types/src/token/token_code.rs 34.53% <0.00%> (-2.38%) ⬇️
... and 59 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 14aaf84...7a576c1. Read the comment docs.

@jolestar
Copy link
Member Author

mpm release 和 submit_upgrade_plan 是在集成测试里执行,还是单独命令行执行?

集成测试里运行

@jolestar jolestar merged commit 5e71b00 into master Aug 10, 2022
@jolestar jolestar deleted the mpm_integration_test_package_deploy branch August 10, 2022 08:36
@baichuan3
Copy link

mpm release 和 submit_upgrade_plan 是在集成测试里执行,还是单独命令行执行?

集成测试里运行

给个集成测试里调用 mpm release 和 submit_upgrade_plan 的例子?

@jolestar
Copy link
Member Author

mpm release 和 submit_upgrade_plan 是在集成测试里执行,还是单独命令行执行?

集成测试里运行

给个集成测试里调用 mpm release 和 submit_upgrade_plan 的例子?

#3635

提供的是 package 和 deploy 命令。package 之后可以获取到 package_hash,然后执行 submit_upgrade_plan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] mpm integration-test support package and deploy command
3 participants