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

databendlabs / openraft / 23353455513
86%

Build:
DEFAULT BRANCH: main
Ran 20 Mar 2026 04:59PM UTC
Jobs 1
Files 260
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 Mar 2026 04:47PM UTC coverage: 86.192% (+0.04%) from 86.15%
23353455513

push

github

drmingdrmer
feat: add LogIdList to RaftMetrics and RaftDataMetrics behind metrics-logids feature flag

LogIdList tracks the last log ID per leader, which is useful for
deterministic testing to observe exact log state through metrics.
Since it is heap-allocated (Vec), it is gated behind a feature flag
to avoid overhead in production builds. The field uses serde(skip)
when both metrics-logids and serde features are active, because
LogIdList has no serde derives.

Changes:
- Add metrics-logids feature flag to openraft/Cargo.toml
- Add LogIdListOf<C> type alias in type_config::alias
- Add log_id_list field to RaftMetrics and RaftDataMetrics
- Populate log_id_list from st.log_ids in raft_core.rs
- Document the feature flag in feature-flags.md
- Add unit tests for the new field

13 of 13 new or added lines in 3 files covered. (100.0%)

2 existing lines in 1 file now uncovered.

16023 of 18590 relevant lines covered (86.19%)

149379.05 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
92.59
-7.41% openraft/src/core/sm/handle.rs
Jobs
ID Job ID Ran Files Coverage
1 23353455513.1 20 Mar 2026 04:59PM UTC 260
86.19
GitHub Action Run
Source Files on build 23353455513
  • Tree
  • List 260
  • Changed 5
  • Source Changed 3
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23353455513
  • a2673b2c on github
  • Prev Build on main (#23351530562)
  • Next Build on main (#23371435530)
  • 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