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

update to new mp spdz version #19

Merged
merged 3 commits into from
May 17, 2022

Conversation

grafjo
Copy link
Contributor

@grafjo grafjo commented Mar 15, 2022

@codecov
Copy link

codecov bot commented Mar 18, 2022

Codecov Report

Merging #19 (61eaae3) into master (b59cd0a) will increase coverage by 0.14%.
The diff coverage is 75.00%.

Impacted file tree graph

@@             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              
Impacted Files Coverage Δ
...estack/cli/client/castor/util/TupleFileParser.java 68.42% <75.00%> (+26.75%) ⬆️

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 b59cd0a...61eaae3. Read the comment docs.

@grafjo grafjo force-pushed the feature/upstream-new-mp-spdz branch from 1d4f818 to 486a9b9 Compare April 21, 2022 09:58
@grafjo
Copy link
Contributor Author

grafjo commented Apr 21, 2022

@sbckr have rebased to current workflow files

@@ -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);
Copy link
Member

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?

Copy link
Contributor Author

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?

Copy link
Member

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

@sbckr
Copy link
Member

sbckr commented Apr 21, 2022

@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?

@grafjo
Copy link
Contributor Author

grafjo commented Apr 21, 2022

yes carbynestack/ephemeral#15 is required for this PR

Copy link
Member

@sbckr sbckr left a 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

@kindlich
Copy link

kindlich commented May 9, 2022

Are there any open tasks for this issue?
For the release notes, how do we add things there, or is that something you need to do?

@sbckr
Copy link
Member

sbckr commented May 9, 2022

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.
Usually the PR title is used as a basis for commit title. Please let me know if this should be changed

@kindlich
Copy link

kindlich commented May 9, 2022

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. Usually the PR title is used as a basis for commit title. Please let me know if this should be changed

Context was that you asked us to put information about the incompatibility with the old pregenerated tuple files into the changelog.
#19 (comment)

What should we name the PR then?

@kindlich
Copy link

kindlich commented May 11, 2022

Added a Notice to the README and updated the version.
This will now need this PR to be merged beforehand, so that the links work

@strieflin
Copy link
Member

Also requires an update to the tutorial on the website (see carbynestack/carbynestack.github.io#50).

@kindlich
Copy link

So, is there still something to do for this PR?
The update on the website is now added as draft PR, but it needs a built artifact of the CLI first.

@kindlich kindlich force-pushed the feature/upstream-new-mp-spdz branch from 586624a to b4e59fd Compare May 16, 2022 11:11
@kindlich
Copy link

Rebased

kindlich and others added 3 commits May 16, 2022 13:12
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]>
@kindlich kindlich force-pushed the feature/upstream-new-mp-spdz branch from b4e59fd to 61eaae3 Compare May 16, 2022 11:12
Copy link
Member

@sbckr sbckr left a comment

Choose a reason for hiding this comment

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

LGTM

@sbckr
Copy link
Member

sbckr commented May 17, 2022

as project code test coverage remains >80% and complexity is low, the failed quality check for delta test coverage (75%<80%) will be ignored

@sbckr sbckr merged commit a4260ab into carbynestack:master May 17, 2022
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.

4 participants