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

prisma-risk / tsoracle / 26381108978
95%

Build:
DEFAULT BRANCH: main
Ran 25 May 2026 03:13AM UTC
Jobs 1
Files 82
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

25 May 2026 03:08AM UTC coverage: 94.869% (+0.02%) from 94.852%
26381108978

push

github

web-flow
fix(openraft-toolkit): version-frame the log-store meta column (#331) (#390)

The meta column holds openraft's recovery-critical Vote/Committed/LastPurged,
yet `log_store/meta.rs` persisted them as bare, unversioned postcard — unlike
every other persisted blob in the store, which is framed `[SCHEMA_VERSION |
postcard]` and loud-rejects a foreign version. After a layout-changing upgrade
a `Vote` could misdecode against the new shape silently, corrupting term and
leader-election safety, instead of failing with a version error. A regression
test demonstrates the hazard: an injected foreign-version record decodes into a
valid-looking but wrong `Vote`.

Route `meta::read`/`put` through the same `encode_record`/`decode_record`
helpers the log column uses, so meta gets the version frame and surfaces a
foreign version as `InvalidData`. Those helpers return `io::Result`, matching
the `RaftLogStorage` trait surface; this leaves `open()` as the only producer
of `RocksdbLogStoreError` (emitting just `MissingColumnFamily`), so the now-dead
`Decode` and `RocksDb` variants are removed and the unused `postcard`
dependency dropped.

Framing the meta column is a breaking on-disk change, so `SCHEMA_VERSION` is
bumped 1 -> 2 and the golden-byte layout pins advance with it; a meta-column
pin is added for the Vote record.

Closes the deferred half of #93.

19 of 21 new or added lines in 3 files covered. (90.48%)

12590 of 13271 relevant lines covered (94.87%)

433740.06 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
97.98
-0.83% crates/tsoracle-openraft-toolkit/src/log_store/mod.rs
Jobs
ID Job ID Ran Files Coverage
1 26381108978.1 25 May 2026 03:13AM UTC 82
94.87
GitHub Action Run
Source Files on build 26381108978
  • Tree
  • List 82
  • Changed 6
  • Source Changed 3
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26381108978
  • c4fa5719 on github
  • Prev Build on main (#26380901199)
  • Next Build on main (#26381315822)
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