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

[BACKPORT] Batch of backports to 20.5.x #2846

Merged
merged 19 commits into from
Apr 16, 2020

Conversation

abukosek and others added 7 commits April 16, 2020 14:49
Previously each endpoint required its own gRPC service. But since all EnclaveRPC
requests already include an "endpoint" field, it is better to use that for
routing requests.

This commit adds a new enclaverpc.Endpoint interface that is used as an endpoint
descriptor. All endpoints must be registered in advance (e.g., during init). It
also changes the key manager EnclaveRPC support to use the new API.

Since it changes the gRPC service name this BREAKS the committee gRPC protocol.
Previously we only tested the runtime transport for the key manager so this adds
a test that also tests the gRPC transport.
There is a race condition where the committee client has been updated with new
connections, but the policy has not yet been as the client is not yet frozen.
This could previously lead to a panic in GetConnection but now correctly returns
nil.
The condition may be transient if connection is in progress.
@kostko kostko force-pushed the kostko/stable/20.5.x/backport-batch branch from b8a1687 to 75b2bfa Compare April 16, 2020 12:50
@codecov
Copy link

codecov bot commented Apr 16, 2020

Codecov Report

Merging #2846 into stable/20.5.x will increase coverage by 1.04%.
The diff coverage is 71.61%.

Impacted file tree graph

@@                Coverage Diff                @@
##           stable/20.5.x    #2846      +/-   ##
=================================================
+ Coverage          67.25%   68.30%   +1.04%     
=================================================
  Files                343      342       -1     
  Lines              32987    33094     +107     
=================================================
+ Hits               22187    22606     +419     
+ Misses              8108     7758     -350     
- Partials            2692     2730      +38     
Impacted Files Coverage Δ
go/common/address.go 72.60% <ø> (+9.93%) ⬆️
go/common/grpc/proxy/proxy.go 58.26% <0.00%> (ø)
go/oasis-node/cmd/root.go 86.48% <ø> (-0.36%) ⬇️
go/registry/api/api.go 37.57% <ø> (ø)
go/roothash/api/api.go 75.00% <ø> (ø)
go/staking/api/api.go 71.42% <ø> (ø)
go/storage/mkvs/tree.go 92.85% <ø> (+6.65%) ⬆️
go/worker/sentry/grpc/worker.go 10.07% <0.00%> (-0.50%) ⬇️
go/consensus/tendermint/roothash/roothash.go 67.90% <33.33%> (-3.64%) ⬇️
go/consensus/tendermint/registry/registry.go 66.92% <53.40%> (-5.90%) ⬇️
... and 63 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 87ddca8...75b2bfa. Read the comment docs.

Copy link
Member

@ptrus ptrus left a comment

Choose a reason for hiding this comment

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

commits seem correct, target branch is ok, CI passed ✔️

@kostko kostko merged commit f2e0221 into stable/20.5.x Apr 16, 2020
@kostko kostko deleted the kostko/stable/20.5.x/backport-batch branch April 16, 2020 13:23
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.

3 participants