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

liran-funaro / fabric-x-committer / 29742436279
92%

Build:
DEFAULT BRANCH: main
Ran 20 Jul 2026 12:34PM UTC
Jobs 3
Files 129
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

20 Jul 2026 11:53AM UTC coverage: 91.691% (-0.02%) from 91.711%
29742436279

push

github

web-flow
[retry] Support unlimited retries via max-elapsed-time (#684)

#### Type of change

- Improvement

#### Description

- Make `retry.Profile.MaxElapsedTime` a `*time.Duration` so an operator
can request unlimited retries via `max-elapsed-time: 0`. This enables
dynamic scaling of pre-configured instances: the coordinator/sidecar
keep reconnecting to instances that are stopped/started at runtime
instead of giving up after the default 15m budget.

#### Changes

- Semantics: `nil` (unset) → default 15m (unchanged); `0` → unlimited;
positive → that budget. A `validate:"omitempty,gte=0"` tag rejects
negative values at config load.
- Unlimited retries are provided by the backoff/`Sustain` layer
(`WithMaxElapsedTime(0)`). The gRPC retry policy has no unlimited
option, so it stays intentionally bounded at `defaultGrpcMaxAttempts`
and relies on `Sustain` to re-establish the connection (service
reconnection only).
- Rewrite `connection.CalcMaxAttempts` as a closed-form formula instead
of a loop (behavior-preserving; validated by the unchanged existing test
vectors).
- Document the dynamic-scaling retry-budget guidance and the `0 =
unlimited` option in the deployment guide and sample configs.

#### Related issues

- Resolves #679

---------

Signed-off-by: Liran Funaro <liran.funaro@gmail.com>

26 of 26 new or added lines in 3 files covered. (100.0%)

64 existing lines in 9 files now uncovered.

10462 of 11410 relevant lines covered (91.69%)

43113.6 hits per line

Coverage Regressions

Lines Coverage ∆ File
28
87.33
0.0% utils/connection/client.go
10
79.22
-0.97% service/sidecar/sidecar.go
8
86.89
-1.64% service/vc/database.go
5
72.22
0.0% loadgen/workload/config.go
4
83.78
-1.4% loadgen/workload/tx_builder.go
4
95.65
-4.35% service/verifier/verifier_server.go
2
94.74
-5.26% utils/dbconn/database_connection.go
2
85.76
-0.68% service/query/batcher.go
1
97.5
2.5% mock/coordinator.go
Jobs
ID Job ID Ran Files Coverage
1 db-test - 29742436279.1 20 Jul 2026 12:36PM UTC 129
79.85
GitHub Action Run
2 unit-test - 29742436279.2 20 Jul 2026 12:36PM UTC 93
83.72
GitHub Action Run
3 core-db-test - 29742436279.3 20 Jul 2026 12:34PM UTC 100
45.27
GitHub Action Run
Source Files on build 29742436279
  • Tree
  • List 129
  • Changed 20
  • Source Changed 0
  • Coverage Changed 20
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 1806737c on github
  • Prev Build on main (#29742359213)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc