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

dal-go / dalgo / 33001407299
100%

Build:
DEFAULT BRANCH: main
Ran 26 Aug 2026 06:45PM 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:44PM UTC coverage: 99.962%. Remained the same
33001407299

push

github

web-flow
feat(dalgo2memory): snapshot reads in optimistic mode (snapshot-or-abort) (#123)

Optimistic mode was read-committed: a transaction's first touch of a key
loaded the LIVE committed value, so after another transaction committed,
a callback could observe values from two different committed states - a
combination that never existed and that real Firestore never shows. The
commit correctly conflicted afterwards, but only if the callback survived
its fractured view and returned nil; a callback that errored on the torn
data surfaced a non-retryable error Firestore would never produce.

Mechanism - snapshot-or-abort, no data is ever cloned:

  - database.commitSeq is a global commit sequence, advanced once per
    committed write batch (an optimistic transaction's commit, or one
    top-level write). db.versions values change meaning from per-key
    counters to "commitSeq when this key was last committed" - no test
    asserted on raw values, and every existing comparison (baseline
    equality at commit) is unaffected.
  - A transaction pins startSeq lazily at its FIRST observing touch
    (Get, Exists, Insert's duplicate check, Update's merge - never a
    blind Set/Delete), matching Firestore's effective read time being
    its first read's.
  - Touching a new key whose last-commit seq exceeds startSeq returns
    ErrTransactionConflict FROM THE READ and poisons the transaction:
    commit refuses even if the callback swallows the error, mirroring
    the real Firestore client, which fails the commit of a transaction
    whose read came back ABORTED. As long as nothing observed has been
    overwritten, the live store IS the snapshot.
  - Blind writes stay exempt (Firestore blind writes do not conflict on
    the written key's prior state); their write-write races are still
    caught by the existing baseline validation at commit.

This deliberately reads at a FIXED sequence rather than sliding the
snapshot forward when revalidation could prove it safe: ... (continued)

33 of 33 new or added lines in 1 file covered. (100.0%)

7897 of 7900 relevant lines covered (99.96%)

1.0 hits per line

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