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

hyperledger / fabric-x-committer / 29740145923
91%

Build:
DEFAULT BRANCH: main
Ran 20 Jul 2026 11:56AM 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.727% (+0.01%) from 91.716%
29740145923

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%)

18 existing lines in 7 files now uncovered.

10466 of 11410 relevant lines covered (91.73%)

43295.36 hits per line

Coverage Regressions

Lines Coverage ∆ File
6
91.94
-2.84% service/coordinator/signature_verifier_manager.go
2
93.33
-0.83% mock/coordinator.go
2
85.25
-0.82% service/sidecar/relay.go
2
92.35
-0.53% mock/orderer.go
2
95.69
-1.72% mock/vcservice.go
2
97.83
-2.17% service/verifier/verifier_server.go
2
87.43
2.19% service/vc/database.go
Jobs
ID Job ID Ran Files Coverage
1 db-test - 29740145923.1 20 Jul 2026 11:59AM UTC 129
79.97
GitHub Action Run
2 unit-test - 29740145923.2 20 Jul 2026 11:59AM UTC 93
83.58
GitHub Action Run
3 core-db-test - 29740145923.3 20 Jul 2026 11:56AM UTC 100
45.29
GitHub Action Run
Source Files on build 29740145923
  • Tree
  • List 129
  • Changed 15
  • Source Changed 0
  • Coverage Changed 15
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 1806737c on github
  • Prev Build on main (#29732760094)
  • Next Build on main (#29747335649)
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