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

dal-go / dalgo / 32966146720
100%

Build:
DEFAULT BRANCH: main
Ran 26 Aug 2026 11:59AM 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 11:59AM UTC coverage: 99.962%. Remained the same
32966146720

push

github

trakhimenok
feat(dalgo2memory): default to strict Firestore-style transaction ordering

Flip dalgo2memory.NewDB()'s default from permissive to strict: a
read-write transaction now rejects a read that follows a write
(ErrReadAfterWriteInTransaction), matching real Firestore's ordering
rule out of the box instead of only on request.

Rationale: a permissive default means test fidelity depended on a
caller already knowing the constraint exists, which is exactly the
population most likely to write a read-after-write. This shape of bug
shipped a production 500 in sneat-core-modules's set_user_country
today, broken for every user with 2+ spaces, with green unit tests
throughout. sneat-co/chessraiders already opts in via
WithNoReadsAfterWritesInTransaction and would have caught it.

- WithNoReadsAfterWritesInTransaction() is kept and still works
  (deprecated, since it is now redundant against the default); every
  existing caller, including chessraiders' 5+ call sites, is
  unaffected.
- New WithInterleavedReadsAndWritesInTransaction() is the opt-out for
  a database standing in for a backend that legitimately interleaves
  reads and writes in a transaction (SQL-style: Postgres/MySQL/SQLite).
- branching.go and optimistic.go already propagated
  db.noReadsAfterWritesInTransaction verbatim, so the new default
  flows through Capture/Branch and WithOptimisticConcurrency
  transactions with no code change there; added regression tests
  covering both (TestBranchingPropagatesDefaultStrictOrdering,
  TestOptimisticConcurrencyInheritsDefaultOrdering).

One dalgo-internal test broke on the flip:
TestOptimisticConcurrencyReadYourOwnWrites deliberately does
Set-then-Get on the same key to prove the optimistic engine's local
write buffer is internally consistent — an access pattern real
Firestore transactions never allow either way, so it now opts into
WithInterleavedReadsAndWritesInTransaction() to keep testing that
(orthogonal) property rather than asserting a Firestore orderi... (continued)

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

7825 of 7828 relevant lines covered (99.96%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 32966146720.1 26 Aug 2026 11:59AM UTC 126
99.96
GitHub Action Run
Source Files on build 32966146720
  • Tree
  • List 126
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 1c440c14 on github
  • Prev Build on main (#32900727333)
  • Next Build on main (#32996384041)
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