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

dal-go / dalgo / 33002396729
100%

Build:
DEFAULT BRANCH: main
Ran 26 Aug 2026 06:56PM UTC
Jobs 1
Files 126
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

26 Aug 2026 06:55PM UTC coverage: 99.962%. Remained the same
33002396729

push

github

web-flow
feat(dalgo2memory): transactional queries in optimistic mode (#124)

Queries inside an optimistic-mode read-write transaction were refused
outright with ErrNotSupported, while the default locked mode supports
them - the one capability gap blocking optimistic mode from ever
becoming the default.

A transactional query now participates in the transaction's snapshot
and conflict detection at COLLECTION granularity:

  - database.collectionSeq is versions' coarse sibling: the commitSeq
    value when ANY record of a collection was last touched by a
    committed write. Optimistic commits and top-level writes stamp it
    in lockstep with the per-key table.
  - A query pins the snapshot if it is the transaction's first
    observation; aborts (poisoning the transaction, exactly like a
    point read) if the collection was committed to after the snapshot;
    and otherwise registers the collection's sequence, which commit
    revalidates.
  - Collection-grained registration is what catches PHANTOMS: an
    insert into a queried collection changes the query's result
    without touching any key the per-key read set could have named.
    It is deliberately coarser than Firestore's index-range locking -
    an unrelated write to the same collection conflicts too - but it
    can only err toward a spurious retryable abort, never toward
    silently missing a phantom.
  - db.mu is held from registration through the scan, so the query
    reads exactly the registered state.
  - Joins stay refused inside transactions: Firestore has no joins to
    stay faithful to, and a join would scan several collections in one
    result. TestOptimisticConcurrencyQueryUnsupported, which locked in
    the old blanket refusal, is repurposed to lock in exactly this
    narrower one.

The recordset reader form delegates to the records form and inherits
everything. PR 3 of the 6-PR plan making dalgo2memory
Firestore-faithful by default.

Verified: full suite green under -race, go ve... (continued)

37 of 37 new or added lines in 2 files covered. (100.0%)

7931 of 7934 relevant lines covered (99.96%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 33002396729.1 26 Aug 2026 06:56PM UTC 126
99.96
GitHub Action Run
Source Files on build 33002396729
  • Tree
  • List 126
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 518eacfe on github
  • Prev Build on main (#33001407299)
  • Next Build on main (#33002534404)
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