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

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

Build:
DEFAULT BRANCH: main
Ran 27 Oct 2026 01:21PM 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 01:19PM UTC coverage: 91.408% (+0.003%) from 91.405%
40511039735

push

github

web-flow
test(integration): cover Postgres failover with a multi-host DSN and document it (#2279)

Add the spec "fails over to a promoted Postgres standby" to the long Postgres outage Describe of the Fabric faultrecovery suite, which gives bob a commit retry budget of 1 x 1s. The spec gives
bob a streaming-replication standby of his database and a two-host dataSource with target_session_attrs=read-write and connect_timeout. It waits until the standby has replayed the primary's WAL,
kills the primary, and promotes the standby. It checks that bob retries the block beyond the budget while the database is down, that the transactions delivered during the outage become Valid, and that no commit fails.

The helpers in integration/fabric/common/faultrecovery/postgres.go start, wait for, kill and promote the standby, and rewrite a stopped node's dataSource. They drive Postgres through the docker CLI, remove the standby and its volume when the spec ends, and show the standby's log if it does not start.

Document the failover in the Postgres section of docs/configuration.md: the multi-host dataSource, what target_session_attrs=read-write does, that only the committer retries a lost connection
and does not count it against committer.retries, why connect_timeout should be set, how the tls block verifies each host, and that the data_source metric label names the first host. The section
names the spec that covers the commit path and the unit tests that cover the tls block, and says what the spec does not exercise. A warning says that the failover needs synchronous replication, because with asynchronous replication the node silently misses commits the old primary had not streamed, a case the spec does not cover.

Point the sql driver test hint at the existing Postgres test file, and list the failover helpers in docs/agents/integration-tests.md.

Fixes #2177

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

30109 of 32939 relevant lines covered (91.41%)

1254.64 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
94.89
0.0% platform/view/services/comm/host/websocket/ws/multiplexed_provider.go
1
87.5
-2.08% platform/fabric/events.go
Jobs
ID Job ID Ran Files Coverage
1 itest-fsc-signedpingpong - 40511039735.1 27 Oct 2026 01:23PM UTC 247
32.4
GitHub Action Run
2 utest-extensions - 40511039735.2 27 Oct 2026 01:22PM UTC 8
52.84
GitHub Action Run
3 itest-fabricx-simple - 40511039735.3 27 Oct 2026 01:29PM UTC 479
28.74
GitHub Action Run
4 itest-fabric-faultrecovery - 40511039735.4 27 Oct 2026 01:30PM UTC 447
40.13
GitHub Action Run
5 itest-fsc-stoprestart - 40511039735.5 27 Oct 2026 01:24PM UTC 248
34.19
GitHub Action Run
6 itest-fabric-iou-libp2p - 40511039735.6 27 Oct 2026 01:23PM UTC 457
37.15
GitHub Action Run
7 itest-fabric-iou - 40511039735.7 27 Oct 2026 01:26PM UTC 457
41.56
GitHub Action Run
8 itest-fabric-stoprestart - 40511039735.8 27 Oct 2026 01:24PM UTC 447
32.16
GitHub Action Run
9 itest-fsc-pingpong - 40511039735.9 27 Oct 2026 01:24PM UTC 252
35.2
GitHub Action Run
10 itest-fabric-atsa - 40511039735.10 27 Oct 2026 01:26PM UTC 447
44.73
GitHub Action Run
11 utest-postgres - 40511039735.11 27 Oct 2026 01:24PM UTC 487
10.59
GitHub Action Run
12 itest-fabricx-configupdate - 40511039735.12 27 Oct 2026 01:23PM UTC 479
29.37
GitHub Action Run
13 itest-fabric-iouhsm - 40511039735.13 27 Oct 2026 01:25PM UTC 457
40.9
GitHub Action Run
14 itest-fabricx-deployment - 40511039735.14 27 Oct 2026 01:21PM UTC 479
29.36
GitHub Action Run
15 itest-fabricx-multiendorsement - 40511039735.15 27 Oct 2026 01:22PM UTC 479
29.41
GitHub Action Run
16 itest-fabric-configupdate - 40511039735.16 27 Oct 2026 01:23PM UTC 457
39.49
GitHub Action Run
17 itest-fabric-events - 40511039735.17 27 Oct 2026 01:24PM UTC 452
29.57
GitHub Action Run
18 itest-fabricx-iou - 40511039735.18 27 Oct 2026 01:22PM UTC 479
30.2
GitHub Action Run
19 utest-root - 40511039735.19 27 Oct 2026 01:25PM UTC 487
89.59
GitHub Action Run
20 itest-fabricx-faultrecovery - 40511039735.20 27 Oct 2026 01:25PM UTC 479
28.82
GitHub Action Run
21 itest-fabricx-atsa - 40511039735.21 27 Oct 2026 01:21PM UTC 479
31.73
GitHub Action Run
22 itest-fabric-runtimeconfig - 40511039735.22 27 Oct 2026 01:24PM UTC 457
39.75
GitHub Action Run
23 itest-fabric-twonets - 40511039735.23 27 Oct 2026 01:24PM UTC 447
30.33
GitHub Action Run
24 itest-fabric-atsachaincode - 40511039735.24 27 Oct 2026 01:23PM UTC 452
31.42
GitHub Action Run
Source Files on build 40511039735
  • Tree
  • List 496
  • Changed 31
  • Source Changed 0
  • Coverage Changed 31
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #40511039735
  • e7052123 on github
  • Prev Build on main (#40507528697)
  • Next Build on main (#40512513714)
  • 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