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

orneryd / NornicDB / 37215434766
89%

Build:
DEFAULT BRANCH: main
Ran 04 Oct 2026 04:16PM UTC
Jobs 1
Files 681
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

04 Oct 2026 04:04PM UTC coverage: 86.884% (+0.01%) from 86.873%
37215434766

push

github

orneryd
fix(storage): label reads skip other databases' nodes before reading them (#851)

The label index key has no database in it, so a label scan visits the
label's entries in every database. Each entry's node was read (txn.Get)
and decoded before NamespacedEngine dropped the ones outside its
database: a 1,000-node :Person scan took 2.5 ms alone and 479 ms with
100,000 :Person nodes in another database.

ScopedLabelNodeReader adds scoped forms of the label reads
(GetNodesByLabel, GetFirstNodeByLabel, StreamNodesByLabelProjected,
GetNodesByLabelVisibleAt). BadgerEngine skips an entry outside the
scope right after resolving its node ID, before any read; WALEngine and
AsyncEngine pass the scope down (AsyncEngine also scopes its pending
overlay) and fall back to the unscoped read for inner engines without
it; NamespacedEngine reads with its own prefix and still filters. A
transaction pinned to a database scopes its label scans to it.

Test fakes that embed MemoryEngine and override a label read now
override its scoped form too, since the wrappers delegate through it.
The unused streamNodesByLabelFromPhysicalSnapshot wrapper is removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

106 of 109 new or added lines in 10 files covered. (97.25%)

32 existing lines in 12 files now uncovered.

179235 of 206293 relevant lines covered (86.88%)

1.02 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
89.66
pkg/storage/scoped_label_reads.go

Coverage Regressions

Lines Coverage ∆ File
8
79.78
-3.28% pkg/storage/badger_label_index_backfill.go
4
77.45
-0.59% pkg/storage/badger_nodes.go
4
86.72
-0.05% pkg/storage/namespaced.go
3
90.07
-0.24% pkg/nornicdb/db_admin.go
2
76.46
-0.31% pkg/cypher/transaction_storage_wrapper.go
2
91.62
-1.05% pkg/linkpredict/hybrid.go
2
79.35
-1.09% pkg/storage/badger_edge_between_index.go
2
87.04
0.31% pkg/storage/badger_transaction.go
2
88.71
-0.08% pkg/storage/wal_engine.go
1
95.19
-0.34% pkg/cypher/apoc_community.go
1
80.74
-0.05% pkg/cypher/traversal.go
1
36.15
-0.14% pkg/storage/composite_capabilities.go
Jobs
ID Job ID Ran Files Coverage
1 37215434766.1 04 Oct 2026 04:16PM UTC 681
86.88
GitHub Action Run
Source Files on build 37215434766
  • Tree
  • List 681
  • Changed 23
  • Source Changed 0
  • Coverage Changed 23
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 898edeb4 on github
  • Prev Build on main (#37215181436)
  • Next Build on main (#37215698885)
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