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

hyperledger-labs / fabric-smart-client / 36700470709
91%

Build:
DEFAULT BRANCH: main
Ran 30 Sep 2026 10:09AM UTC
Jobs 22
Files 501
Run time 3min
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

30 Sep 2026 10:07AM UTC coverage: 89.142% (+0.3%) from 88.83%
36700470709

push

github

web-flow
fix(fabricx): keep vault reads, appends and equality consistent (#1960)

The FabricX vault keeps no local state, so a defect in how it records
reads or pins namespace versions reaches the committer as a stale or
malformed transaction rather than as a local error.

GetState replaced the recorded read version when a key was read again
after a commit had changed it. The caller had already acted on the
earlier value, yet IsValid then accepted the simulation. A re-read at a
different version now returns an error and the original read version is
kept.

Append stopped at the first invalid namespace ID and left the namespaces
before it in the destination RWSet without a pinned version, so the next
Bytes() failed. Append now validates every namespace ID in the payload
before it changes the destination, so a failed AppendRWSet leaves the
RWSet unchanged. A namespace that has only reads is validated as well.

Equals ignored the pinned namespace versions, which are serialized as
NsVersion and covered by the endorsement digest. It now also compares
the version of every namespace with reads or writes.

Marshal rejected a nil namespace version only for namespaces with
writes, and encoded a read-only namespace with a nil version as version
0. Both paths now share one lookup that rejects a missing or nil
version.

Cleanups in the same package:
- Remove the unused rwSetWrapper.qe and queryExecutor.ctx fields and the
  NewQueryExecutor error checks that could never fire.
- Replace versionEqual with bytes.Equal.
- Drop the empty-key-set check in IsValid, which could never be true.
- Pass txIDs straight to GetTransactionStatuses in Statuses.
- Build Namespaces with slices.Collect over a set.

Each fix has a regression test that fails without it. New tests also
cover the paths that had none: IsValid outcomes, namespace pin failures,
GetState/GetDirectState/GetReadAt misses and errors, the GetStateMetadata
field-mapping fallback, Equals, malformed and invalid payloads, vers... (continued)

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

16 existing lines in 8 files now uncovered.

28628 of 32115 relevant lines covered (89.14%)

2724.22 hits per line

Coverage Regressions

Lines Coverage ∆ File
3
77.11
-1.49% platform/view/services/comm/host/libp2p/host.go
2
92.86
-1.19% platform/view/services/comm/service.go
2
88.39
-0.65% platform/view/services/comm/session.go
2
97.75
3.6% platform/fabricx/core/vault/marshal.go
2
91.95
-1.34% platform/view/services/metrics/prometheus/provider.go
2
92.35
-0.59% platform/fabric/core/generic/ordering/bft.go
2
91.75
-0.66% platform/view/services/comm/p2p.go
1
98.04
-1.96% platform/common/utils/cache/timeout.go
Jobs
ID Job ID Ran Files Coverage
1 utest-extensions - 36700470709.1 30 Sep 2026 10:09AM UTC 8
52.57
GitHub Action Run
2 itest-fabric-iouhsm - 36700470709.2 30 Sep 2026 10:13AM UTC 457
39.58
GitHub Action Run
3 itest-fabric-events - 36700470709.3 30 Sep 2026 10:12AM UTC 452
28.98
GitHub Action Run
4 itest-fabricx-configupdate - 36700470709.4 30 Sep 2026 10:11AM UTC 479
28.41
GitHub Action Run
5 itest-fabric-atsa - 36700470709.5 30 Sep 2026 10:14AM UTC 447
43.69
GitHub Action Run
6 itest-fabric-stoprestart - 36700470709.6 30 Sep 2026 10:12AM UTC 447
31.25
GitHub Action Run
7 itest-fabric-runtimeconfig - 36700470709.7 30 Sep 2026 10:12AM UTC 457
38.88
GitHub Action Run
8 itest-fabricx-simple - 36700470709.8 30 Sep 2026 10:10AM UTC 479
27.85
GitHub Action Run
9 itest-fabric-twonets - 36700470709.9 30 Sep 2026 10:11AM UTC 447
29.24
GitHub Action Run
10 utest-postgres - 36700470709.10 30 Sep 2026 10:11AM UTC 492
9.77
GitHub Action Run
11 itest-fabric-iou - 36700470709.11 30 Sep 2026 10:13AM UTC 457
40.35
GitHub Action Run
12 itest-fabric-configupdate - 36700470709.12 30 Sep 2026 10:12AM UTC 457
38.77
GitHub Action Run
13 itest-fabric-atsachaincode - 36700470709.13 30 Sep 2026 10:11AM UTC 452
30.92
GitHub Action Run
14 itest-fabricx-iou - 36700470709.14 30 Sep 2026 10:10AM UTC 479
29.27
GitHub Action Run
15 itest-fabricx-multiendorsement - 36700470709.15 30 Sep 2026 10:09AM UTC 479
28.46
GitHub Action Run
16 utest-root - 36700470709.16 30 Sep 2026 10:13AM UTC 492
86.79
GitHub Action Run
17 itest-fabric-iou-libp2p - 36700470709.17 30 Sep 2026 10:12AM UTC 457
36.48
GitHub Action Run
18 itest-fsc-signedpingpong - 36700470709.18 30 Sep 2026 10:11AM UTC 241
31.4
GitHub Action Run
19 itest-fabricx-deployment - 36700470709.19 30 Sep 2026 10:10AM UTC 479
28.41
GitHub Action Run
20 itest-fsc-pingpong - 36700470709.20 30 Sep 2026 10:12AM UTC 246
34.44
GitHub Action Run
21 itest-fabricx-atsa - 36700470709.21 30 Sep 2026 10:10AM UTC 479
30.61
GitHub Action Run
22 itest-fsc-stoprestart - 36700470709.22 30 Sep 2026 10:12AM UTC 242
33.26
GitHub Action Run
Source Files on build 36700470709
  • Tree
  • List 501
  • Changed 32
  • Source Changed 2
  • Coverage Changed 32
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #36700470709
  • aa35906e on github
  • Prev Build on main (#36699392926)
  • Next Build on main (#36702094240)
  • 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