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

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

Build:
DEFAULT BRANCH: main
Ran 27 Oct 2026 11:47AM UTC
Jobs 24
Files 496
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

27 Oct 2026 11:44AM UTC coverage: 91.391% (-0.02%) from 91.411%
40498463864

push

github

web-flow
fix(storage): map a Postgres connect timeout to a lost connection (#2277)

A Postgres failover longer than committer.retries × committer.retrySleep stopped a channel's block stream when connect_timeout was set in the dataSource. pgx reports an expired connect_timeout as a *pgconn.ConnectError wrapping context.DeadlineExceeded. ErrorMapper.WrapError returned every error matching context.DeadlineExceeded unchanged, so the committer counted the attempt against its retry budget instead of retrying it as a lost connection.

WrapError now maps a failed connect to driver.ErrConnectionLost even when it ended with context.DeadlineExceeded. The connect_timeout context derives from the caller's, so pgx reports a caller deadline that expires while connecting with the same error. A caller that owns a deadline therefore checks its own context before retrying, as retryBlock does. A cancelled context stays unchanged, so shutdown is not retried. A SQLSTATE the server reports while connecting is looked up before the connect error, so a rejected password or a missing database stays unmapped and the channel degrades instead of retrying a misconfiguration forever.

TestErrorMapper_ConnectTimeout connects through database/sql to a listener that never answers. It covers connect_timeout, a two-host DSN where one host times out and the other refuses, a caller deadline, a caller cancel, and a fake server that rejects the password with 28P01.

A 53300 (too_many_connections) on connect is still returned unchanged; #2278 tracks it.

Fixes #2270

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

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

13 existing lines in 6 files now uncovered.

30095 of 32930 relevant lines covered (91.39%)

1248.19 hits per line

Coverage Regressions

Lines Coverage ∆ File
3
85.05
-1.55% platform/fabric/core/generic/events/listenermanager.go
2
94.74
-1.32% platform/view/services/comm/session.go
2
93.38
-0.63% platform/view/services/comm/p2p.go
2
87.67
-2.74% platform/fabric/core/generic/msp/idemix/cache.go
2
94.89
-0.44% platform/view/services/comm/host/websocket/ws/multiplexed_provider.go
2
94.44
-5.56% platform/common/utils/lazy/holder.go
Jobs
ID Job ID Ran Files Coverage
1 itest-fsc-pingpong - 40498463864.1 27 Oct 2026 11:49AM UTC 252
35.03
GitHub Action Run
2 itest-fabric-events - 40498463864.2 27 Oct 2026 11:50AM UTC 452
29.58
GitHub Action Run
3 itest-fabric-faultrecovery - 40498463864.3 27 Oct 2026 11:55AM UTC 447
40.2
GitHub Action Run
4 itest-fabric-iou - 40498463864.4 27 Oct 2026 11:52AM UTC 457
41.66
GitHub Action Run
5 itest-fabricx-faultrecovery - 40498463864.5 27 Oct 2026 11:50AM UTC 479
28.82
GitHub Action Run
6 itest-fabricx-configupdate - 40498463864.6 27 Oct 2026 11:48AM UTC 479
29.44
GitHub Action Run
7 itest-fsc-stoprestart - 40498463864.7 27 Oct 2026 11:48AM UTC 248
34.22
GitHub Action Run
8 utest-root - 40498463864.8 27 Oct 2026 11:50AM UTC 487
89.57
GitHub Action Run
9 itest-fabric-atsachaincode - 40498463864.9 27 Oct 2026 11:48AM UTC 452
31.43
GitHub Action Run
10 itest-fabric-stoprestart - 40498463864.10 27 Oct 2026 11:49AM UTC 447
32.19
GitHub Action Run
11 itest-fabric-iouhsm - 40498463864.11 27 Oct 2026 11:50AM UTC 457
40.86
GitHub Action Run
12 itest-fsc-signedpingpong - 40498463864.12 27 Oct 2026 11:48AM UTC 247
32.43
GitHub Action Run
13 utest-extensions - 40498463864.13 27 Oct 2026 11:47AM UTC 8
52.84
GitHub Action Run
14 itest-fabric-iou-libp2p - 40498463864.14 27 Oct 2026 11:49AM UTC 457
37.14
GitHub Action Run
15 itest-fabricx-deployment - 40498463864.15 27 Oct 2026 11:47AM UTC 479
29.38
GitHub Action Run
16 itest-fabric-configupdate - 40498463864.16 27 Oct 2026 11:49AM UTC 457
39.57
GitHub Action Run
17 itest-fabricx-multiendorsement - 40498463864.17 27 Oct 2026 11:48AM UTC 479
29.38
GitHub Action Run
18 utest-postgres - 40498463864.18 27 Oct 2026 11:49AM UTC 487
10.57
GitHub Action Run
19 itest-fabricx-atsa - 40498463864.19 27 Oct 2026 11:47AM UTC 479
31.56
GitHub Action Run
20 itest-fabric-atsa - 40498463864.20 27 Oct 2026 11:50AM UTC 447
44.83
GitHub Action Run
21 itest-fabric-runtimeconfig - 40498463864.21 27 Oct 2026 11:48AM UTC 457
39.82
GitHub Action Run
22 itest-fabricx-iou - 40498463864.22 27 Oct 2026 11:47AM UTC 479
30.22
GitHub Action Run
23 itest-fabric-twonets - 40498463864.23 27 Oct 2026 11:49AM UTC 447
30.32
GitHub Action Run
24 itest-fabricx-simple - 40498463864.24 27 Oct 2026 11:47AM UTC 479
28.87
GitHub Action Run
Source Files on build 40498463864
  • Tree
  • List 496
  • Changed 45
  • Source Changed 1
  • Coverage Changed 45
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #40498463864
  • a918a7da on github
  • Prev Build on main (#40498207671)
  • Next Build on main (#40507528697)
  • 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