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

prisma-risk / tsoracle / 34876713984
97%

Build:
DEFAULT BRANCH: main
Ran 14 Sep 2026 05:51PM UTC
Jobs 1
Files 97
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

14 Sep 2026 05:45PM UTC coverage: 96.452% (+0.02%) from 96.432%
34876713984

push

github

web-flow
fix(server): guard the lease-set projection with the leader epoch (#707)

`persist_lease_mutation` projected the full live lease set from the in-memory table without checking the epoch, then handed it to `persist_leases`, which replaces the durable set wholesale. A step-down clears that table. A lease RPC that had already committed its window extension could then project from the cleared table and persist a set holding only its own record, dropping every other live lease from durable state. `lease_commit` refused afterwards, but the persist had already landed, the next fence seeded from it, and `GetSafeFrontier` could advance past a bound its holder was still stamping under.

The projection now takes the same check `lease_commit` uses, factored into `lease_table_at`: the epoch is compared under the lease-table lock, and the RPC answers NOT_LEADER when it has moved. A new `server::lease_flow::before_projection` yield point parks a lease mutation there so a test can step the node down and re-elect it mid-mutation. With the guard removed, that test loses the other holder's durable lease.

Signed-off-by: Sebastian Thiebaud <sebastian@prismarisk.com>

58 of 59 new or added lines in 2 files covered. (98.31%)

18403 of 19080 relevant lines covered (96.45%)

279486.09 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
93.67
-0.34% crates/tsoracle-server/src/lease_flow.rs
Jobs
ID Job ID Ran Files Coverage
1 34876713984.1 14 Sep 2026 05:51PM UTC 97
96.45
GitHub Action Run
Source Files on build 34876713984
  • Tree
  • List 97
  • Changed 4
  • Source Changed 2
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #34876713984
  • 0553dfa3 on github
  • Prev Build on main (#34874866236)
  • Next Build on main (#34882714147)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc