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

prisma-risk / tsoracle / 26491073736
95%

Build:
DEFAULT BRANCH: main
Ran 27 May 2026 04:44AM UTC
Jobs 1
Files 90
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

27 May 2026 04:37AM UTC coverage: 94.936% (-0.01%) from 94.949%
26491073736

push

github

web-flow
fix(core/allocator): try_prepare_window_extension +1 overflow guard reported wrong operand (#565)

The `committed_high_water.checked_add(1)?` guard reported
`PhysicalMsOutOfRange(*committed_high_water)` on overflow — but that
operand is in range; the value that actually went out of range is
`committed_high_water + 1`. A reader of the error would see an in-range
number and infer the wrong root cause.

The branch is also dead: `try_on_leadership_gained` rejects
`committed_ceiling > PHYSICAL_MS_MAX` and `try_commit_window_extension`
does the same for any subsequent advance, so `committed_high_water` is
bounded at `PHYSICAL_MS_MAX = (1 << 46) - 1`, many orders of magnitude
below `u64::MAX`. The +1 cannot overflow without an upstream invariant
violation.

Replace with a `debug_assert!` that documents the invariant and trips
loudly in debug if it is ever broken. Release-mode safety is preserved
by the existing downstream `requested > PHYSICAL_MS_MAX` check at
line 463: a hypothetical wraparound would surface there.

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

3 of 5 new or added lines in 1 file covered. (60.0%)

13760 of 14494 relevant lines covered (94.94%)

379505.54 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
99.16
-0.33% crates/tsoracle-core/src/allocator.rs
Jobs
ID Job ID Ran Files Coverage
1 26491073736.1 27 May 2026 04:43AM UTC 90
94.94
GitHub Action Run
Source Files on build 26491073736
  • Tree
  • List 90
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26491073736
  • e7f70bd0 on github
  • Prev Build on main (#26490509222)
  • Next Build on main (#26491638902)
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