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

prisma-risk / tsoracle / 26349374607
95%

Build:
DEFAULT BRANCH: main
Ran 24 May 2026 02:16AM UTC
Jobs 1
Files 74
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

24 May 2026 02:12AM UTC coverage: 94.691% (-0.03%) from 94.721%
26349374607

push

github

web-flow
fix(client): preserve status on stale-epoch hint so it surfaces NOT_LEADER (#237) (#270)

The retry loop's `StaleLeaderHint` arm bumped `attempt_index` and continued
but never assigned `last_err`. When the worklist then emptied with only
stale-epoch redirects (no Ok, no recorded error), `issue_rpc` returned
`last_err.unwrap_or(ClientError::NoReachableEndpoints)` — so the caller saw
`NoReachableEndpoints` for what was actually a stale-epoch `NOT_LEADER`.
That is common during epoch transitions and mixed-version clusters, and it
misleads callers: the network was fine, the contacted peer just pointed at
an out-of-date leader.

Thread the originating `FAILED_PRECONDITION` status through
`AttemptOutcome::StaleLeaderHint(tonic::Status)` and record it as `last_err`
before continuing. The arm still keeps the cache and skips backoff. A new
test drives the real `issue_rpc` loop against a loopback peer that only ever
returns a strictly lower-epoch hint and asserts the surfaced error is
`Rpc(FAILED_PRECONDITION)`, not `NoReachableEndpoints`.

44 of 53 new or added lines in 1 file covered. (83.02%)

1 existing line in 1 file now uncovered.

10433 of 11018 relevant lines covered (94.69%)

556209.66 hits per line

Uncovered Changes

Lines Coverage ∆ File
9
86.27
0.24% crates/tsoracle-client/src/retry.rs

Coverage Regressions

Lines Coverage ∆ File
1
86.27
0.24% crates/tsoracle-client/src/retry.rs
Jobs
ID Job ID Ran Files Coverage
1 26349374607.1 24 May 2026 02:16AM UTC 74
94.69
GitHub Action Run
Source Files on build 26349374607
  • Tree
  • List 74
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26349374607
  • 902270bf on github
  • Prev Build on main (#26349240286)
  • Next Build on main (#26349602163)
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