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

Support for HTTP in the CI #550

Merged
merged 17 commits into from
Nov 13, 2019
Merged

Support for HTTP in the CI #550

merged 17 commits into from
Nov 13, 2019

Conversation

jumaffre
Copy link
Contributor

This PR introduces HTTP as a separate job on the CI. For now, it only runs against Raft and NoSGX (*).

  1. I've also removed the custom e2e_test.py as we now run most of our tests in HTTP.
  2. tests/infra/consortium.py now uses Python instead of memberclient as much as possible, i.e. everything except signed requests.
  3. Somehow tangential to this PR but required by 2.: the new_user member RPC is now written in C++ so that members can submit a new user/member certificate in PEM to be recorded in the KV as DER. The translation from PEM to DER is now pushed to the server.

This also fixes a small bug with the HTTP RPCClient in the enclave (used for the join protocol) so that our tests now support multiple node with

(*) NoSGX and not SGX for now as large HTTP requests seem to stall CCF #548

Further HTTP work can be tracked under the http label: http

@jumaffre jumaffre requested a review from a team as a code owner November 12, 2019 16:00
@cimetrics
Copy link

images

@cimetrics
Copy link

images

@codecov-io
Copy link

codecov-io commented Nov 12, 2019

Codecov Report

Merging #550 into master will increase coverage by 0.07%.
The diff coverage is 86.05%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #550      +/-   ##
=========================================
+ Coverage   78.54%   78.6%   +0.07%     
=========================================
  Files         140     140              
  Lines       10478   10501      +23     
=========================================
+ Hits         8229    8254      +25     
+ Misses       2249    2247       -2
Flag Coverage Δ
#e2e_BFT 50.21% <51.16%> (-0.65%) ⬇️
#e2e_CFT 73.39% <83.72%> (-0.05%) ⬇️
#unit_BFT 64.31% <0%> (-0.79%) ⬇️
#unit_CFT 72.72% <84.62%> (-0.1%) ⬇️
Impacted Files Coverage Δ
src/tls/keypair.h 76.09% <ø> (ø) ⬆️
src/enclave/http.h 42.86% <0%> (+3.3%) ⬆️
src/node/rpc/userfrontend.h 100% <100%> (ø) ⬆️
src/host/main.cpp 98.19% <100%> (ø) ⬆️
src/node/nodestate.h 83.48% <100%> (+0.07%) ⬆️
src/node/genesisgen.h 89.19% <100%> (ø) ⬆️
src/node/rpc/memberfrontend.h 85.3% <86.11%> (-0.05%) ⬇️
src/node/rpc/frontend.h 77.65% <0%> (-0.24%) ⬇️

src/enclave/http.h Outdated Show resolved Hide resolved
@cimetrics
Copy link

images

@jumaffre jumaffre merged commit 2dcf735 into master Nov 13, 2019
@jumaffre jumaffre deleted the http_ci branch November 13, 2019 09:54
eddyashton pushed a commit to eddyashton/CCF that referenced this pull request Mar 24, 2020
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.

6 participants