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

prisma-risk / tsoracle / 26297664062
95%

Build:
DEFAULT BRANCH: main
Ran 22 May 2026 03:51PM UTC
Jobs 1
Files 52
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

22 May 2026 03:47PM UTC coverage: 96.277% (-0.03%) from 96.311%
26297664062

push

github

web-flow
feat(client): add RetryPolicy with deadlines, keepalive, and jittered backoff (#114)

Closes #85. A blackholed peer (network partition with no RST) could park
`connect()` indefinitely, blocking every queued waiter behind the single
in-flight RPC the driver serializes for the freshness invariant.

- Add `RetryPolicy { max_attempts, per_attempt_deadline, overall_deadline, base_backoff }` exposed via `ClientBuilder::retry_policy` with defaults `5`, `2s`, `10s`, `50ms`.
- Wrap each `(pool.client, client.get_ts)` attempt in `tokio::time::timeout(per_attempt_deadline, ...)` and short-circuit the retry loop on `overall_deadline`.
- Push `per_attempt_deadline` down to `tonic::transport::Endpoint::connect_timeout`/`Endpoint::timeout` and apply `keep_alive_while_idle(true)` plus a 30s HTTP/2 keepalive interval, on both the built-in plaintext path and the built-in TLS connector.
- Apply jittered exponential backoff (full-jitter, capped at 5s) between attempts whose last error was `Unavailable`, `DeadlineExceeded`, or a transport-layer failure. FAILED_PRECONDITION-with-hint redirects do not back off.

310 of 323 new or added lines in 5 files covered. (95.98%)

3 existing lines in 1 file now uncovered.

6827 of 7091 relevant lines covered (96.28%)

78393.22 hits per line

Uncovered Changes

Lines Coverage ∆ File
8
92.22
3.33% crates/tsoracle-client/src/retry.rs
5
95.1
crates/tsoracle-client/src/retry_policy.rs

Coverage Regressions

Lines Coverage ∆ File
3
94.63
-0.85% crates/tsoracle-client/src/driver.rs
Jobs
ID Job ID Ran Files Coverage
1 26297664062.1 22 May 2026 03:51PM UTC 52
96.28
GitHub Action Run
Source Files on build 26297664062
  • Tree
  • List 52
  • Changed 5
  • Source Changed 4
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26297664062
  • 020eafa5 on github
  • Prev Build on main (#26297617366)
  • Next Build on main (#26298269392)
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