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

prisma-risk / tsoracle / 26414407657
95%

Build:
DEFAULT BRANCH: main
Ran 25 May 2026 06:37PM UTC
Jobs 1
Files 66
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 06:26PM UTC coverage: 96.563% (-0.02%) from 96.584%
26414407657

push

github

web-flow
fix(core): normalize allocator write-back to a packable cursor (#430)

`try_grant` wrote back `next_logical = logical_start + count`. Because
`project_grant` admits a grant that fills a millisecond's logical range
exactly, that sum can reach `LOGICAL_MAX + 1` — a logical value the packed
46/18-bit timestamp layout cannot hold (`Timestamp::pack` asserts
`logical <= LOGICAL_MAX`).

The stored sentinel was safe only by the implicit invariant that the next
`project_grant` call always wraps or resets the cursor before it is ever
packed. Nothing enforced that structurally, leaving a latent panic one new
read path away.

Normalize at write-back instead: when the grant fills the millisecond
exactly, roll the stored cursor to `(physical_ms + 1, 0)` — the same
position the next call would have computed — so stored state is always a
directly packable pair. Observable behavior is unchanged; `next_physical_ms`
may now hold `PHYSICAL_MS_MAX + 1`, which is never packed directly and is
rejected as out-of-range by the next grant's `project_grant`.

Adds a regression test asserting the stored cursor is packable after an
exact-fill grant.

22 of 23 new or added lines in 1 file covered. (95.65%)

2 existing lines in 1 file now uncovered.

10338 of 10706 relevant lines covered (96.56%)

474042.15 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
99.41
-0.59% crates/tsoracle-core/src/allocator.rs

Coverage Regressions

Lines Coverage ∆ File
2
99.41
-0.59% crates/tsoracle-core/src/allocator.rs
Jobs
ID Job ID Ran Files Coverage
1 26414407657.1 25 May 2026 06:37PM UTC 66
96.56
GitHub Action Run
Source Files on build 26414407657
  • Tree
  • List 66
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26414407657
  • d0ceb911 on github
  • Prev Build on main (#26414400584)
  • Next Build on main (#26414589970)
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