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

datatug / datatug-cli / 38240894458
100%

Build:
DEFAULT BRANCH: main
Ran 12 Oct 2026 11:12AM UTC
Jobs 1
Files 393
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

12 Oct 2026 11:09AM UTC coverage: 94.968% (-0.5%) from 95.505%
38240894458

push

github

web-flow
feat: persist optional SQLite comparison rows for paging (#252)

Adds optional server-private SQLite storage for comparison rows, allowing the browser to page matched, added, removed, and changed records without rerunning sources. POST comparison remains authoritative when cache setup, inserts, or commits fail; GET pages reauthorize both retained snapshots and require the original principal/policy fingerprint.

Paging closes its result set before touching metadata and returns the last included key as the exclusive cursor. Metadata and payloads share one SQLite read transaction so another server process cannot replace authorized rows between reads. Cache writes honor cancellation and logical byte bounds, with atomic TTL/LRU eviction; old cache schemas migrate to an empty fingerprint and require recomputation before reads.

Validation passed:
- `wb run -- go test ./pkg/comparecache -count=1 -timeout=30s`: paging without gaps or hangs, cancellation, bounded rollback, TTL/LRU, two-store replacement isolation, and rollback of partial TTL/LRU deletion.
- `wb run -- go test ./pkg/server/endpoints -run 'Test(ComputeCompare|CompareRows|LoadCompareRecord|ComparisonCache)' -count=1 -timeout=45s`: injected SQL insert failure, cap/cancellation fallback, and a narrowed policy that still replays snapshots successfully while denying the older cached secret column.
- `wb run -- golangci-lint run ./pkg/comparecache ./pkg/api ./pkg/server/endpoints ./pkg/server`: 0 issues; final store transaction adjustment also passed store-only lint.

Merged current main into the original PR branch, preserving current source and ACL validation. Managed commit/push hooks remain enabled. Independent review and authoritative CI gate landing.

Source commits:

- 8397280613bc feat: persist optional SQLite comparison rows for paging
  POST /datatug/compare now records observer rows into a private cache so GET /datatug/compare/rows can page matching and diff rows after re-authorizing both sn... (continued)

315 of 565 new or added lines in 6 files covered. (55.75%)

39724 of 41829 relevant lines covered (94.97%)

0.96 hits per line

Uncovered Changes

Lines Coverage ∆ File
161
62.21
pkg/comparecache/store.go
49
0.0
pkg/api/compare_cache.go
36
42.86
pkg/server/endpoints/compare_rows.go
2
98.72
-1.28% pkg/server/endpoints/compare.go
2
98.18
-1.82% pkg/server/http_server.go
Jobs
ID Job ID Ran Files Coverage
1 38240894458.1 12 Oct 2026 11:12AM UTC 393
94.97
GitHub Action Run
Source Files on build 38240894458
  • Tree
  • List 393
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • acc67bfe on github
  • Prev Build on main (#38239206237)
  • Next Build on main (#38243158979)
  • 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