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

prisma-risk / tsoracle / 26416857181
95%

Build:
DEFAULT BRANCH: main
Ran 25 May 2026 07:49PM UTC
Jobs 1
Files 76
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 07:38PM UTC coverage: 96.058% (-0.05%) from 96.111%
26416857181

push

github

web-flow
fix(client): bound leader-hint redirects with an absolute cross-pass cap (#441)

The per-pass MAX_LEADER_REDIRECTS cap resets every re-poll pass, and a
cap hit is treated as an in-progress leadership transfer that rides out
across further passes. Since leader-hint redirects are not charged
against max_attempts (issue #340), the only whole-call ceiling on
attacker-directed outbound dials was overall_deadline. A peer that
returns a fresh, reachable hint on every dial could therefore churn far
more than MAX_LEADER_REDIRECTS connections in one issue_rpc call,
bounded only by the (operator-chosen) deadline.

Add a deadline-independent backstop: a persistent total_redirects
counter, capped at MAX_TOTAL_LEADER_REDIRECTS (MAX_LEADER_REDIRECTS * 4
= 64). Unlike the per-pass cap, hitting the absolute cap is terminal -
it surfaces a FAILED_PRECONDITION and stops rather than riding out. The
counter charges only actionable hint pivots, so a genuinely-electing
cluster (which signals via NoLeaderYet and consumes no redirect budget)
still rides out for the full deadline, and a real failover settles far
below the cap.

Closes #440

31 of 37 new or added lines in 1 file covered. (83.78%)

2 existing lines in 1 file now uncovered.

11161 of 11619 relevant lines covered (96.06%)

459246.46 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
92.43
-0.66% crates/tsoracle-client/src/retry.rs

Coverage Regressions

Lines Coverage ∆ File
2
92.43
-0.66% crates/tsoracle-client/src/retry.rs
Jobs
ID Job ID Ran Files Coverage
1 26416857181.1 25 May 2026 07:49PM UTC 76
96.06
GitHub Action Run
Source Files on build 26416857181
  • Tree
  • List 76
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26416857181
  • e7ff515e on github
  • Prev Build on main (#26416850367)
  • Next Build on main (#26417443842)
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