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

orneryd / NornicDB / 26514003497
87%

Build:
DEFAULT BRANCH: main
Ran 27 May 2026 01:49PM UTC
Jobs 1
Files 475
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

27 May 2026 01:26PM UTC coverage: 85.124% (+0.01%) from 85.11%
26514003497

push

github

orneryd
fix(storage): rebuild node label index from bodies on engine open (#183)

  Stores carried over from older binaries — or reconstructed via file-level
  copy of a Badger directory mid-write — can have node bodies present and
  the corresponding prefixLabelIndex (0x03) keys absent. labels(n) and
  property-based selection still resolve correctly because they read the
  node's authoritative Labels slice; only MATCH (n:Label), which goes
  through the index, silently returns 0 rows for every pre-existing node
  after restart. Closed by a marker-gated, non-blocking startup backfill
  that mirrors the edge-between rebuild from #125: drop the prefix-0x03
  range, walk every node body in 50k-write Badger txn chunks, re-emit
  (label, nodeNumID) entries, then write prefixMVCCMetaLabelIndexReady so
  subsequent opens skip the work. Cancelled cleanly on Close.

  Pinned with badger_label_index_backfill_test.go (7 tests) covering the
  canonical repro, multi-label nodes, empty-store fast path, idempotency
  across restarts, cancel-on-close, stale-entry eviction, and namespaced
  reads. label_index_restart_test.go (8 tests) pins the live write path's
  persistence contract end-to-end.

140 of 182 new or added lines in 3 files covered. (76.92%)

27 existing lines in 8 files now uncovered.

130823 of 153686 relevant lines covered (85.12%)

0.99 hits per line

Uncovered Changes

Lines Coverage ∆ File
39
77.97
pkg/storage/badger_label_index_backfill.go
3
81.75
-0.61% pkg/storage/badger.go

Coverage Regressions

Lines Coverage ∆ File
11
88.93
-0.94% pkg/nornicdb/db_admin.go
4
84.38
-0.61% pkg/server/server_nornicdb.go
3
73.94
0.07% pkg/nornicdb/db.go
2
72.31
-0.65% pkg/fabric/result.go
2
89.66
-3.45% pkg/nornicdb/auto_embed_inference.go
2
85.01
-0.09% pkg/storage/async_engine.go
2
91.48
-0.66% pkg/temporal/query_load.go
1
95.19
-0.34% pkg/cypher/apoc_community.go
Jobs
ID Job ID Ran Files Coverage
1 26514003497.1 27 May 2026 01:49PM UTC 475
85.12
GitHub Action Run
Source Files on build 26514003497
  • Tree
  • List 475
  • Changed 15
  • Source Changed 0
  • Coverage Changed 15
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a5dbc587 on github
  • Prev Build on main (#26469508300)
  • Next Build on main (#26515726034)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc