DKG: scope frost_cancel_dkg to a per-run identity - #979
Conversation
…annot abort the next run
|
Warning Review limit reachedNext included review available in 57 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
The Rust is right. Local gate clean: Per-run identity is the correct fix rather than, say, clearing the flag more carefully, and the details hold up. The This breaks keep-android at the next pin bump, in two placesBoth are compile-time, which is the good outcome — they fail loudly rather than silently — but they are worth naming now so the companion PR is not discovered by a red build.
Worth flagging that keep's The Kotlin side is also not a mechanical fix. It has to capture One thing I checked and it is not a regression: a cancel pressed before No blockers on this PR. |
|
@kwsantiago — filed the keep-android companion you flagged: privkeyio/keep-android#514. It tracks all three breaks (the no-arg On re-review: nothing has changed here since your pass. Both commits ( |
Fixes #969.
frost_cancel_dkgset one process-wide flag with no run identity, so a cancel issued for a run that has since finished could abort a later run. Eachfrost_run_dkgnow mints a monotonicrun_idand its own cancel flag, registered for the run's lifetime and cleared on every exit path. The id reaches the UI via a newDkgProgressUpdate::Started { run_id }, andfrost_cancel_dkg(run_id)flips the flag only when it matches the active run.