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

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

Build:
DEFAULT BRANCH: main
Ran 29 Sep 2026 11:02PM 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 11:00PM UTC coverage: 88.042% (+0.3%) from 87.757%
36642817344

push

github

web-flow
fix(fabricx)!: validate envelopes in the rwset loader and cover it with tests (#1951)

Add unit tests for platform/fabricx/core/transaction/rwset, which had
none. They cover NewLoader, AddHandlerProvider, GetRWSetFromEvn,
GetRWSetFromETx, GetInspectingRWSetFromEvn, anyKeyContains and the
processedTransaction accessors. Fixtures use a real fabricx vault, so
envelopes carry real serialized RWSets, and malformed envelopes are
exercised at each parse depth. The package reaches 100% statement
coverage.

The tests surfaced three defects in the loader, fixed here:
- GetRWSetFromEvn dropped the LoadEnvelope error; it is now wrapped.
- GetInspectingRWSetFromEvn checked neither the txID nor the channel of
  the envelope and reported the caller's txID. Both envelope methods now
  share one check: the header type must be HeaderType_MESSAGE, and the
  channel header must carry the requested txID and the loader's channel.
- AddHandlerProvider stored handlers that nothing consulted. The loader
  decodes fabricx envelopes itself, so AddHandlerProvider is a no-op.

A related defect in the vault marshaller, which decodes non-transaction
bytes as an empty RWSet, is tracked in #1950.

BREAKING CHANGE: the fabricx rwset.Loader rejects envelopes whose header
type is not HeaderType_MESSAGE, or whose channel header names another
channel (both envelope methods) or another txID
(GetInspectingRWSetFromEvn). AddHandlerProvider no longer returns an
error for a duplicate registration, and the handler provider is never
invoked.

Fixes #1828

Signed-off-by: Marcus Brandenburger <bur@zurich.ibm.com>
Co-authored-by: Said Altury <109276519+SaidAltury-ibm@users.noreply.github.com>

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

18 existing lines in 7 files now uncovered.

28353 of 32204 relevant lines covered (88.04%)

2331.16 hits per line

Coverage Regressions

Lines Coverage ∆ File
5
91.42
-1.32% platform/view/services/comm/p2p.go
4
85.04
-0.55% platform/view/services/comm/host/websocket/ws/multiplexed_provider.go
3
45.45
-27.27% platform/view/services/storage/driver/sql/postgres/errormapper.go
2
85.14
-2.7% platform/fabric/core/generic/msp/idemix/cache.go
2
76.83
-0.61% platform/fabric/core/generic/msp/idemix/provider.go
1
98.04
-1.96% platform/common/utils/cache/timeout.go
1
92.16
-0.21% platform/fabric/core/generic/committer/committer.go
Jobs
ID Job ID Ran Files Coverage
1 utest-extensions - 36642817344.1 29 Sep 2026 11:02PM UTC 8
52.57
GitHub Action Run
2 itest-fsc-stoprestart - 36642817344.2 29 Sep 2026 11:04PM UTC 241
33.41
GitHub Action Run
3 itest-fabric-iou - 36642817344.3 29 Sep 2026 11:07PM UTC 459
40.31
GitHub Action Run
4 itest-fabricx-atsa - 36642817344.4 29 Sep 2026 11:03PM UTC 481
30.56
GitHub Action Run
5 itest-fabricx-configupdate - 36642817344.5 29 Sep 2026 11:04PM UTC 481
28.32
GitHub Action Run
6 itest-fabric-runtimeconfig - 36642817344.6 29 Sep 2026 11:05PM UTC 459
38.87
GitHub Action Run
7 itest-fabricx-deployment - 36642817344.7 29 Sep 2026 11:03PM UTC 481
28.29
GitHub Action Run
8 itest-fabric-twonets - 36642817344.8 29 Sep 2026 11:04PM UTC 449
29.17
GitHub Action Run
9 itest-fsc-pingpong - 36642817344.9 29 Sep 2026 11:05PM UTC 245
34.62
GitHub Action Run
10 itest-fabric-configupdate - 36642817344.10 29 Sep 2026 11:05PM UTC 459
38.69
GitHub Action Run
11 itest-fsc-signedpingpong - 36642817344.11 29 Sep 2026 11:04PM UTC 240
31.51
GitHub Action Run
12 itest-fabricx-simple - 36642817344.12 29 Sep 2026 11:02PM UTC 481
27.74
GitHub Action Run
13 itest-fabricx-iou - 36642817344.13 29 Sep 2026 11:02PM UTC 481
29.15
GitHub Action Run
14 itest-fabric-atsachaincode - 36642817344.14 29 Sep 2026 11:04PM UTC 454
30.84
GitHub Action Run
15 itest-fabric-stoprestart - 36642817344.15 29 Sep 2026 11:05PM UTC 449
31.17
GitHub Action Run
16 utest-postgres - 36642817344.16 29 Sep 2026 11:04PM UTC 494
9.72
GitHub Action Run
17 itest-fabric-iou-libp2p - 36642817344.17 29 Sep 2026 11:05PM UTC 459
36.48
GitHub Action Run
18 itest-fabric-events - 36642817344.18 29 Sep 2026 11:05PM UTC 454
28.96
GitHub Action Run
19 itest-fabricx-multiendorsement - 36642817344.19 29 Sep 2026 11:03PM UTC 481
28.34
GitHub Action Run
20 utest-root - 36642817344.20 29 Sep 2026 11:06PM UTC 494
85.59
GitHub Action Run
21 itest-fabric-iouhsm - 36642817344.21 29 Sep 2026 11:06PM UTC 459
39.63
GitHub Action Run
22 itest-fabric-atsa - 36642817344.22 29 Sep 2026 11:06PM UTC 449
43.54
GitHub Action Run
Source Files on build 36642817344
  • Tree
  • List 503
  • Changed 32
  • Source Changed 1
  • Coverage Changed 32
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #36642817344
  • db9a23d3 on github
  • Prev Build on main (#36641285619)
  • Next Build on main (#36685234904)
  • 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