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

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

Build:
DEFAULT BRANCH: main
Ran 27 Oct 2026 11:04AM UTC
Jobs 24
Files 496
Run time 1min
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

27 Oct 2026 11:01AM UTC coverage: 91.403% (-0.004%) from 91.407%
40493051143

push

github

web-flow
fix(storage): order the KVS primary key by namespace (#2273)

GetStateRangeScanIterator filters the key-value table on one namespace
and a pkey range, but the table's primary key was (pkey, ns), so a scan
read index entries for every namespace in that range. Fresh tables get
PRIMARY KEY (ns, pkey), and CreateSchema reorders an existing (pkey, ns)
key on startup, on Postgres and SQLite.

The key lookup and the reorder move from the two vault drivers into the
Postgres and SQLite storage packages, and the vault and the KVS both
call them. SQLite rebuilds the table from the caller's column
definitions, because the KVS and vault columns differ. On Postgres the
KVS reorder runs before the notifier's trigger is created, and the
reorder needs a user that owns the key-value store table.

postgres.NewKeyValueStore returns *postgres.KeyValueStore instead of
*common.KeyValueStore, and KeyValueStoreNotifier embeds it. Code that
type-asserts the store to *common.KeyValueStore must unwrap it through
the KeyValueStore field. An older node keeps working against a
reordered table, because the upsert's ON CONFLICT (ns, pkey) matches
either column order.

Fixes #2272

Signed-off-by: Ujjwal Khandelwal <ujjwal.khandelwal@yahoo.com>
Signed-off-by: Marcus Brandenburger <bur@zurich.ibm.com>

90 of 112 new or added lines in 7 files covered. (80.36%)

4 existing lines in 2 files now uncovered.

30089 of 32919 relevant lines covered (91.4%)

1247.86 hits per line

Uncovered Changes

Lines Coverage ∆ File
12
72.73
platform/view/services/storage/driver/sql/postgres/pkey.go
6
87.23
platform/view/services/storage/driver/sql/sqlite/pkey.go
2
81.82
-4.85% platform/view/services/storage/driver/sql/postgres/keyvalue.go
2
86.67
-13.33% platform/view/services/storage/driver/sql/sqlite/unversioned.go

Coverage Regressions

Lines Coverage ∆ File
2
84.0
-1.33% platform/view/services/comm/host/websocket/ws/stream.go
2
92.23
-1.04% platform/fabricx/core/membership/membership.go
Jobs
ID Job ID Ran Files Coverage
1 itest-fabric-twonets - 40493051143.1 27 Oct 2026 11:06AM UTC 447
30.34
GitHub Action Run
2 itest-fabric-faultrecovery - 40493051143.2 27 Oct 2026 11:10AM UTC 447
40.18
GitHub Action Run
3 itest-fabric-stoprestart - 40493051143.3 27 Oct 2026 11:07AM UTC 447
32.18
GitHub Action Run
4 itest-fabricx-faultrecovery - 40493051143.4 27 Oct 2026 11:07AM UTC 479
28.83
GitHub Action Run
5 itest-fabric-atsa - 40493051143.5 27 Oct 2026 11:08AM UTC 447
44.87
GitHub Action Run
6 itest-fabricx-configupdate - 40493051143.6 27 Oct 2026 11:05AM UTC 479
29.45
GitHub Action Run
7 itest-fsc-stoprestart - 40493051143.7 27 Oct 2026 11:06AM UTC 248
34.25
GitHub Action Run
8 utest-extensions - 40493051143.8 27 Oct 2026 11:04AM UTC 8
52.84
GitHub Action Run
9 itest-fabric-runtimeconfig - 40493051143.9 27 Oct 2026 11:06AM UTC 457
39.75
GitHub Action Run
10 utest-postgres - 40493051143.10 27 Oct 2026 11:06AM UTC 487
10.54
GitHub Action Run
11 itest-fabric-iou - 40493051143.11 27 Oct 2026 11:09AM UTC 457
41.58
GitHub Action Run
12 itest-fsc-signedpingpong - 40493051143.12 27 Oct 2026 11:05AM UTC 247
32.46
GitHub Action Run
13 itest-fsc-pingpong - 40493051143.13 27 Oct 2026 11:06AM UTC 252
35.09
GitHub Action Run
14 itest-fabric-events - 40493051143.14 27 Oct 2026 11:06AM UTC 452
29.61
GitHub Action Run
15 itest-fabric-atsachaincode - 40493051143.15 27 Oct 2026 11:06AM UTC 452
31.44
GitHub Action Run
16 itest-fabricx-atsa - 40493051143.16 27 Oct 2026 11:04AM UTC 479
31.67
GitHub Action Run
17 itest-fabricx-deployment - 40493051143.17 27 Oct 2026 11:04AM UTC 479
29.3
GitHub Action Run
18 itest-fabric-iouhsm - 40493051143.18 27 Oct 2026 11:06AM UTC 457
40.8
GitHub Action Run
19 utest-root - 40493051143.19 27 Oct 2026 11:07AM UTC 487
89.58
GitHub Action Run
20 itest-fabricx-multiendorsement - 40493051143.20 27 Oct 2026 11:04AM UTC 479
29.42
GitHub Action Run
21 itest-fabric-configupdate - 40493051143.21 27 Oct 2026 11:06AM UTC 457
39.53
GitHub Action Run
22 itest-fabricx-iou - 40493051143.22 27 Oct 2026 11:04AM UTC 479
30.22
GitHub Action Run
23 itest-fabricx-simple - 40493051143.23 27 Oct 2026 11:04AM UTC 479
28.92
GitHub Action Run
24 itest-fabric-iou-libp2p - 40493051143.24 27 Oct 2026 11:07AM UTC 457
37.15
GitHub Action Run
Source Files on build 40493051143
  • Tree
  • List 496
  • Changed 47
  • Source Changed 5
  • Coverage Changed 47
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #40493051143
  • 159d5651 on github
  • Prev Build on main (#40487749515)
  • Next Build on main (#40498207671)
  • 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