-
Notifications
You must be signed in to change notification settings - Fork 25
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
Enable concurrency testing #374
Enable concurrency testing #374
Conversation
There was a bug inside the test sending left part of the share twice
Now that they are green, we can run them as part of CI workflow
They don't take long to finish. I expect many failures because folks will forget to add `not(feature = "shuttle")` to their test modules.
src/tests/protocol.rs
Outdated
fn semi_honest_ipa() { | ||
shuttle::check_random( | ||
|| { | ||
shuttle::future::block_on(async { |
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.
That's a lot of indent.
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.
fair enough, I think it can be improved
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 was proven wrong by the formatter :(
src/tests/protocol.rs
Outdated
shuttle::check_random( | ||
|| { | ||
shuttle::future::block_on(async { | ||
const BATCHSIZE: usize = 20; |
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.
Would a smaller batch allow you to increase the number of iterations?
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.
yep, setting it to 5 allowed me to have 6 iterations. still quite small but better
I finally found the bug that was blocking shuttle tests. The issue outlined in #256 was fixed in
#363 but there was another bug inside the concurrency test itself. This change fixes it and enables concurrency testing as part of PR workflow approval.
It also adds a test for semi-honest IPA but given that it is incredibly slow, it only runs it for 2 iterations. Once we improve the IPA latency, number of iterations can be increased.