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

prisma-risk / tsoracle / 26350727505
95%

Build:
DEFAULT BRANCH: main
Ran 24 May 2026 03:28AM UTC
Jobs 1
Files 74
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

24 May 2026 03:24AM UTC coverage: 94.788% (-0.03%) from 94.815%
26350727505

push

github

web-flow
fix(openraft-toolkit): fsync truncate_after and purge writes (#260) (#279)

truncate_after and purge committed their WriteBatch via the non-synced
self.db.write(batch), whereas save_vote and append use
write_opt(batch, write_sync_opts()) with set_sync(true). Each op is a
single atomic batch, so a crash loses the whole op cleanly — the hazard
is durability: an acknowledged truncate/purge could be lost on power
loss while a synced save_vote survives, so recovery could present a
durable new-term vote alongside a non-durable, un-truncated log tail —
a combination openraft expects to be durably consistent.

Both now use write_opt with write_sync_opts(), matching save_vote and
append.

Add failpoint regression guards around the write path in both methods
(truncate::{before_write_batch,after_write_before_sync} and the purge::
equivalents), mirroring append's failpoints, plus four tests asserting
that a panic before the write loses nothing and a return after the
write keeps the mutation durable. These guard the write path's
position; the sync flag itself has no in-process observable effect and
is not unit-testable without OS-level power-loss injection.

20 of 20 new or added lines in 1 file covered. (100.0%)

4 existing lines in 1 file now uncovered.

10620 of 11204 relevant lines covered (94.79%)

487665.7 hits per line

Coverage Regressions

Lines Coverage ∆ File
4
73.54
-1.37% crates/tsoracle-paxos-toolkit/src/lifecycle/mod.rs
Jobs
ID Job ID Ran Files Coverage
1 26350727505.1 24 May 2026 03:28AM UTC 74
94.79
GitHub Action Run
Source Files on build 26350727505
  • Tree
  • List 74
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26350727505
  • e667daee on github
  • Prev Build on main (#26350643476)
  • Next Build on main (#26350814947)
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