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

databendlabs / openraft / 22899709416 / 1
87%
main: 87%

Build:
DEFAULT BRANCH: main
Ran 10 Mar 2026 11:16AM UTC
Files 258
Run time 7s
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

10 Mar 2026 11:11AM UTC coverage: 87.576% (-0.005%) from 87.581%
22899709416.1

push

github

drmingdrmer
change: in 0.10.0: decouple entry, membership, and log types from `RaftTypeConfig`

Replace `C: RaftTypeConfig` with the specific type parameters each type
actually needs, breaking circular type dependencies and making these
types usable without a full config.

- `LogIdList<C>`, `LeaderLogIds<C>`, `LeaderLogIdsIter<C>`
  → generic over `CLID: RaftCommittedLeaderId`.
  `LogIdList::get_key_log_ids` takes `C` as a method-level generic
  since it needs `RaftLogReader<C>`.

- `LogStateReader<C>` → `LogStateReader<CLID>`.
  `RaftState<C>` implements `LogStateReader<CommittedLeaderIdOf<C>>`.

- `Membership<C>` → `Membership<NID, N>`.
  `ChangeMembers<C>` → `ChangeMembers<NID, N>`.
  Error types `NodeNotFound`, `LearnerNotFound`, `MembershipError`
  now take `NID` instead of `C`.
  `ChangeMembershipError<C>` is unchanged (needs `InProgress<C>`).

- `RaftPayload<C>` → `RaftPayload<NID, N>`.

- `RaftEntry<C>` → `RaftEntry` with associated types
  (`CommittedLeaderId`, `D`, `NodeId`, `Node`).
  `EntryPayload<C>` → `EntryPayload<D, NID, N>`.
  `RaftTypeConfig::Entry` bound now constrains all four associated types.

Upgrade tip:

    // Before
    impl RaftEntry<MyConfig> for MyEntry { ... }
    EntryPayload<MyConfig>::Normal(data)
    Membership<MyConfig>::new(...)

    // After
    impl RaftEntry for MyEntry {
        type CommittedLeaderId = MyCommittedLeaderId;
        type D = MyAppData;
        type NodeId = MyNodeId;
        type Node = MyNode;
        ...
    }
    EntryPayload::<MyAppData, MyNodeId, MyNode>::Normal(data)
    Membership::<MyNodeId, MyNode>::new(...)

15896 of 18151 relevant lines covered (87.58%)

146366.27 hits per line

Source Files on job 22899709416.1
  • Tree
  • List 258
  • Changed 62
  • Source Changed 57
  • Coverage Changed 27
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 22899709416
  • 5eef0576 on github
  • Prev Job for on main (#22864138805.1)
  • Next Job for on main (#22906186010.1)
  • 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