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

databendlabs / openraft / 27189898500
87%

Build:
DEFAULT BRANCH: main
Ran 09 Jun 2026 07:12AM UTC
Jobs 1
Files 263
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 07:03AM UTC coverage: 86.473% (-0.2%) from 86.639%
27189898500

push

github

drmingdrmer
refactor: quorum: replace Joint wrapper with Vec<BTreeSet<NID>>

# Summary

A joint quorum set is now represented directly as `Vec<BTreeSet<NID>>`
rather than wrapped in the `Joint<ID, QS, D>` type. The `QuorumSet`,
`Coherent`, and `FindCoherent` impls move onto the concrete vector type and
the `Joint` wrapper is deleted.

# Details

- `Vec<BTreeSet<NID>>` now impls `QuorumSet` as a joint set (a quorum is a
  majority in every config). The blanket `impl QuorumSet for Vec<ID>`
  (single majority) is removed because it overlaps the new joint impl, so a
  bare `Vec<node-id>` is no longer a quorum set on its own.
- `Coherent`/`FindCoherent` are implemented on `Vec<BTreeSet<NID>>`.
  Coherence stays the Joint-vs-Joint relation (two joints are coherent iff
  they share a config); `find_coherent` keeps a uniform `BTreeSet<NID>`
  target, matching the goal `Membership::change` derives.
- `EffectiveMembership` drops its cached `Joint` field and delegates
  `QuorumSet` to its `Membership`. Public API: `get_joint_config` now
  returns `&Vec<BTreeSet<NID>>` instead of `&Vec<Vec<NID>>`.
- The `Joint` wrapper and its `From`/`QuorumSet` impls are deleted.

69 of 72 new or added lines in 8 files covered. (95.83%)

17 existing lines in 4 files now uncovered.

16339 of 18895 relevant lines covered (86.47%)

146962.8 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
83.1
-1.71% openraft/src/membership/effective_membership.rs

Coverage Regressions

Lines Coverage ∆ File
12
72.73
-27.27% openraft/src/quorum/quorum_set_impl.rs
2
92.96
-0.56% openraft/src/raft/mod.rs
2
96.62
-0.97% openraft/src/replication/mod.rs
1
83.1
-1.71% openraft/src/membership/effective_membership.rs
Jobs
ID Job ID Ran Files Coverage
1 27189898500.1 09 Jun 2026 07:12AM UTC 263
86.47
GitHub Action Run
Source Files on build 27189898500
  • Tree
  • List 263
  • Changed 11
  • Source Changed 8
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27189898500
  • 58dbcfaa on github
  • Prev Build on main (#27152208211)
  • Next Build on main (#27203656165)
  • 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