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

prisma-risk / tsoracle / 26296852773
95%

Build:
DEFAULT BRANCH: main
Ran 22 May 2026 03:34PM UTC
Jobs 1
Files 51
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

22 May 2026 03:31PM UTC coverage: 96.27% (+0.03%) from 96.241%
26296852773

push

github

web-flow
fix(driver-openraft): map RaftError::Fatal to PermanentDriver (#112)

* fix(driver-openraft): map RaftError::Fatal to PermanentDriver

Closes #84.

`StandaloneHost::current_high_water` and `submit_advance` matched
`RaftError::ForwardToLeader` explicitly and absorbed every other variant
into `ConsensusError::TransientDriver`. That catch-all included
`RaftError::Fatal` — storage failure, raft-task panic, invariant
violation — so a fatal raft state surfaced to clients as
`UNAVAILABLE` (retryable) instead of `INTERNAL`, turning an
unrecoverable local fault into a tarpit.

Extract the classification into `classify_read_error` /
`classify_client_write_error` and route `RaftError::Fatal(_)` through
`ConsensusError::PermanentDriver`. The free-function shape lets the
unit tests construct a `RaftError::Fatal` directly and assert the
classification without standing up a raft cluster.

* test(driver-openraft): cover ForwardToLeader and transient classifier arms

Coveralls flagged four uncovered lines in `standalone.rs` introduced by
the prior commit: the `ForwardToLeader` arm of `classify_read_error`
and the `_ => TransientDriver` catch-all in both classifiers. Add
direct unit tests that construct those error shapes (ForwardToLeader,
QuorumNotEnough for the read path, ChangeMembershipError::EmptyMembership
for the client-write path) so all four arms of each classifier are
exercised.

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

6556 of 6810 relevant lines covered (96.27%)

85180.59 hits per line

Jobs
ID Job ID Ran Files Coverage
1 26296852773.1 22 May 2026 03:34PM UTC 51
96.27
GitHub Action Run
Source Files on build 26296852773
  • Tree
  • List 51
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26296852773
  • d23fc7f3 on github
  • Prev Build on main (#26295339568)
  • Next Build on main (#26297103139)
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