• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

databendlabs / openraft / 27203656165
87%

Build:
DEFAULT BRANCH: main
Ran 09 Jun 2026 11:43AM UTC
Jobs 1
Files 262
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Jun 2026 11:34AM UTC coverage: 86.445% (-0.03%) from 86.473%
27203656165

push

github

drmingdrmer
change: replace EffectiveMembership with StoredMembership

# Summary

EffectiveMembership and StoredMembership both carried the same
(log_id, membership) record, and EffectiveMembership had degenerated into a
thin Arc<StoredMembership> wrapper. This consolidates everything onto
StoredMembership and removes EffectiveMembership together with its
EffectiveMembershipOf type-config alias entirely.

# Details

The wrapper's leftover voter_ids cache is dropped, and the items that were
unique to EffectiveMembership (new_arc, is_voter, learner_ids, get_node,
get_joint_config, and the QuorumSet impl) move onto StoredMembership so it
fully subsumes the wrapper. The struct and its bespoke
Default/Debug/PartialEq/Display impls are deleted, and the redundant double-Arc
in MembershipState collapses to a single Arc<StoredMembership>.

All openraft-internal code is migrated to StoredMembership / StoredMembershipOf,
and the public EffectiveMembership and EffectiveMembershipOf aliases are
removed.

User-visible: the effective/committed membership embedded in RaftMetrics now
renders via StoredMembership's formatting (Debug `StoredMembership { .. }`,
Display `{log_id:.., ..}`) instead of the old `EffectiveMembership{..}`; the
example metrics walkthroughs and the effective-membership doc page are updated
to match.

Also drops the unused public `From<(&LID, Membership)>` conversion that only
existed on the wrapper.

Upgrade tip:

Replace `EffectiveMembership` and `EffectiveMembershipOf<C>` with
`StoredMembership` and `StoredMembershipOf<C>`.

111 of 117 new or added lines in 25 files covered. (94.87%)

5 existing lines in 2 files now uncovered.

16281 of 18834 relevant lines covered (86.44%)

144853.2 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
80.0
-7.5% openraft/src/membership/stored_membership.rs

Coverage Regressions

Lines Coverage ∆ File
3
88.89
-3.7% openraft/src/core/sm/handle.rs
2
92.03
-0.22% openraft/src/core/raft_core.rs
Jobs
ID Job ID Ran Files Coverage
1 27203656165.1 09 Jun 2026 11:43AM UTC 262
86.44
GitHub Action Run
Source Files on build 27203656165
  • Tree
  • List 262
  • Changed 26
  • Source Changed 25
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27203656165
  • 5ca2ab2d on github
  • Prev Build on main (#27189898500)
  • Next Build on main (#27218729339)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc