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

prisma-risk / tsoracle / 26413349720
95%

Build:
DEFAULT BRANCH: main
Ran 25 May 2026 06:05PM 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 05:56PM UTC coverage: 96.596% (+0.007%) from 96.589%
26413349720

push

github

web-flow
fix(server): close the serving gate synchronously when the WatchGuard drops (#422)

`WatchGuard::drop` only dropped the cooperative-cancel sender, so the
serving gate was closed asynchronously: the leader-watch task published
`NotServing` later, on its own timeline. Between the guard drop and the
task's next poll there was a sub-scheduler-tick window in which the fast
gate still read `Serving` and the allocator still granted, so a `GetTs`
could be admitted by a server that had already been told to stop serving.
The same gap existed on the serve path, where a watch task aborted on
grace expiry may never reach its own `step_down` at all.

Hold the `ServingCore` behind an `Arc` and hand a clone to both the
`WatchGuard` and `serve_inner`. `Drop` (and thus `shutdown` / `abort`,
which trigger it on return) and the `serve_inner` user-shutdown arm now
call `step_down` synchronously at the teardown site, before any await, so
the gate is closed the instant teardown begins. The watch task's later
`step_down(None, None)` on cooperative cancel republishes the identical
`NotServing` state, making the double-close idempotent and harmless.

All `ServingCore` methods take `&self`, so every existing `.core` call
site reaches through the `Arc` unchanged.

52 of 53 new or added lines in 1 file covered. (98.11%)

10103 of 10459 relevant lines covered (96.6%)

567636.15 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
98.67
-0.08% crates/tsoracle-server/src/server.rs
Jobs
ID Job ID Ran Files Coverage
1 26413349720.1 25 May 2026 06:05PM UTC 66
96.6
GitHub Action Run
Source Files on build 26413349720
  • 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 #26413349720
  • f43262af on github
  • Prev Build on main (#26412685236)
  • Next Build on main (#26413543622)
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