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

hyperledger / fabric-x-committer / 29740404116
92%
main: 91%

Build:
Build:
LAST BUILD BRANCH: skill-dev
DEFAULT BRANCH: main
Ran 20 Jul 2026 12:00PM UTC
Jobs 3
Files 129
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

20 Jul 2026 11:57AM UTC coverage: 91.522% (-0.2%) from 91.727%
29740404116

Pull #685

github

cendhu
[vc, coordinator, verifier] treat _snapshot and _checkpoint as system namespaces

Add committerpb.SnapshotNamespaceID and CheckpointNamespaceID to the
systemNamespaces list so their ns_<id> tables are created via the
existing namespace bootstrap path, alongside _meta and _config. No new
SQL DDL and no timestamp columns.

Recognize _snapshot and _checkpoint as first-class system namespaces
across policy validation, the dependency graph, and the VC preparer,
mirroring existing _meta/_config handling.

- Add utils.IsSystemNamespace covering _meta, _config, _snapshot, and
  _checkpoint, and use it in policy validation and dependency-graph
  read-key construction to avoid duplicating the 4-way guard.
- policy: reject _snapshot/_checkpoint as ordinary application namespace
  policies.
- dependencygraph: skip the normal _meta namespace-version read
  dependency for system namespaces.
- vc preparer: skip the _meta dependency for both; forward the _snapshot
  marker TX to the committer as a single new write into the _snapshot
  namespace (key = tx_id, value = SnapshotState{TxRef}); retain the
  single ReadWrite for _checkpoint. Fail the preparer worker rather than
  silently dropping a _snapshot write, since that would fork state across
  deterministic replicas.

Add table-driven tests for each package.

Signed-off-by: Senthilnathan <cendhu@gmail.com>
Pull Request #685: [vc, coordinator, verifier] treat _snapshot and _checkpoint as system namespaces

38 of 40 new or added lines in 4 files covered. (95.0%)

36 existing lines in 8 files now uncovered.

10472 of 11442 relevant lines covered (91.52%)

42940.73 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
98.92
-0.68% service/vc/preparer.go

Coverage Regressions

Lines Coverage ∆ File
10
79.03
-1.75% service/sidecar/sidecar.go
10
84.7
-2.73% service/vc/database.go
4
88.31
-2.6% service/vc/committer.go
3
84.02
-1.23% service/sidecar/relay.go
3
91.7
-1.31% service/vc/validator_committer_service.go
2
81.9
-1.9% service/query/query.go
2
91.82
-0.53% mock/orderer.go
2
85.76
-0.68% service/query/batcher.go
Jobs
ID Job ID Ran Files Coverage
1 unit-test - 29740404116.1 20 Jul 2026 12:03PM UTC 93
83.67
GitHub Action Run
2 db-test - 29740404116.2 20 Jul 2026 12:03PM UTC 129
79.74
GitHub Action Run
3 core-db-test - 29740404116.3 20 Jul 2026 12:00PM UTC 100
45.44
GitHub Action Run
Source Files on build 29740404116
  • Tree
  • List 129
  • Changed 18
  • Source Changed 0
  • Coverage Changed 18
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #685
  • PR Base - main (#29740145923)
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