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

Runtime consensus state interoperability tests #3833

Merged
merged 2 commits into from
Apr 16, 2021

Conversation

ptrus
Copy link
Member

@ptrus ptrus commented Apr 5, 2021

Implements interoperability tests for the rust consensus state wrappers.

@ptrus ptrus force-pushed the ptrus/feature/consensus-runtime-interop branch from 7b276d5 to 8f42e9d Compare April 5, 2021 10:22
@ptrus ptrus force-pushed the ptrus/feature/consensus-runtime-interop branch from 8f42e9d to f41399e Compare April 5, 2021 10:33
@ptrus ptrus force-pushed the ptrus/feature/consensus-runtime branch from 58aca68 to e44a5df Compare April 13, 2021 14:46
@ptrus ptrus force-pushed the ptrus/feature/consensus-runtime-interop branch from f41399e to 318353b Compare April 13, 2021 15:19
@ptrus ptrus force-pushed the ptrus/feature/consensus-runtime branch from e44a5df to 9e5018f Compare April 14, 2021 12:12
@ptrus ptrus force-pushed the ptrus/feature/consensus-runtime-interop branch 2 times, most recently from ec843e3 to 7ede3a1 Compare April 14, 2021 14:36
@ptrus ptrus force-pushed the ptrus/feature/consensus-runtime branch from 9e5018f to f60f796 Compare April 15, 2021 10:12
@ptrus ptrus force-pushed the ptrus/feature/consensus-runtime-interop branch from 7ede3a1 to b5d0dc9 Compare April 15, 2021 10:15
Copy link
Member

@kostko kostko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

return fmt.Errorf("consensus-mock: failed to finalize test root: %w", err)
}

fmt.Println("Consensus state root hash:", testRoot.Hash)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks slightly hackish, maybe the Populate method should return the root and you can handle this in the caller for all fixtures?

}

ndb.Close()

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove empty line.

@ptrus ptrus force-pushed the ptrus/feature/consensus-runtime branch 2 times, most recently from 7181148 to f2912f8 Compare April 16, 2021 08:06
@ptrus ptrus force-pushed the ptrus/feature/consensus-runtime-interop branch 2 times, most recently from d95f6e9 to 5dbdb13 Compare April 16, 2021 08:43
Base automatically changed from ptrus/feature/consensus-runtime to master April 16, 2021 11:00
@ptrus ptrus force-pushed the ptrus/feature/consensus-runtime-interop branch 3 times, most recently from 90951c1 to 09863d4 Compare April 16, 2021 11:03
@ptrus ptrus force-pushed the ptrus/feature/consensus-runtime-interop branch from 09863d4 to 42d73ea Compare April 16, 2021 11:12
@codecov
Copy link

codecov bot commented Apr 16, 2021

Codecov Report

Merging #3833 (42d73ea) into master (209a89c) will increase coverage by 0.09%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3833      +/-   ##
==========================================
+ Coverage   67.03%   67.13%   +0.09%     
==========================================
  Files         404      404              
  Lines       41467    41467              
==========================================
+ Hits        27799    27840      +41     
+ Misses       9724     9683      -41     
  Partials     3944     3944              
Impacted Files Coverage Δ
go/oasis-node/cmd/common/metrics/disk.go 65.38% <0.00%> (-19.24%) ⬇️
go/oasis-node/cmd/common/metrics/resource.go 78.94% <0.00%> (-10.53%) ⬇️
go/common/sgx/aesm/aesm.go 62.61% <0.00%> (-8.42%) ⬇️
go/storage/mkvs/remove.go 85.56% <0.00%> (-6.19%) ⬇️
go/common/cbor/codec.go 76.47% <0.00%> (-5.89%) ⬇️
go/consensus/tendermint/full/services.go 80.00% <0.00%> (-4.17%) ⬇️
go/consensus/tendermint/apps/staking/state/gas.go 81.13% <0.00%> (-3.78%) ⬇️
go/runtime/host/sgx/sgx.go 71.42% <0.00%> (-2.20%) ⬇️
go/consensus/tendermint/beacon/beacon.go 69.89% <0.00%> (-1.08%) ⬇️
go/oasis-node/cmd/stake/delegations.go 79.24% <0.00%> (-0.95%) ⬇️
... and 21 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 209a89c...42d73ea. Read the comment docs.

@ptrus ptrus merged commit d29a78e into master Apr 16, 2021
@ptrus ptrus deleted the ptrus/feature/consensus-runtime-interop branch April 16, 2021 12:47
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.

None yet

2 participants