Skip to content
Source
Sign inSign up
TanStack/db

test(browser-sqlite): cover live Electric hydration straddle #1911

MergedKyleAMathews(GitHub profile, opens in a new tab)merged 5 commits intomain fromrefs/pull/1911/headmerged by KyleAMathews(GitHub profile, opens in a new tab)

Showing 6 changed files with 121 additions and 0 deletions (loading 3).

x
0 of 6 viewed, 6 left
15 additions and 0 deletionsdocs/contributing/oracle-coverage.mdModified
View file
@@ -155,6 +155,21 @@
[review record](oracle-reviews/issue-1589-live-electric-opfs.md) preserves the
RED and GREEN host observations.
​
+The [live Electric hydration-straddle oracle](../../packages/browser-db-sqlite-persistence/e2e/electric-hydration-straddle.opfs.spec.ts)
+owns one #1754 host history: an on-demand Collection has an initial durable row;
+an OPFS subset hydration is held after its local read; a PostgreSQL update
+begins an Electric source transaction during that hold; and the row-bearing
+commit is released only after the hydration scope exits. It checks the old row
+before release and the exact new public and durable row afterward, then after
+follower takeover and reopen. A late-buffer mutant leaves the old row in both
+observations. The [core persistence tests](../../packages/db-sqlite-persistence-core/tests/persisted.test.ts)
+own the adjacent during/straddling/after settlement, FIFO, abort, and failure
+histories. The live oracle does not prove eager-startup overlap, other mutation
+shapes, arbitrary Electric fetch schedules, Firefox/Zen, React rendering, or
+exclusive OPFS ownership. The
+[review record](oracle-reviews/issue-1754-live-electric-hydration-straddle.md)
+preserves the live-host and mutant evidence.
+​
## Acceptance map
​
The post-merge review added three missing domains to existing owners:
96 additions and 0 deletionsdocs/contributing/oracle-reviews/issue-1754-live-electric-hydration-straddle.mdAdded
View file