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

hyperledger-labs / fabric-smart-client / 40498207671
92%

Build:
DEFAULT BRANCH: main
Ran 27 Oct 2026 11:45AM 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:42AM UTC coverage: 91.411% (+0.008%) from 91.403%
40498207671

push

github

web-flow
fix(storage): keep every Postgres host when TLS is enabled (#2276)

With the Postgres tls block enabled, createTLSConnConfig reset the Fallbacks that pgx builds from the dataSource, so only the first host of a multi-host dataSource was ever tried. A node configured with postgres://u:p@pg-a:5432,pg-b:5432/db?target_session_attrs=read-write could not fail over to pg-b.

createTLSConnConfig now builds the connection attempts for every host, in order. Each host gets the attempts its ssl_mode requires: prefer tries TLS then plaintext, allow tries plaintext then TLS, as pgx does for a dataSource sslmode. Every TLS attempt has the verification settings and credentials of the mode, and verifies against its own host name unless server_name is set. A unix-socket host gets one plaintext attempt, as in pgx and libpq. target_session_attrs and per-host ports are kept. The tlsFallback and plaintextFallback helpers are removed.

TestCreateTLSConnConfigMultiHost checks the attempts for every ssl_mode, including each attempt's verification level and credentials. TestTLSConnConfigConnectsToSecondHost refuses connections on the first host and checks that the second host is dialed.

docs/configuration.md describes how the tls block handles a multi-host dataSource.

Fixes #2269

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

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

6 existing lines in 3 files now uncovered.

30099 of 32927 relevant lines covered (91.41%)

1247.54 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
92.61
-1.14% platform/fabric/core/generic/ordering/bft.go
2
91.95
-1.34% platform/view/services/metrics/prometheus/provider.go
2
82.98
-4.26% platform/view/services/storage/driver/sql/sqlite/pkey.go
Jobs
ID Job ID Ran Files Coverage
1 itest-fabric-events - 40498207671.1 27 Oct 2026 11:47AM UTC 452
29.6
GitHub Action Run
2 utest-extensions - 40498207671.2 27 Oct 2026 11:45AM UTC 8
52.84
GitHub Action Run
3 itest-fabricx-faultrecovery - 40498207671.3 27 Oct 2026 11:49AM UTC 479
28.83
GitHub Action Run
4 itest-fabricx-configupdate - 40498207671.4 27 Oct 2026 11:47AM UTC 479
29.43
GitHub Action Run
5 itest-fsc-signedpingpong - 40498207671.5 27 Oct 2026 11:46AM UTC 247
32.45
GitHub Action Run
6 itest-fsc-pingpong - 40498207671.6 27 Oct 2026 11:47AM UTC 252
35.18
GitHub Action Run
7 utest-postgres - 40498207671.7 27 Oct 2026 11:47AM UTC 487
10.59
GitHub Action Run
8 itest-fabric-stoprestart - 40498207671.8 27 Oct 2026 11:47AM UTC 447
32.18
GitHub Action Run
9 itest-fabric-atsa - 40498207671.9 27 Oct 2026 11:49AM UTC 447
45.02
GitHub Action Run
10 itest-fabric-runtimeconfig - 40498207671.10 27 Oct 2026 11:47AM UTC 457
39.81
GitHub Action Run
11 itest-fabricx-simple - 40498207671.11 27 Oct 2026 11:45AM UTC 479
28.88
GitHub Action Run
12 itest-fabricx-iou - 40498207671.12 27 Oct 2026 11:45AM UTC 479
30.18
GitHub Action Run
13 itest-fabricx-atsa - 40498207671.13 27 Oct 2026 11:45AM UTC 479
31.59
GitHub Action Run
14 itest-fabric-configupdate - 40498207671.14 27 Oct 2026 11:47AM UTC 457
39.51
GitHub Action Run
15 itest-fabric-iouhsm - 40498207671.15 27 Oct 2026 11:49AM UTC 457
40.85
GitHub Action Run
16 itest-fabric-atsachaincode - 40498207671.16 27 Oct 2026 11:46AM UTC 452
31.43
GitHub Action Run
17 itest-fabric-iou - 40498207671.17 27 Oct 2026 11:50AM UTC 457
41.6
GitHub Action Run
18 itest-fabricx-deployment - 40498207671.18 27 Oct 2026 11:45AM UTC 479
29.29
GitHub Action Run
19 itest-fabric-iou-libp2p - 40498207671.19 27 Oct 2026 11:47AM UTC 457
37.15
GitHub Action Run
20 itest-fabric-faultrecovery - 40498207671.20 27 Oct 2026 11:52AM UTC 447
40.18
GitHub Action Run
21 itest-fabricx-multiendorsement - 40498207671.21 27 Oct 2026 11:45AM UTC 479
29.41
GitHub Action Run
22 utest-root - 40498207671.22 27 Oct 2026 11:48AM UTC 487
89.58
GitHub Action Run
23 itest-fabric-twonets - 40498207671.23 27 Oct 2026 11:47AM UTC 447
30.32
GitHub Action Run
24 itest-fsc-stoprestart - 40498207671.24 27 Oct 2026 11:47AM UTC 248
34.21
GitHub Action Run
Source Files on build 40498207671
  • Tree
  • List 496
  • Changed 38
  • Source Changed 1
  • Coverage Changed 38
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #40498207671
  • 17f56192 on github
  • Prev Build on main (#40493051143)
  • Next Build on main (#40498463864)
  • 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