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

databendlabs / openraft
88%

Build:
DEFAULT BRANCH: main
Repo Added 15 Oct 2024 03:30AM UTC
Token P5ILmy9rYJlcs7uJCddenHVVu1Bywo1mI regen
Build 369 Last
Files 256
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

LAST BUILD ON BRANCH main
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • main
  • release-0.10
  • release-0.9

20 Feb 2026 03:02AM UTC coverage: 87.794% (+0.09%) from 87.701%
22209712482

push

github

drmingdrmer
test: storage suite must use C::NodeId Display, not u64, for progress id

In `Suite::get_initial_state`, the expected `RaftState` was built with
`NODE_ID.to_string()` where `NODE_ID: u64 = 0`.  The production path in
`StorageHelper::with_id` calls `id.to_string()` on a `C::NodeId`, which
goes through the user's `Display` impl.  When that impl produces anything
other than a bare integer (e.g. `"Node[0]"`), the `assert_eq!(want,
initial)` assertion fails because `IOProgress` derives `PartialEq` and
the `id: String` label participates in equality.

The fix is one extra line: convert `NODE_ID` to `C::NodeId` first so that
both sides use the same `Display`.

A new workspace crate `openraft-memstore-custom-node-id` is added as a
regression guard.  It is a minimal storage implementation (no blocking
hooks, no application data, no feature flags) whose only distinguishing
feature is a `NodeId` whose `Display` yields `"Node[N]"`.  Running its
test suite against an unfixed `suite.rs` reproduces the failure; after the
fix all tests pass.

- Fix: #1659

158 of 165 new or added lines in 3 files covered. (95.76%)

8 existing lines in 3 files now uncovered.

15838 of 18040 relevant lines covered (87.79%)

148570.56 hits per line

Relevant lines Covered
Build:
Build:
18040 RELEVANT LINES 15838 COVERED LINES
148570.56 HITS PER LINE
Source Files on main
  • Tree
  • List 256
  • Changed 9
  • Source Changed 1
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
22209712482 main test: storage suite must use C::NodeId Display, not u64, for progress id In `Suite::get_initial_state`, the expected `RaftState` was built with `NODE_ID.to_string()` where `NODE_ID: u64 = 0`. The production path in `StorageHelper::with_id` calls... push 20 Feb 2026 03:13AM UTC drmingdrmer github
87.79
21539003623 main deps: Switch rt crates to use futures-* crates individually … except rt-compio, which publically re-exports futures. push 31 Jan 2026 04:52AM UTC drmingdrmer github
87.7
21511757572 main deps: Remove tracing-futures The same functionality is available in the tracing crate. push 30 Jan 2026 09:59AM UTC drmingdrmer github
87.72
21510666973 main deps: Update derive_more, thiserror, tabled push 30 Jan 2026 09:21AM UTC drmingdrmer github
87.64
21510588353 main deps: Switch openraft crate from futures to futures-util All the items imported from futures are just re-exports from futures-utils anyways. In larger dependency trees that enable additional features of the futures crate, this allows openraft to ... push 30 Jan 2026 09:18AM UTC drmingdrmer github
87.71
21021457713 main refactor: add multi-slot support to `Histogram` with extracted log scale Refactor histogram implementation to support sliding-window metrics through multiple slots. Each slot contains independent bucket counts and optional user-defined metadata. ... push 15 Jan 2026 06:06AM UTC drmingdrmer github
87.76
20703918341 main test: add truncate before append in log test to prevent conflict Add `truncate_after()` call before appending entries in the log terms test to avoid conflict errors that may occur due to store implementation. Changes: - Add `truncate_after()` be... push 05 Jan 2026 03:15AM UTC drmingdrmer github
87.58
20691485704 release-0.10 feat: add `Raft::write_blank()` method to write blank log entries Adds a public method allowing clients to write `EntryPayload::Blank` directly. Blank entries are useful to commit entries from previous terms, advance the commit index, or act as a... push 04 Jan 2026 10:25AM UTC drmingdrmer github
87.63
20690323739 main feat: add `Raft::write_blank()` method to write blank log entries Adds a public method allowing clients to write `EntryPayload::Blank` directly. Blank entries are useful to commit entries from previous terms, advance the commit index, or act as a... push 04 Jan 2026 08:48AM UTC drmingdrmer github
87.63
20679615371 main feat: add `log_id_parts()` method to `RaftLogId` trait Adds a convenience method that returns both the committed_leader_id and index as a tuple, useful for destructuring in pattern matching. Changes: - Add `log_id_parts()` default method to `Raf... push 03 Jan 2026 04:07PM UTC drmingdrmer github
87.58
See All Builds (369)

Badge your Repo: openraft

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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