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: Add support for reporting EnclaveRPC peer feedback #4757

Merged
merged 1 commit into from
May 24, 2022

Conversation

kostko
Copy link
Member

@kostko kostko commented May 23, 2022

This makes EnclaveRPC more robust as the higher-level layer in the
runtime can trigger peer replacement on high level errors.

TODO

  • Also use the KeyManagerClientWrapper in the key manager worker.

@kostko kostko added the c:runtime Category: runtime label May 23, 2022
@kostko kostko force-pushed the kostko/feature/enclaverpc-improvements branch 2 times, most recently from e48c85b to f583c5b Compare May 24, 2022 07:33
@codecov
Copy link

codecov bot commented May 24, 2022

Codecov Report

Merging #4757 (4d28425) into master (4200bfb) will increase coverage by 0.11%.
The diff coverage is 87.93%.

@@            Coverage Diff             @@
##           master    #4757      +/-   ##
==========================================
+ Coverage   66.55%   66.66%   +0.11%     
==========================================
  Files         446      447       +1     
  Lines       50031    50065      +34     
==========================================
+ Hits        33299    33377      +78     
+ Misses      12562    12538      -24     
+ Partials     4170     4150      -20     
Impacted Files Coverage Δ
go/runtime/host/protocol/types.go 54.54% <ø> (ø)
go/runtime/enclaverpc/api/api.go 60.00% <60.00%> (ø)
go/worker/common/committee/keymanager.go 91.66% <91.17%> (+2.19%) ⬆️
go/runtime/registry/host.go 70.20% <100.00%> (+0.81%) ⬆️
go/worker/common/committee/node.go 61.41% <100.00%> (ø)
go/worker/keymanager/handler.go 70.00% <100.00%> (ø)
go/worker/keymanager/worker.go 63.69% <100.00%> (+0.16%) ⬆️
go/consensus/tendermint/full/light.go 61.53% <0.00%> (-3.85%) ⬇️
...nsensus/tendermint/apps/keymanager/transactions.go 52.77% <0.00%> (-2.78%) ⬇️
go/runtime/nodes/nodes.go 84.09% <0.00%> (-2.28%) ⬇️
... and 30 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 c2fdd21...4d28425. Read the comment docs.

@kostko kostko force-pushed the kostko/feature/enclaverpc-improvements branch from f583c5b to 619317b Compare May 24, 2022 10:03
This makes EnclaveRPC more robust as the higher-level layer in the
runtime can trigger peer replacement on high level errors.
@kostko kostko force-pushed the kostko/feature/enclaverpc-improvements branch from 619317b to 4d28425 Compare May 24, 2022 10:24
@kostko kostko marked this pull request as ready for review May 24, 2022 11:10
return &protocol.Body{HostRPCCallResponse: &protocol.HostRPCCallResponse{
Response: cbor.FixSliceForSerde(rsp.Data),
Response: cbor.FixSliceForSerde(rsp),
Copy link
Member

Choose a reason for hiding this comment

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

Btw is this FixSliceForSerde still needed? serde is not used anymore for cbor serialization, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

True, we could fix it in oasis-cbor, but currently it also doesn't allow deserialization into vectors from NULL, so it is still needed. Will open an issue for it though.

@kostko kostko merged commit 495fc44 into master May 24, 2022
@kostko kostko deleted the kostko/feature/enclaverpc-improvements branch May 24, 2022 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c:runtime Category: runtime
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants