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

prisma-risk / tsoracle / 26350529015
95%

Build:
DEFAULT BRANCH: main
Ran 24 May 2026 03:19AM 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:13AM UTC coverage: 94.739% (-0.007%) from 94.746%
26350529015

push

github

web-flow
fix(driver-openraft): validate snapshot meta.last_log_id against payload.last_applied (#276)

`install_snapshot` applied openraft's `meta` and the decoded payload
independently: `get_current_snapshot` reads back `meta.last_log_id` while
`applied_state` reads back `payload.last_applied`. `build_snapshot` derives
both from the same `last_applied`, so an honest peer never produces a
mismatch — but if they ever disagreed (corruption, a peer bug), the install
would silently desync those two reader methods permanently, with no error.

Guard at the top of `install_snapshot`: reject a `meta.last_log_id` /
`payload.last_applied` disagreement with an `InvalidData` io::Error before
persisting or mutating, so a rejected install leaves both the store and
in-memory state untouched for openraft to retry. Chosen over `debug_assert!`
because the desync is a production-safety hazard and would compile out of
release builds.

Closes #261

40 of 43 new or added lines in 1 file covered. (93.02%)

10553 of 11139 relevant lines covered (94.74%)

476878.97 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
99.0
-0.56% crates/tsoracle-driver-openraft/src/state_machine.rs
Jobs
ID Job ID Ran Files Coverage
1 26350529015.1 24 May 2026 03:19AM UTC 74
94.74
GitHub Action Run
Source Files on build 26350529015
  • Tree
  • List 74
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26350529015
  • 42939475 on github
  • Prev Build on main (#26350400767)
  • Next Build on main (#26350567390)
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