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

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

Build:
DEFAULT BRANCH: main
Ran 07 Sep 2026 11:59AM UTC
Jobs 22
Files 500
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

07 Sep 2026 11:57AM UTC coverage: 85.355% (-0.03%) from 85.381%
34119255568

push

github

web-flow
fix(comm): stop reusing the JSON decode target in readIncoming (#1746)

Both multiplexed readIncoming loops declared a single MultiplexedMessage
outside the loop and decoded every frame into it, then handed mm.Msg — a
[]byte aliasing that struct's field — to a consumer goroutine over a
channel.

Under Go 1.26 encoding/json allocated a fresh slice for every []byte
field, so the payload a consumer held was never written again. Go 1.27
makes encoding/json/v2 the default implementation, whose []byte path goes
through AppendDecode and reuses a non-nil destination's backing array.
The next ReadJSON then overwrites bytes a consumer is still reading:

	reused target -> held payload after 2nd decode: "BBBBBBBBBB"
	fresh target  -> held payload after 2nd decode: "AAAAAAAAAA"

That is silent message corruption on the wire, not only the data race
the detector reports in TestP2PLayerTestRound,
TestSessionsMultipleMessagesTestRound and TestConnections.

Declare mm per iteration so each decode starts from a nil slice and json
allocates a payload the reader owns. This also stops a field absent from
one frame from inheriting the previous frame's value.

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

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

24 existing lines in 10 files now uncovered.

31322 of 36696 relevant lines covered (85.36%)

3303.57 hits per line

Coverage Regressions

Lines Coverage ∆ File
5
91.96
-0.6% platform/view/services/comm/p2p.go
3
77.83
-1.42% platform/view/services/comm/host/libp2p/host.go
2
97.22
-2.78% platform/common/utils/lazy/provider.go
2
90.72
-2.06% platform/view/services/comm/service.go
2
87.91
-0.55% platform/view/services/comm/session.go
2
86.21
-2.3% platform/fabric/core/generic/msp/idemix/cache.go
2
87.76
2.02% platform/view/services/comm/host/websocket/ws/multiplexed_provider.go
2
77.72
-0.56% platform/fabric/core/generic/msp/idemix/provider.go
2
92.71
-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 utest-root - 34119255568.1 07 Sep 2026 12:02PM UTC 491
78.36
GitHub Action Run
2 itest-fabric-iouhsm - 34119255568.2 07 Sep 2026 12:02PM UTC 458
40.77
GitHub Action Run
3 itest-fabricx-simple - 34119255568.3 07 Sep 2026 11:59AM UTC 478
28.84
GitHub Action Run
4 utest-extensions - 34119255568.4 07 Sep 2026 11:59AM UTC 8
54.47
GitHub Action Run
5 itest-fabric-twonets - 34119255568.5 07 Sep 2026 12:01PM UTC 448
29.83
GitHub Action Run
6 itest-fabric-iou-libp2p - 34119255568.6 07 Sep 2026 12:01PM UTC 458
37.65
GitHub Action Run
7 itest-fsc-stoprestart - 34119255568.7 07 Sep 2026 12:01PM UTC 243
33.92
GitHub Action Run
8 itest-fabric-atsa - 34119255568.8 07 Sep 2026 12:03PM UTC 448
44.81
GitHub Action Run
9 utest-postgres - 34119255568.9 07 Sep 2026 12:01PM UTC 491
10.0
GitHub Action Run
10 itest-fabric-configupdate - 34119255568.10 07 Sep 2026 12:01PM UTC 458
39.92
GitHub Action Run
11 itest-fabricx-configupdate - 34119255568.11 07 Sep 2026 12:00PM UTC 478
29.47
GitHub Action Run
12 itest-fsc-pingpong - 34119255568.12 07 Sep 2026 12:01PM UTC 247
35.02
GitHub Action Run
13 itest-fabric-stoprestart - 34119255568.13 07 Sep 2026 12:01PM UTC 448
31.86
GitHub Action Run
14 itest-fabricx-atsa - 34119255568.14 07 Sep 2026 11:59AM UTC 478
31.7
GitHub Action Run
15 itest-fabricx-deployment - 34119255568.15 07 Sep 2026 11:59AM UTC 478
29.5
GitHub Action Run
16 itest-fabric-atsachaincode - 34119255568.16 07 Sep 2026 12:01PM UTC 453
31.61
GitHub Action Run
17 itest-fabric-iou - 34119255568.17 07 Sep 2026 12:04PM UTC 458
41.52
GitHub Action Run
18 itest-fabric-runtimeconfig - 34119255568.18 07 Sep 2026 12:01PM UTC 458
40.04
GitHub Action Run
19 itest-fabricx-multiendorsement - 34119255568.19 07 Sep 2026 11:59AM UTC 478
29.53
GitHub Action Run
20 itest-fsc-signedpingpong - 34119255568.20 07 Sep 2026 12:00PM UTC 241
31.95
GitHub Action Run
21 itest-fabricx-iou - 34119255568.21 07 Sep 2026 11:59AM UTC 478
30.37
GitHub Action Run
22 itest-fabric-events - 34119255568.22 07 Sep 2026 12:02PM UTC 453
29.7
GitHub Action Run
Source Files on build 34119255568
  • Tree
  • List 500
  • Changed 37
  • Source Changed 1
  • Coverage Changed 37
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #34119255568
  • 99799c3b on github
  • Prev Build on main (#34115143621)
  • Next Build on main (#34129708560)
  • 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