fire::minimum_signers_* v1 tests are load-sensitive

Open
#256 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
rust

Research direction

Start with fire::test::minimum_signers_dkg_v1 and fire::test::minimum_signers_sign_v1, then inspect the timeout paths and the operation_results.len() == 1 assertions. Reproduce the load-sensitive failure by running the tests under load and compare with an isolated run. Done when the timeout behavior is deterministic or safely accommodates slow runners, with any timing rationale documented.

Written by the indexing model from the issue text.

Description

Problem

fire::test::minimum_signers_dkg_v1 and fire::test::minimum_signers_sign_v1 have failed under load on two separate occasions on the same machine (once with a VM at ~590% CPU, once with a concurrent cargo build), failing at the operation_results.len() == 1 assertion after a timeout-driven path. They pass in isolation and on a quiet machine, on clean main as well as on the 15.0.1 tree, so this is not a regression from GHSA-whwx-jj37-4gg5. On a slow CI runner it will eventually fail, and the natural misreading will be that the security fix broke FIRE.

Fix

Either make the timeout-based tests independent of wall-clock timing (inject a clock, or drive the timeout deterministically), or raise the timeouts well past anything a loaded runner can hit and document why.

Dominant language
Rust
Stars
34
Forks
19
Avg merge
9h 19m
Merged PRs (30d)
12

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from xoloki/wsts

All issues in xoloki/wsts

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.