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

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

Build:
DEFAULT BRANCH: main
Ran 29 Sep 2026 08:34AM UTC
Jobs 22
Files 503
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

29 Sep 2026 08:32AM UTC coverage: 86.521% (+0.03%) from 86.49%
36543371693

push

github

web-flow
fix(integration): guard unguarded X(...)[0] indexing in the nwo test harness (#1923)

Several call sites read the first element of a platform/peer/org lookup
without checking that the collection was non-empty, or type-asserted a
platform without checking the assertion. On an unexpected topology (e.g.
a peer org with no peers, or no fabric/fsc platform registered) these
panicked with a generic "index out of range" or interface-conversion
message instead of a clear test failure explaining what was expected.

Guard each site with the gomega.Expect(...).To(gomega.HaveLen(1)) /
ok-checked type-assertion idiom already used in
integration/fabric/configupdate/configupdate.go, so a violated
invariant fails the spec with a descriptive message:

- integration/integration.go: ViewCmd's fsc platform lookup
- integration/fabric/runtimeconfig/commands.go: InjectAll's fabric
  platform lookup
- integration/nwo/fabric/platform.go: UserByOrg, UsersByOrg,
  InvokeChaincode and ConnectionProfile's peer/org lookups
- integration/nwo/monitoring/monitoring/monitoring.go: fscScrapes and
  fscCryptoDir's fsc platform lookup

Document when each guarded function fails the test, and add unit tests
exercising both the happy path and the guard panics in platform.go and
monitoring.go. Tests use only testify/require in their bodies; a
package-level TestMain registers gomega's fail handler to panic
(mirroring integration.go's Ginkgo setup) so the guarded gomega.Expect
calls raise a catchable panic under go test.

Fixes #1918

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

27833 of 32169 relevant lines covered (86.52%)

2326.43 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
96.72
-3.28% platform/common/utils/lazy/provider.go
2
76.83
-0.61% platform/fabric/core/generic/msp/idemix/provider.go
Jobs
ID Job ID Ran Files Coverage
1 itest-fabric-configupdate - 36543371693.1 29 Sep 2026 08:37AM UTC 459
38.8
GitHub Action Run
2 utest-extensions - 36543371693.2 29 Sep 2026 08:35AM UTC 8
52.57
GitHub Action Run
3 itest-fabric-twonets - 36543371693.3 29 Sep 2026 08:36AM UTC 449
29.22
GitHub Action Run
4 itest-fabric-iouhsm - 36543371693.4 29 Sep 2026 08:37AM UTC 459
39.71
GitHub Action Run
5 itest-fabric-iou-libp2p - 36543371693.5 29 Sep 2026 08:38AM UTC 459
36.52
GitHub Action Run
6 itest-fabricx-deployment - 36543371693.6 29 Sep 2026 08:35AM UTC 481
28.32
GitHub Action Run
7 itest-fsc-pingpong - 36543371693.7 29 Sep 2026 08:37AM UTC 245
34.6
GitHub Action Run
8 itest-fabricx-multiendorsement - 36543371693.8 29 Sep 2026 08:35AM UTC 481
28.4
GitHub Action Run
9 utest-postgres - 36543371693.9 29 Sep 2026 08:36AM UTC 494
9.72
GitHub Action Run
10 itest-fabric-runtimeconfig - 36543371693.10 29 Sep 2026 08:36AM UTC 459
38.81
GitHub Action Run
11 itest-fabricx-configupdate - 36543371693.11 29 Sep 2026 08:36AM UTC 481
28.35
GitHub Action Run
12 itest-fsc-signedpingpong - 36543371693.12 29 Sep 2026 08:35AM UTC 240
31.54
GitHub Action Run
13 itest-fabric-atsa - 36543371693.13 29 Sep 2026 08:38AM UTC 449
43.59
GitHub Action Run
14 itest-fabricx-atsa - 36543371693.14 29 Sep 2026 08:35AM UTC 481
30.52
GitHub Action Run
15 utest-root - 36543371693.15 29 Sep 2026 08:37AM UTC 494
83.49
GitHub Action Run
16 itest-fabricx-simple - 36543371693.16 29 Sep 2026 08:34AM UTC 481
27.78
GitHub Action Run
17 itest-fabric-iou - 36543371693.17 29 Sep 2026 08:40AM UTC 459
40.35
GitHub Action Run
18 itest-fabricx-iou - 36543371693.18 29 Sep 2026 08:35AM UTC 481
29.19
GitHub Action Run
19 itest-fabric-stoprestart - 36543371693.19 29 Sep 2026 08:37AM UTC 449
31.21
GitHub Action Run
20 itest-fabric-events - 36543371693.20 29 Sep 2026 08:37AM UTC 454
29.01
GitHub Action Run
21 itest-fsc-stoprestart - 36543371693.21 29 Sep 2026 08:37AM UTC 241
33.45
GitHub Action Run
22 itest-fabric-atsachaincode - 36543371693.22 29 Sep 2026 08:35AM UTC 454
30.89
GitHub Action Run
Source Files on build 36543371693
  • Tree
  • List 503
  • Changed 29
  • Source Changed 0
  • Coverage Changed 29
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #36543371693
  • d63e60d7 on github
  • Prev Build on main (#36541913588)
  • Next Build on main (#36548491697)
  • 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