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

prisma-risk / tsoracle / 26427776142
95%

Build:
DEFAULT BRANCH: main
Ran 26 May 2026 01:58AM UTC
Jobs 1
Files 85
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

26 May 2026 01:52AM UTC coverage: 95.381% (-0.009%) from 95.39%
26427776142

push

github

web-flow
feat(openraft-toolkit): add ActiveWriteVersion cell and version constants (#460)

Replace the single `SCHEMA_VERSION` constant with three concepts and a
process-shared, runtime-mutable active write version, preparing the openraft
toolkit and driver for rolling on-disk / wire format evolution. Behavior is
preserved: every framed record still leads with byte 4 and no production code
path moves the cell.

The new public surface in `tsoracle-openraft-toolkit`:

- `MIN_READABLE_VERSION = 4` / `MAX_READABLE_VERSION = 4` — inclusive readable
  range. Disk reads (and, later, peer RPC reads) accept any version in this
  range; the toolkit's record helpers now validate against the range rather
  than equality with a single constant.
- `BASELINE_WRITE_VERSION = 4` — the default version a fresh node emits.
- `ActiveWriteVersion(Arc<AtomicU8>)` — the single source of truth for the
  version this node currently stamps. `Clone` is a refcount bump, so every
  writer that holds a clone observes a `set()` immediately.
- `recover_active_write_version(snapshot_leading_byte, highest_log_record_byte)`
  computes `max(BASELINE, ...)` from fsync-durable evidence; bootstrap seeds
  the cell from this once.
- `RocksdbLogStore::with_active_write_version(cell)` /
  `active_write_version()` accessor / `highest_log_record_version()` raw
  reverse scan over the log CF.

`RocksdbLogStore`'s three encode helpers (`encode_entry_record`,
`encode_vote_record`, `encode_log_id_record`) now take a `version: u8`
parameter sourced from the cell at call time; `unframe_with_version` widens
to the readable range. The meta helpers (`put_vote`, `put_log_id`) thread the
same version through.

In `tsoracle-driver-openraft`: `HighWaterStateMachine` gains a cell field, a
`with_store_and_active_version` constructor, and an `active_write_version()`
accessor; snapshot build/install encode at the cell's current version and
decode over `[MIN_READABLE_VERSION, MAX_READABLE_VERSION]`. The
`VersionedCodec` i... (continued)

241 of 258 new or added lines in 6 files covered. (93.41%)

1 existing line in 1 file now uncovered.

12184 of 12774 relevant lines covered (95.38%)

461115.65 hits per line

Uncovered Changes

Lines Coverage ∆ File
8
95.23
0.18% crates/tsoracle-driver-openraft/src/state_machine.rs
6
96.33
-0.92% crates/tsoracle-openraft-toolkit/src/log_store/mod.rs
3
96.43
-3.57% crates/tsoracle-driver-openraft/src/standalone.rs

Coverage Regressions

Lines Coverage ∆ File
1
96.14
-0.18% crates/tsoracle-client/src/driver.rs
Jobs
ID Job ID Ran Files Coverage
1 26427776142.1 26 May 2026 01:58AM UTC 85
95.38
GitHub Action Run
Source Files on build 26427776142
  • Tree
  • List 85
  • Changed 9
  • Source Changed 8
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26427776142
  • a6ca1817 on github
  • Prev Build on main (#26426188190)
  • Next Build on main (#26428206571)
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