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

Grab bag of more stuff from the backlog #3004

Merged
merged 3 commits into from
Jun 11, 2020
Merged

Conversation

Yawning
Copy link
Contributor

@Yawning Yawning commented Jun 11, 2020

  • go/worker/common: Allow specifying the path to the bwrap binary
  • runtime: Rename the rpc crate to enclave_rpc
  • client: Rename the rpc crate to enclave_rpc

Notes:

  • While the original issue suggests using which to figure out where bwrap is I am opting against that as unwise. If people are so inclined as to install bwrap by hand, they can set the config option themselves.

Fixes #1599
Fixes #2469

@Yawning Yawning changed the title Grab back of more stuff from the backlog Grab bag of more stuff from the backlog Jun 11, 2020
@Yawning Yawning force-pushed the yawning/feature/more-backlog branch 8 times, most recently from f99d39f to d43fd25 Compare June 11, 2020 12:07
@Yawning Yawning marked this pull request as ready for review June 11, 2020 12:14
@@ -11,6 +11,8 @@ import (
var envRuntimePath = os.Getenv("OASIS_TEST_RUNTIME_HOST_RUNTIME_PATH")

func TestProvisionerSandbox(t *testing.T) {
const bwrapPath = "/usr/bin/bwrap" // Sensible systems only.
Copy link
Member

Choose a reason for hiding this comment

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

I assume the same fix is required in go/runtime/host/sgx/sgx_test.go (currently not tested in CI).

@codecov
Copy link

codecov bot commented Jun 11, 2020

Codecov Report

Merging #3004 into master will decrease coverage by 0.08%.
The diff coverage is 84.61%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3004      +/-   ##
==========================================
- Coverage   68.62%   68.54%   -0.09%     
==========================================
  Files         365      365              
  Lines       35669    35679      +10     
==========================================
- Hits        24477    24455      -22     
- Misses       8062     8092      +30     
- Partials     3130     3132       +2     
Impacted Files Coverage Δ
go/common/entity/entity.go 68.23% <ø> (ø)
go/common/node/node.go 69.10% <ø> (ø)
go/registry/api/runtime.go 44.30% <ø> (ø)
go/worker/common/config.go 63.26% <71.42%> (+0.62%) ⬆️
go/runtime/host/sandbox/process/bwrap.go 70.47% <100.00%> (ø)
go/runtime/host/sandbox/sandbox.go 75.83% <100.00%> (-0.66%) ⬇️
go/runtime/host/sgx/sgx.go 72.63% <100.00%> (+0.14%) ⬆️
go/upgrade/migrations/dummy.go 80.00% <100.00%> (+0.68%) ⬆️
go/consensus/tendermint/api/errors.go 86.66% <0.00%> (-13.34%) ⬇️
...ompute/txnscheduler/algorithm/batching/batching.go 78.66% <0.00%> (-6.67%) ⬇️
... and 25 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 34b569a...48590f4. Read the comment docs.

@Yawning Yawning force-pushed the yawning/feature/more-backlog branch from d43fd25 to 7f63a02 Compare June 11, 2020 12:44
Yawning added 3 commits June 11, 2020 12:45
This adds a new config option `--worker.runtime.sandbox_binary` that
allows overriding the path to the sandbox support binary (ie: bwrap).
@Yawning Yawning force-pushed the yawning/feature/more-backlog branch from 7f63a02 to 48590f4 Compare June 11, 2020 12:46
@Yawning Yawning merged commit 10f076d into master Jun 11, 2020
@Yawning Yawning deleted the yawning/feature/more-backlog branch June 11, 2020 13:06
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.

Rename Rust rpc module(s) to enclave_rpc bwrap location should not be hardcoded
2 participants