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

codenotary / immudb / 24401624429
89%

Build:
DEFAULT BRANCH: master
Ran 14 Apr 2026 01:34PM UTC
Jobs 1
Files 253
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

14 Apr 2026 01:27PM UTC coverage: 89.306%. Remained the same
24401624429

push

gh-ci

vchaindz
docs(scan): clarify that ScanRequest.sinceTx=0 waits for latest committed tx

Closes #2082.

The server already delivers the behavior requested in #2082: when a client
calls Scan with sinceTx=0 (the default), pkg/database/database.go's
snapshotSince captures d.st.CommittedAlh() at call-reception time and then
calls SnapshotMustIncludeTxID, which blocks on indexer.WaitForIndexingUpto
before returning the snapshot. That means the scan observes every write
committed before the call arrived, with no need for the caller to learn the
latest tx id out of band — useful when multiple client processes write
concurrently.

This was invisible from the API docs: the protobuf comment only described
the sinceTx>0 case, and the deprecated noWait field wasn't marked as
unhonored by Scan, inviting users to think it was a "get a fresher read"
toggle when in fact the server already waits unconditionally.

Changes:
- pkg/api/schema/schema.proto: spell out both branches of sinceTx, reference
  #2082, and note that noWait is deprecated AND ignored by Scan.
- pkg/api/schema/schema.pb.go, docs.md, schema.swagger.json: mirror the
  comment change in the generated artifacts by hand. A full 'make
  build/codegen' regen was not run here because the locally installed
  protoc-gen-go (v1.36) differs from the version used to check in the
  current schema.pb.go (v1.32) and would produce large unrelated churn.
- pkg/database/scan_latest_test.go: new test that guards the contract — a
  Set immediately followed by Scan(sinceTx=0) must see the just-written key,
  exercised in a 50-iteration loop to catch indexing races.

38266 of 42848 relevant lines covered (89.31%)

150517.37 hits per line

Coverage Regressions

Lines Coverage ∆ File
4
83.73
0.0% embedded/store/immustore.go
Jobs
ID Job ID Ran Files Coverage
1 24401624429.1 14 Apr 2026 01:34PM UTC 253
89.31
Source Files on build 24401624429
  • Tree
  • List 253
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • af1740f1 on github
  • Prev Build on master (#24401571106)
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