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

hyperledger-labs / fabric-smart-client / 34591768758
91%

Build:
DEFAULT BRANCH: main
Ran 11 Sep 2026 11:00AM UTC
Jobs 22
Files 505
Run time 2min
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

11 Sep 2026 10:58AM UTC coverage: 85.679% (+0.002%) from 85.677%
34591768758

push

github

web-flow
refactor(fabric): simplify CFTBroadcaster retry loop, fix connection-pool leaks (#1808)

Broadcast tracked retry state through a forceConnect flag and a
connection variable reused across loop iterations, splitting a single
logical "get a connection, send, receive" step across four different
branches. Extracts the send/receive pair into a sendAndRecv helper and
lets each retry acquire its own connection up front, so the loop body
reads as one attempt per iteration instead of a state machine.

Fixes connection-pool resource leaks in getConnection: all four error
returns after a successful connSem.Acquire (no orderer configured,
client creation, broadcast-client creation, stream creation) never
released the acquired semaphore slot, and the broadcast-client-creation
failure additionally never closed the already-created client, unlike
its sibling stream-creation failure a few lines below. Each lost slot
permanently shrinks the pool, and enough connection failures would
eventually deadlock every future Broadcast call waiting on the
semaphore.

Adds regression tests: one drives poolSize consecutive failures of
each of the four getConnection failure kinds and confirms the pool
still yields poolSize semaphore slots afterward (verified against the
pre-fix code), and one covers the zero-retries case, where the old
code's uninitialized error left errors.Wrap(nil, ...) returning nil
and Broadcast silently reporting success without ever attempting to
send.

Signed-off-by: Marcus Brandenburger <bur@zurich.ibm.com>

23 of 23 new or added lines in 1 file covered. (100.0%)

4 existing lines in 2 files now uncovered.

27126 of 31660 relevant lines covered (85.68%)

2757.98 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
96.67
-3.33% platform/common/utils/lazy/provider.go
2
50.0
-20.0% platform/view/services/storage/driver/sql/sqlite/errormapper.go
Jobs
ID Job ID Ran Files Coverage
1 itest-fsc-pingpong - 34591768758.1 11 Sep 2026 11:02AM UTC 249
34.78
GitHub Action Run
2 itest-fsc-signedpingpong - 34591768758.2 11 Sep 2026 11:01AM UTC 243
31.72
GitHub Action Run
3 itest-fabric-runtimeconfig - 34591768758.3 11 Sep 2026 11:02AM UTC 461
39.05
GitHub Action Run
4 utest-root - 34591768758.4 11 Sep 2026 11:02AM UTC 496
80.77
GitHub Action Run
5 itest-fabric-iou-libp2p - 34591768758.5 11 Sep 2026 11:03AM UTC 461
36.75
GitHub Action Run
6 itest-fabric-configupdate - 34591768758.6 11 Sep 2026 11:02AM UTC 461
39.02
GitHub Action Run
7 utest-postgres - 34591768758.7 11 Sep 2026 11:02AM UTC 496
9.74
GitHub Action Run
8 itest-fabric-stoprestart - 34591768758.8 11 Sep 2026 11:01AM UTC 451
31.32
GitHub Action Run
9 itest-fabricx-iou - 34591768758.9 11 Sep 2026 11:00AM UTC 483
29.5
GitHub Action Run
10 itest-fabricx-configupdate - 34591768758.10 11 Sep 2026 11:02AM UTC 483
28.62
GitHub Action Run
11 itest-fabric-atsa - 34591768758.11 11 Sep 2026 11:03AM UTC 451
43.91
GitHub Action Run
12 itest-fabric-iou - 34591768758.12 11 Sep 2026 11:05AM UTC 461
40.61
GitHub Action Run
13 itest-fabric-iouhsm - 34591768758.13 11 Sep 2026 11:04AM UTC 461
39.88
GitHub Action Run
14 utest-extensions - 34591768758.14 11 Sep 2026 11:00AM UTC 8
53.18
GitHub Action Run
15 itest-fabricx-deployment - 34591768758.15 11 Sep 2026 11:00AM UTC 483
28.62
GitHub Action Run
16 itest-fabric-atsachaincode - 34591768758.16 11 Sep 2026 11:02AM UTC 456
31.04
GitHub Action Run
17 itest-fabricx-simple - 34591768758.17 11 Sep 2026 11:00AM UTC 483
28.05
GitHub Action Run
18 itest-fabric-events - 34591768758.18 11 Sep 2026 11:02AM UTC 456
29.13
GitHub Action Run
19 itest-fsc-stoprestart - 34591768758.19 11 Sep 2026 11:02AM UTC 245
33.61
GitHub Action Run
20 itest-fabricx-multiendorsement - 34591768758.20 11 Sep 2026 11:01AM UTC 483
28.66
GitHub Action Run
21 itest-fabric-twonets - 34591768758.21 11 Sep 2026 11:01AM UTC 451
29.3
GitHub Action Run
22 itest-fabricx-atsa - 34591768758.22 11 Sep 2026 11:01AM UTC 483
30.9
GitHub Action Run
Source Files on build 34591768758
  • Tree
  • List 505
  • Changed 27
  • Source Changed 1
  • Coverage Changed 27
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #34591768758
  • 4af21582 on github
  • Prev Build on main (#34591241011)
  • Next Build on main (#34819592491)
  • 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