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

databendlabs / openraft / 22209712482
88%

Build:
DEFAULT BRANCH: main
Ran 20 Feb 2026 03:14AM UTC
Jobs 1
Files 256
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

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

New Missed Lines in Diff

Lines Coverage ∆ File
7
95.39
stores/memstore-custom-node-id/src/lib.rs

Uncovered Existing Lines

Lines Coverage ∆ File
2
90.91
-2.6% openraft/src/core/tick.rs
3
86.96
-3.26% openraft/src/core/heartbeat/worker.rs
3
87.5
-4.17% openraft/src/core/sm/handle.rs
Jobs
ID Job ID Ran Files Coverage
1 22209712482.1 20 Feb 2026 03:13AM UTC 256
87.79
GitHub Action Run
Source Files on build 22209712482
  • Tree
  • List 256
  • Changed 9
  • Source Changed 1
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22209712482
  • 58631740 on github
  • Prev Build on main (#21539003623)
  • 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