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

databendlabs / openraft / 24720055708
87%

Build:
DEFAULT BRANCH: main
Ran 21 Apr 2026 11:37AM UTC
Jobs 1
Files 261
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

21 Apr 2026 11:32AM UTC coverage: 86.546% (-0.005%) from 86.551%
24720055708

push

github

drmingdrmer
test: regression for duplicate `trigger().snapshot()` at same last_applied

Port the regression scenario from release-0.9 (commit 561b0776) to this
branch. The underlying bug fixed there (253c31c1) does not apply here —
`Engine::on_building_snapshot_done` already uses `try_update_all` (strict
`<`, silent no-op on equal values) and gates `SnapshotHandler::update_snapshot`
on its `bool` return, so two builds at the same `last_log_id` cannot trip
`debug_assert!(log_id > self.snapshot)`. The test locks that invariant in
so a future refactor can't reintroduce the panic.

The 0.9 sleep-then-probe structure is reused because there is no cleaner
signal available on main: `build_snapshot` spawns the build into its own
task, so subsequent `Apply` commands are not ordered after it; the
`snapshot` metric is the last included log id, which does not change for
a duplicate build; and `building_snapshot` is engine-internal. The
liveness probe after the sleep is the real assertion — a post-panic
raft_core would drop the request channel and hang the client write.

16281 of 18812 relevant lines covered (86.55%)

124592.06 hits per line

Coverage Regressions

Lines Coverage ∆ File
3
86.96
-3.26% openraft/src/core/heartbeat/worker.rs
3
84.62
-4.62% openraft/src/raft/raft_inner.rs
2
96.6
-0.97% openraft/src/replication/mod.rs
2
93.28
-1.68% openraft/src/replication/stream_state.rs
Jobs
ID Job ID Ran Files Coverage
1 24720055708.1 21 Apr 2026 11:37AM UTC 261
86.55
GitHub Action Run
Source Files on build 24720055708
  • Tree
  • List 261
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24720055708
  • 0f0359d2 on github
  • Prev Build on main (#24662436821)
  • Next Build on main (#24722988808)
  • 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