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

hyperledger-labs / fabric-smart-client / 33733870469
86%

Build:
DEFAULT BRANCH: main
Ran 03 Sep 2026 08:34AM UTC
Jobs 19
Files 514
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

03 Sep 2026 08:32AM UTC coverage: 84.707% (+0.3%) from 84.43%
33733870469

push

github

web-flow
test(delivery): cover the delivery package and fix Stop (#1706)

platform/fabric/core/generic/delivery sat at 17.7% of statements. Add unit tests
for Delivery's lifecycle, Service's scan entry points and the deliver client
helpers -- roughly 1,300 lines behind one set of configurable doubles in
helpers_test.go -- taking the package to 93.4%.

Writing them turned up three bugs. Stop closed the stop channel unguarded, so a
second call panicked; it is now guarded by a sync.Once. NewService dereferenced a
nil channelConfig; it now rejects it. And Stop published its cause by sending on
the unbuffered stop channel, which untilStop, readBlocks and runReceiver all
read, so only one of them observed the cause and Run could return nil for a
shutdown that had one -- the lifecycle tests flaked about one run in ten. stop is
now a signal channel that is only ever closed, with the cause in an atomic
written before the close. That also removes a latent deadlock: with no reader
left the send blocked forever, wedging every later Stop caller behind the Once.

With shutdown deterministic the tests stop guessing at timing -- both time.Sleep
calls are gone and the subtests assert the reason for the stop.

Document the package per docs/agents/conventions.md: add the package comment it
never had, keep implementation detail out of the exported comments, and adopt
Godoc links.

Co-authored-by: Shashank <yshashank959@gmail.com>
Signed-off-by: Shashank <yshashank959@gmail.com>
Signed-off-by: Marcus Brandenburger <bur@zurich.ibm.com>

20 of 20 new or added lines in 2 files covered. (100.0%)

12 existing lines in 5 files now uncovered.

31334 of 36991 relevant lines covered (84.71%)

3307.97 hits per line

Coverage Regressions

Lines Coverage ∆ File
3
91.96
0.0% platform/view/services/comm/p2p.go
3
68.4
-1.42% platform/view/services/comm/host/libp2p/host.go
2
87.91
-1.1% platform/view/services/comm/session.go
2
91.67
-1.04% platform/fabric/core/generic/ordering/bft.go
2
54.55
-18.18% platform/view/services/storage/driver/sql/sqlite/errormapper.go
Jobs
ID Job ID Ran Files Coverage
1 itest-fabric-configupdate - 33733870469.1 03 Sep 2026 08:37AM UTC 468
39.04
GitHub Action Run
2 itest-fabric-iou - 33733870469.2 03 Sep 2026 08:41AM UTC 468
41.6
GitHub Action Run
3 itest-fabric-iouhsm - 33733870469.3 03 Sep 2026 08:41AM UTC 468
40.76
GitHub Action Run
4 itest-fabric-runtimeconfig - 33733870469.4 03 Sep 2026 08:37AM UTC 468
39.24
GitHub Action Run
5 itest-fabricx-deployment - 33733870469.5 03 Sep 2026 08:34AM UTC 485
28.92
GitHub Action Run
6 itest-fabric-atsachaincode - 33733870469.6 03 Sep 2026 08:37AM UTC 463
31.35
GitHub Action Run
7 utest - 33733870469.7 03 Sep 2026 08:39AM UTC 505
77.83
GitHub Action Run
8 itest-fabric-atsa - 33733870469.8 03 Sep 2026 08:42AM UTC 458
44.9
GitHub Action Run
9 itest-fsc-signedpingpong - 33733870469.9 03 Sep 2026 08:35AM UTC 256
30.59
GitHub Action Run
10 itest-fsc-pingpong - 33733870469.10 03 Sep 2026 08:40AM UTC 262
33.52
GitHub Action Run
11 itest-fabricx-multiendorsement - 33733870469.11 03 Sep 2026 08:35AM UTC 485
28.91
GitHub Action Run
12 itest-fabricx-atsa - 33733870469.12 03 Sep 2026 08:34AM UTC 487
31.23
GitHub Action Run
13 itest-fabric-events - 33733870469.13 03 Sep 2026 08:37AM UTC 463
28.56
GitHub Action Run
14 itest-fabricx-simple - 33733870469.14 03 Sep 2026 08:35AM UTC 485
28.22
GitHub Action Run
15 itest-fabric-stoprestart - 33733870469.15 03 Sep 2026 08:37AM UTC 458
32.21
GitHub Action Run
16 utest-postgres - 33733870469.16 03 Sep 2026 08:36AM UTC 505
10.29
GitHub Action Run
17 itest-fabric-twonets - 33733870469.17 03 Sep 2026 08:38AM UTC 458
30.21
GitHub Action Run
18 itest-fabricx-iou - 33733870469.18 03 Sep 2026 08:34AM UTC 487
29.28
GitHub Action Run
19 itest-fsc-stoprestart - 33733870469.19 03 Sep 2026 08:37AM UTC 258
32.51
GitHub Action Run
Source Files on build 33733870469
  • Tree
  • List 514
  • Changed 38
  • Source Changed 3
  • Coverage Changed 38
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #33733870469
  • 0f7105e4 on github
  • Prev Build on main (#33638077282)
  • Next Build on main (#33736099224)
  • 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