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

databendlabs / openraft / 20677454702
88%

Build:
DEFAULT BRANCH: main
Ran 03 Jan 2026 12:49PM UTC
Jobs 1
Files 258
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

03 Jan 2026 12:45PM UTC coverage: 87.562% (+0.03%) from 87.535%
20677454702

push

github

drmingdrmer
change: implement truncate_after for RaftLogStorage

Add new `truncate_after(last_log_id: Option<LogId>)` method to provide clearer
log truncation semantics. This is a new storage API that implementers must provide.

Changes:
- Add `truncate_after()` method to RaftLogStorage trait
- Implement `truncate_after()` to delegate to deprecated `truncate()` by default
- Update internal raft_core to use `truncate_after()` instead of `truncate()`
- Add tests for truncating after specific index and with None (delete all)

Upgrade tip:

Storage implementers need to add the new `truncate_after()` method:

impl RaftLogStorage<C> for MyStorage {
    async fn truncate_after(&mut self, last_log_id: Option<LogIdOf<C>>) -> Result<(), io::Error> {
        // Your implementation here
    }
}

The default implementation delegates to the deprecated `truncate()` method,
so existing implementations continue to work but should migrate to the new API.

80 of 80 new or added lines in 8 files covered. (100.0%)

3 existing lines in 1 file now uncovered.

15594 of 17809 relevant lines covered (87.56%)

159998.56 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
3
91.82
-0.35% openraft/src/core/raft_core.rs
Jobs
ID Job ID Ran Files Coverage
1 20677454702.1 03 Jan 2026 12:49PM UTC 258
87.56
GitHub Action Run
Source Files on build 20677454702
  • Tree
  • List 258
  • Changed 8
  • Source Changed 8
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20677454702
  • 75bfbf57 on github
  • Prev Build on main (#20674731320)
  • Next Build on main (#20678162155)
  • 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