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

prisma-risk / tsoracle / 26350123394
95%

Build:
DEFAULT BRANCH: main
Ran 24 May 2026 02:56AM 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 02:52AM UTC coverage: 94.724% (-0.01%) from 94.736%
26350123394

push

github

web-flow
fix(client): seat leader hints atomically under the monotone-forward check (#240) (#274)

The decision to honor a NOT_LEADER hint and the cache write were two
separate lock acquisitions: `classify_not_leader_hint` checked the
monotone-forward rule via `accept_hint`, released the lock, and the
dispatch loop later wrote via `set_leader_with`. A concurrent
`record_success(higher_epoch)` landing between them could be overwritten
by the lower-epoch hint, briefly moving the cache backward during a
leadership transition. The monotone-forward guarantee held per-operation
but not across the gate-then-write pair.

Replace the pair with a single `compare_and_set_leader(endpoint, epoch)`
that re-checks the rule and writes under one lock acquisition, returning
whether the write happened. The rule itself is unchanged: reject only
when the cache is fresh, both epochs are known, and the hint's epoch is
strictly below the cached one; absent/expired entries and unknown epochs
still accept. `classify_not_leader_hint` calls it directly (its return
value still selects LeaderHint vs StaleLeaderHint), and the redundant
write in the dispatch loop is removed.

`accept_hint` and `set_leader_with` had no remaining production callers
and would have tripped the dead-code lint, so both are removed and their
tests migrated onto `compare_and_set_leader`.

52 of 52 new or added lines in 2 files covered. (100.0%)

2 existing lines in 1 file now uncovered.

10503 of 11088 relevant lines covered (94.72%)

462722.06 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 26350123394.1 24 May 2026 02:56AM UTC 74
94.72
GitHub Action Run
Source Files on build 26350123394
  • Tree
  • List 74
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26350123394
  • f2344449 on github
  • Prev Build on main (#26350110025)
  • Next Build on main (#26350400767)
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