flow-go icon indicating copy to clipboard operation
flow-go copied to clipboard

Adding Event Index Sequence checking to UTs

Open Tonix517 opened this issue 2 years ago • 2 comments

Adding new checking in UT cases to make sure numbers in event index sequence are unique and increasing. As a follow-up to https://github.com/onflow/flow-go/pull/3371#pullrequestreview-1139592903

changes to FVM and execution computer UT are split into separate commits.

Tonix517 avatar Oct 13 '22 22:10 Tonix517

FVM Benchstat comparison

This branch with compared with the base branch onflow:master commit bba471cbc2881de71b1a69668f562e63826a1140

The command (for i in {1..10}; do go test ./fvm ./engine/execution/computation --bench . --tags relic -shuffle=on --benchmem --run ^$; done) was used.

Collapsed results for better readability

old.txtnew.txt
time/opdelta
ComputeBlock/16/cols/128/txes-24.53s ± 0%4.68s ± 0%~(p=1.000 n=1+1)
 
us/txdelta
ComputeBlock/16/cols/128/txes-22.21k ± 0%2.28k ± 0%~(p=1.000 n=1+1)
 
alloc/opdelta
ComputeBlock/16/cols/128/txes-21.27GB ± 0%1.29GB ± 0%~(p=1.000 n=1+1)
 
allocs/opdelta
ComputeBlock/16/cols/128/txes-219.9M ± 0%19.9M ± 0%~(p=1.000 n=1+1)
 

github-actions[bot] avatar Oct 13 '22 22:10 github-actions[bot]

Codecov Report

Merging #3386 (d2b46d5) into master (ed91c80) will decrease coverage by 6.81%. The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #3386      +/-   ##
==========================================
- Coverage   55.45%   48.64%   -6.82%     
==========================================
  Files         746      163     -583     
  Lines       67984    14297   -53687     
==========================================
- Hits        37703     6955   -30748     
+ Misses      27222     6907   -20315     
+ Partials     3059      435    -2624     
Flag Coverage Δ
unittests 48.64% <ø> (-6.82%) :arrow_down:

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

Impacted Files Coverage Δ
fvm/transactionInvoker.go 56.52% <0.00%> (-4.23%) :arrow_down:
...s/hotstuff/votecollector/staking_vote_processor.go 83.87% <0.00%> (-3.23%) :arrow_down:
consensus/hotstuff/eventloop/event_loop.go 73.46% <0.00%> (-1.37%) :arrow_down:
fvm/environment/env.go 100.00% <0.00%> (ø)
admin/commands/storage/helper.go 78.00% <0.00%> (ø)
storage/badger/headers.go
network/channels/channel.go
ledger/complete/ledger.go
cmd/verification_builder.go
storage/badger/seals.go
... and 586 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

codecov-commenter avatar Oct 13 '22 22:10 codecov-commenter

bors merge

Tonix517 avatar Oct 17 '22 17:10 Tonix517

will merge it first and treat https://github.com/onflow/flow-go/issues/3393 as a separate fix in future PR

Tonix517 avatar Oct 17 '22 17:10 Tonix517