-
Notifications
You must be signed in to change notification settings - Fork 4
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
update to new mp spdz version #19
update to new mp spdz version #19
Conversation
2500a94
to
b5663fc
Compare
b5663fc
to
1d4f818
Compare
Codecov Report
@@ Coverage Diff @@
## master #19 +/- ##
============================================
+ Coverage 83.48% 83.63% +0.14%
- Complexity 385 388 +3
============================================
Files 69 69
Lines 1447 1454 +7
Branches 73 74 +1
============================================
+ Hits 1208 1216 +8
+ Misses 189 188 -1
Partials 50 50
Continue to review full report at Codecov.
|
1d4f818
to
486a9b9
Compare
@sbckr have rebased to current workflow files |
src/main/java/io/carbynestack/cli/client/castor/util/TupleFileParser.java
Outdated
Show resolved
Hide resolved
@@ -35,12 +37,36 @@ public static TupleChunk parse(TupleType tupleType, File tupleFile, UUID chunkId | |||
|
|||
byte[] bytes; | |||
try (FileInputStream fileInputStream = new FileInputStream(tupleFile)) { | |||
bytes = toByteArray(fileInputStream); | |||
final byte[] fileBytes = toByteArray(fileInputStream); | |||
bytes = removeTupleHeader(fileBytes); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This adds support for Tuple files generated with MP-SPDZ v0.2.8 or later, but is thereafter no longer compatible with tuple files without headers from earlier versions. For me this seems acceptable, but should definitely be mentioned explicitly.
@strieflin other opinions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sbckr where is the right place for that - in release notes or here in code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd propose release notes and readme
src/test/java/io/carbynestack/cli/client/castor/util/TupleFileParserTest.java
Outdated
Show resolved
Hide resolved
src/main/java/io/carbynestack/cli/client/castor/util/TupleFileParser.java
Outdated
Show resolved
Hide resolved
@grafjo THank you for rebasing the PR. I've added a few comments you might want to look at. In addition, this PR requires carbynestack/ephemeral#15 to be merged first, doesn't it? |
yes carbynestack/ephemeral#15 is required for this PR |
486a9b9
to
878cbf5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please have a look at the provided comments and Codacy findings
src/test/java/io/carbynestack/cli/client/castor/util/TupleFileParserTest.java
Outdated
Show resolved
Hide resolved
src/test/java/io/carbynestack/cli/client/castor/util/TupleFileParserTest.java
Outdated
Show resolved
Hide resolved
src/main/java/io/carbynestack/cli/client/castor/util/TupleFileParser.java
Outdated
Show resolved
Hide resolved
878cbf5
to
f39164e
Compare
Are there any open tasks for this issue? |
PR was blocked by carbynestack/ephemeral#15 @kindlich Release changelog is derived from commit message headers. As single features are directly merged into master, the change log only contains a single entry for now. |
Context was that you asked us to put information about the incompatibility with the old pregenerated tuple files into the changelog. What should we name the PR then? |
Added a Notice to the README and updated the version. |
Also requires an update to the tutorial on the website (see carbynestack/carbynestack.github.io#50). |
So, is there still something to do for this PR? |
586624a
to
b4e59fd
Compare
Rebased |
Removes the File Header that was introduced in MP-SPDZ v0.2.8 Co-authored-by: Petra Scherer <[email protected]> Co-authored-by: Timo Klenk <[email protected]> Signed-off-by: Johannes Graf <[email protected]> Signed-off-by: Timo Klenk <[email protected]>
Signed-off-by: Johannes Graf <[email protected]> Signed-off-by: Timo Klenk <[email protected]>
Signed-off-by: Timo Klenk <[email protected]>
b4e59fd
to
61eaae3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
as project code test coverage remains >80% and complexity is low, the failed quality check for delta test coverage (75%<80%) will be ignored |
cli part for carbynestack/ephemeral#15