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

prisma-risk / tsoracle / 26368639128
95%

Build:
DEFAULT BRANCH: main
Ran 24 May 2026 06:02PM UTC
Jobs 1
Files 75
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 05:58PM UTC coverage: 94.809% (-0.009%) from 94.818%
26368639128

push

github

web-flow
refactor(driver-openraft): narrow OpenraftHighWaterHost to a metrics-only accessor (#95) (#296)

`OpenraftHighWaterHost::raft()` handed out a full `&Raft<C, SM>`, but the
driver's only use of it is `host.raft().metrics()`. The wide accessor forced
the `StateMachine` associated type onto the trait and blocked piggy-back hosts:
a host whose raft binds to its own state machine cannot fit a
`&Raft<C, HighWaterStateMachine>`.

Replace `raft()` (and the now-dead `StateMachine` type) with the narrower
accessor the driver actually needs:

    fn metrics(&self) -> WatchReceiverOf<Self::Config, RaftMetrics<Self::Config>>;

StandaloneHost and the piggy-back example implement it as `self.raft.metrics()`
and keep their `Raft` privately for `current_high_water` / `submit_advance`.
`owned_leadership_stream` calls `host.metrics()` directly.

Add a compile test: a host backed only by a metrics watch receiver — owning no
`Raft<C, HighWaterStateMachine>` — satisfies the trait, proving the surface no
longer couples hosts to a specific state machine.

20 of 20 new or added lines in 3 files covered. (100.0%)

2 existing lines in 1 file now uncovered.

11067 of 11673 relevant lines covered (94.81%)

507705.02 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
84.37
-0.54% benchmarks/stress/src/topology/paxos.rs
Jobs
ID Job ID Ran Files Coverage
1 26368639128.1 24 May 2026 06:02PM UTC 75
94.81
GitHub Action Run
Source Files on build 26368639128
  • Tree
  • List 75
  • Changed 3
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26368639128
  • 14a736c9 on github
  • Prev Build on main (#26368527309)
  • Next Build on main (#26368659303)
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