input-output-hk / mithril

Stake-based threshold multi-signatures protocol
https://mithril.network
Apache License 2.0
130 stars 41 forks source link

Failures of some STM property based tests #2109

Closed jpraynaud closed 3 days ago

jpraynaud commented 1 week ago

Why

We have noticed some failures in some property based tests of the STM library which make the CI flaky:

We'd like to understand if these occurrences are normal and create the appropriate fixes if necessary.

What

Investigate and fix the source of flakiness.

How

curiecrypt commented 1 week ago

Property test batch_verify in /mithril-stm/stm.rs fails for the following cases:


Possible workaround: For the test batch_verify, the iteration that generates insufficient signatures could be repeated. Since the aim of this test is not to check the aggregation functionality but to check the batch verification functionality. @jpraynaud

jpraynaud commented 4 days ago

Thanks @curiecrypt for the explanation.

We could probably use different protocol parameter instead to make sure that aggregation is never a problem (e.g. with phi_f very close to 1.0 and/or higher m value)? WDYT?