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

databendlabs / openraft / 18915819467
88%

Build:
DEFAULT BRANCH: main
Ran 29 Oct 2025 04:58PM UTC
Jobs 1
Files 207
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

29 Oct 2025 04:54PM UTC coverage: 91.444% (+0.05%) from 91.398%
18915819467

push

github

xp-trumpet
change: migrate API and notification channels to bounded channels

Migrated both API and notification channels from unbounded to bounded with
configurable sizes to provide backpressure control and prevent unbounded
memory growth.

Changes:
- Added `api_channel_size` config (default: 65536)
- Added `notification_channel_size` config (default: 65536)
- Changed `RaftCore` to use bounded MPSC channels for both API and notifications
- Made `external_request()` and `external_state_machine_request()` async and return `Result`
- Made `IOFlushed::io_completed()` async to support bounded channel send
- Use `.ok()` instead of `let _ =` to explicitly ignore send errors

Upgrade tip:

- `external_request()` now returns `Result<(), Fatal<C>>`. Change:
  `raft.external_request(|state| { ... }).await;`
  to:
  `raft.external_request(|state| { ... }).await?;`

- `external_state_machine_request()` now returns `Result<(), Fatal<C>>`. Change:
  `raft.external_state_machine_request(|sm| { ... }).await;`
  to:
  `raft.external_state_machine_request(|sm| { ... }).await?;`

- `IOFlushed::io_completed()` is now async. Change:
  `callback.io_completed(result);`
  to:
  `callback.io_completed(result).await;`

136 of 152 new or added lines in 13 files covered. (89.47%)

10 existing lines in 4 files now uncovered.

12313 of 13465 relevant lines covered (91.44%)

137138.27 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
25.93
0.0% openraft/src/storage/callback.rs
6
86.54
-5.3% openraft/src/core/sm/worker.rs
7
88.86
-0.19% openraft/src/core/raft_core.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
88.37
-2.33% openraft/src/progress/entry/update.rs
1
81.47
0.27% openraft/src/replication/mod.rs
1
25.93
0.0% openraft/src/storage/callback.rs
7
91.49
-3.65% openraft/src/raft/mod.rs
Jobs
ID Job ID Ran Files Coverage
1 18915819467.1 29 Oct 2025 04:58PM UTC 207
91.44
GitHub Action Run
Source Files on build 18915819467
  • Tree
  • List 207
  • Changed 16
  • Source Changed 14
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #18915819467
  • 2e9b3695 on github
  • Prev Build on release-0.10 (#18911059930)
  • Next Build on main (#18916803887)
  • 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