Skip to content

test(electric): isolate persistence promises for retry holds - #2513

Merged
KyleAMathews merged 2 commits into
mainfrom
t3/fix-electric-retry-holds
Dec 2, 2026
Merged

KyleAMathews merged 2 commits into
mainfrom
t3/fix-electric-retry-holds

Conversation

@KyleAMathews

@KyleAMathews KyleAMathews commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

🎯 Changes

The Electric retry oracle fails when a history releases one optimistic hold and starts another before the first snapshot. Every transaction reused one persistence promise, so the first release also settled later holds.

Give each optimistic transaction its own persistence promise. Retain the CI history and add generated coverage for repeated holds in all four source modes. Preserve cleanup diagnostics when a history fails. The runner previously suppressed these warnings along with expected preload warnings. The adapter and reference model remain unchanged.

Related: #2497.

🔬 Oracle Coverage

The coverage map names packages/electric-db-collection/tests/electric-oracle.property.test.ts as the primary oracle owner.

The declared bug class is reuse of a settled persistence promise across sequential optimistic holds in the controlled test driver. The driver compares row visibility and subset settlement after each step, including snapshot delivery, the final release, and cleanup.

  • Law: Accepted sync transactions wait behind persisting optimistic transactions. Subset waits fulfill after their rows become visible. Truncates apply immediately. Authority: the glossary and the existing Electric retry model.
  • Reach: Fixed/random histories reached full-log 13/12 times, progressive 12/13, eager 13/12, and changes-only 12/13. Each mode has a generated construction and a bound missing-state calibration.
  • RED: CI seed -903876084, path 10:1:0:0:1:11:8 reproduces premature row visibility and subset fulfillment on the parent implementation.
  • GREEN: The exact CI replay passes. The selected Electric oracle files, lifecycle support tests, and type tests pass: 589 tests, no type errors. Targeted ESLint, oracle lint, formatting, and diff checks pass.
  • Mutant: Restoring the singleton persistence promise fails the new full-log construction at the original snapshot comparison.
  • Limits: New coverage uses controlled ShapeStream delivery with one to three prior releases. It adds no real-provider or native-persistence claim. Production code and shipped bytes remain unchanged.

🚀 Release Impact

  • This change is docs/CI/dev-only (no release).

This test-only fix does not need a changeset. The separate pkg-pr-new Preview failure in #2497 returns HTTP 404 and remains outside this change.

A same-runner fault injection now reports both the primary mismatch and its cleanup failure. The lifecycle regression also checks cleanup error identity and later resource release.

See the fix evidence for commands, reach counts, and the oracle audit.

✅ Checklist

  • Run the selected Electric oracle files, lifecycle support tests, and type tests.
  • Run targeted ESLint, oracle lint, formatting, and diff checks.

Summary by CodeRabbit

  • Tests

    • Expanded coverage of retry and lifecycle scenarios involving multiple transaction holds, including error handling and cleanup warnings.
    • Added checks across several update and snapshot modes, including a case where an update arrives while a later transaction is still persisting.
  • Documentation

    • Added guidance describing the retry scenarios, test coverage, and its limitations.

The retry driver reused a resolved deferred after the first hold released.
Create a deferred per transaction, keep the original CI regression, and
construct repeated holds in all four source modes. Preserve secondary
cleanup diagnostics while suppressing only the expected preload warning.

Law: accepted sync work waits for the current optimistic transaction;
subset settlement follows row visibility, while truncates apply at once.
Authority: the glossary and the unchanged Electric retry reference model.
Reach: 25 histories per source mode across the final fixed/random campaigns.
RED: seed -903876084, path 10:1:0:0:1:11:8, electric.retry-decision,
random seed: generated; the demand fulfilled and its row appeared too early.
GREEN: 589 selected tests and type tests pass; the exact CI replay, ESLint,
oracle lint, formatting, and diff checks pass.
Mutant: restoring the singleton deferred fails the new full-log snapshot
comparison. A primary-failure plus cleanup-rejection probe also rejects
broad warning suppression and retains both errors after the repair.
Limits: controlled ShapeStream, one to three prior releases; no new real
provider or native-persistence claim. Production code is unchanged.

Related: #2497
@changeset-bot

changeset-bot Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 8ff96c1

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Electric oracle tests now give each held transaction a separate persistence promise and add a property for renewed holds across wait modes. Lifecycle coverage checks cleanup-warning forwarding. Documentation records the test changes, replay steps, and scope limits.

Changes: Electric retry-driver oracle tests

Layer / File(s) Summary
Cleanup warning handling
packages/electric-db-collection/tests/electric-oracle-lifecycle.ts, packages/electric-db-collection/tests/electric-lifecycle.test.ts, packages/electric-db-collection/tests/electric-oracle.property.test.ts, docs/contributing/oracle-reviews/2026-12-01-electric-retry-driver.md
The warning wrapper suppresses the specified preload warning and forwards other warnings. The lifecycle test checks that the primary error remains the rejection, later cleanup runs, and a secondary cleanup failure is forwarded.
Renewed optimistic-hold coverage
packages/electric-db-collection/tests/electric-oracle.property.test.ts, packages/db/tests/oracle-config.ts, packages/db/tests/oracle-replay-manifest.ts, docs/contributing/oracle-coverage.md, docs/contributing/oracle-reviews/2026-12-01-electric-retry-driver.md
Each optimistic hold receives a separate persistence promise. The new property generates histories with one to three released holds before a renewed hold and snapshot across wait modes. The property registry and replay manifest register the coverage. Documentation records the coverage, replay steps, and scope limits.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Other

Possibly related issues

  • TanStack/db issue 2264: The PR adds lifecycle coverage for primary-error preservation and forwarding of cleanup failures, matching the issue’s stated cleanup behavior.

Suggested reviewers: nabil372, tannerlinsley

Merge Risk: Minimal · up to 8ff96

This change only adds test coverage and documentation for Electric retry-hold behavior, and it does not alter shipped package behavior. No merge-blocking risk is evident.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "test(electric): isolate persistence promises for retry holds" matches the main change. The changeset gives each optimistic transaction its own persistence promise in the Electric retry-driv…
Description check Passed The description follows the template. The Changes section explains the bug, the fix, and the motivation. The Oracle Coverage section names the primary oracle owner, states the bug class, the law, reac…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "test(electric): isolate persistence promises for retry holds" matches the main change. The changeset gives each optimistic transaction its own persistence promise in the Electric retry-driver test code. The title uses a conventional commit scope and names the affected area (Electric retry holds). It is specific and concise.

Full details: Description check

Explanation

The description follows the template. The Changes section explains the bug, the fix, and the motivation. The Oracle Coverage section names the primary oracle owner, states the bug class, the law, reach counts, RED/GREEN evidence, a mutant check, and limits. The Release Impact section marks the change as docs/CI/dev-only with a reason. The Checklist lists the test commands run. The template asks for the full bug-class evidence, and the description provides it. The description does not check the 'I have tested this code locally with pnpm test' item. It runs a narrower set of commands instead, so the checklist no longer matches the template item.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 06f777c1-92d9-48bc-9b62-676ebd6f6f11
Commits

Reviewing files that changed from the base of the PR and between 53ff1a4 and 8ff96c1.

Files selected for processing: 2

  • docs/contributing/oracle-reviews/2026-12-01-electric-retry-driver.md
  • packages/db/tests/oracle-replay-manifest.ts
Files skipped from review as they are similar to previous changes: 1

  • docs/contributing/oracle-reviews/2026-12-01-electric-retry-driver.md

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.

@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Incremental update benchmark

Comparing 70b0bce2e (this PR) against 8b9d36e75 (base). Write times are per-write medians over 100 iterations (20 warmup writes). Timings use the median of 3 fresh fixture repetition(s).

Overall median write time vs base: 0.99× · cold hydrate time: 1.01× (geometric mean of per-case ratios; lower is faster).

Writes: No significant changes (threshold: ±20% and >0.05ms).

Cold hydrate: 1 regression(s), 0 improvement(s) (threshold: ±50% and >5ms).

CI regression gate: PASS. Query geometric means: >+30% writes or >+50% cold. A case also fails when every repetition exceeds the entire base range by >+50% and the metric's absolute floor.

Per-case flags are noisy on shared runners. Read the geometric means first.

Writes

Query Δ median write time (geomean) Best case Worst case Flags
list: newest 50 open -3.6% -49.7% +111.0% —
list + author +0.4% -47.0% +41.2% —
list + comment count +2.7% -26.6% +29.9% —
list + 3 recent comments +2.2% -18.2% +20.8% —
issue detail + comments -1.4% -28.0% +15.5% —
open issues + documents -6.6% -43.9% +15.4% —

Cold hydrate

Query Δ cold hydrate time (geomean) Best case Worst case Flags
list: newest 50 open +0.4% -29.4% +32.5% —
list + author +0.0% -26.7% +36.1% —
list + comment count +8.0% -12.0% +74.2% —
list + 3 recent comments -11.6% -51.9% +15.0% —
issue detail + comments +4.2% -18.7% +50.9% —
open issues + documents +8.7% -32.4% +73.1% 1 🔴

Each row aggregates that query's scale/index/write-mode configurations; per-configuration tables below.

100 rows/collection | source indexes: none | synced writes — geomean 0.93×, cold 1.01×
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold
list: newest 50 open 0.152ms 0.155ms +2.0% 0.229ms 0.237ms +3.8% 2.137ms 1.788ms -16.3%
list: newest 50 open 0.092ms 0.060ms -34.5% 0.129ms 0.117ms -9.3% 1.340ms 1.347ms +0.6%
list + author 0.175ms 0.191ms +8.9% 0.283ms 0.275ms -3.1% 7.156ms 6.251ms -12.7%
list + comment count 0.247ms 0.277ms +12.2% 0.427ms 0.428ms +0.2% 4.699ms 5.045ms +7.4%
list + 3 recent comments 0.144ms 0.141ms -2.2% 0.236ms 0.238ms +0.9% 5.243ms 6.027ms +15.0%
issue detail + comments 0.127ms 0.091ms -28.0% 0.190ms 0.167ms -12.2% 0.580ms 0.594ms +2.4%
open issues + documents 0.058ms 0.059ms +1.6% 0.128ms 0.130ms +1.6% 3.193ms 3.696ms +15.8%
100 rows/collection | source indexes: none | optimistic writes — geomean 1.00×, cold 0.95×
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold
list: newest 50 open 0.061ms 0.061ms -0.3% 0.120ms 0.115ms -3.9% 0.734ms 0.683ms -7.0%
list: newest 50 open 0.058ms 0.055ms -5.6% 0.084ms 0.088ms +5.1% 0.774ms 0.916ms +18.4%
list + author 0.068ms 0.068ms -1.0% 0.133ms 0.112ms -15.9% 2.295ms 2.328ms +1.4%
list + comment count 0.126ms 0.129ms +2.2% 0.210ms 0.166ms -20.9% 2.349ms 2.067ms -12.0%
list + 3 recent comments 0.076ms 0.078ms +2.7% 0.107ms 0.110ms +3.2% 3.135ms 3.260ms +4.0%
issue detail + comments 0.059ms 0.059ms -0.2% 0.113ms 0.115ms +2.2% 0.373ms 0.387ms +3.6%
open issues + documents 0.315ms 0.327ms +3.9% 0.376ms 0.597ms +58.9% 2.192ms 1.482ms -32.4%
100 rows/collection | source indexes: manual | synced writes — geomean 0.98×, cold 1.03×
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold
list: newest 50 open 0.062ms 0.067ms +8.2% 0.134ms 0.153ms +14.3% 1.141ms 1.099ms -3.7%
list: newest 50 open 0.188ms 0.191ms +1.7% 0.353ms 0.351ms -0.8% 0.673ms 0.892ms +32.5%
list + author 0.059ms 0.084ms +41.2% 0.122ms 0.135ms +10.3% 1.742ms 1.690ms -3.0%
list + comment count 0.142ms 0.140ms -1.2% 0.215ms 0.239ms +11.4% 2.164ms 2.105ms -2.7%
list + 3 recent comments 0.082ms 0.082ms +0.7% 0.158ms 0.150ms -5.0% 4.565ms 2.468ms -45.9%
issue detail + comments 0.045ms 0.047ms +3.8% 0.063ms 0.063ms +0.1% 0.247ms 0.275ms +11.0%
open issues + documents 0.063ms 0.035ms -43.9% 0.084ms 0.042ms -49.4% 1.114ms 1.928ms +73.1%
100 rows/collection | source indexes: manual | optimistic writes — geomean 1.02×, cold 0.99×
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold
list: newest 50 open 0.049ms 0.049ms -1.1% 0.100ms 0.105ms +4.9% 0.760ms 0.845ms +11.2%
list: newest 50 open 0.059ms 0.062ms +3.8% 0.090ms 0.097ms +7.2% 0.521ms 0.516ms -0.9%
list + author 0.054ms 0.055ms +2.3% 0.074ms 0.076ms +2.4% 1.271ms 1.342ms +5.6%
list + comment count 0.100ms 0.103ms +2.3% 0.184ms 0.201ms +9.5% 1.684ms 1.671ms -0.8%
list + 3 recent comments 0.057ms 0.059ms +4.0% 0.077ms 0.077ms +1.1% 2.278ms 2.231ms -2.1%
issue detail + comments 0.045ms 0.047ms +3.0% 0.062ms 0.064ms +3.3% 0.362ms 0.294ms -18.7%
open issues + documents 0.308ms 0.304ms -1.4% 0.359ms 0.366ms +1.8% 1.103ms 1.109ms +0.5%
1,000 rows/collection | source indexes: none | synced writes — geomean 1.04×, cold 1.01×
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold
list: newest 50 open 0.027ms 0.057ms +111.0% 0.051ms 0.070ms +36.8% 5.379ms 4.983ms -7.4%
list: newest 50 open 0.018ms 0.018ms +1.9% 0.022ms 0.029ms +31.8% 2.851ms 3.018ms +5.9%
list + author 0.042ms 0.042ms +1.2% 0.071ms 0.059ms -17.7% 13.123ms 14.207ms +8.3%
list + comment count 0.088ms 0.092ms +4.3% 0.170ms 0.130ms -23.3% 5.500ms 6.788ms +23.4%
list + 3 recent comments 0.054ms 0.056ms +3.6% 0.076ms 0.077ms +1.2% 6.050ms 5.169ms -14.6%
issue detail + comments 0.040ms 0.041ms +1.2% 0.053ms 0.064ms +20.9% 0.549ms 0.527ms -4.0%
open issues + documents 0.063ms 0.036ms -42.9% 0.111ms 0.057ms -48.7% 13.504ms 13.583ms +0.6%
1,000 rows/collection | source indexes: none | optimistic writes — geomean 0.76×, cold 0.87×
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold
list: newest 50 open 0.066ms 0.033ms -49.7% 0.097ms 0.072ms -25.5% 4.113ms 3.033ms -26.3%
list: newest 50 open 0.038ms 0.020ms -46.8% 0.056ms 0.031ms -44.1% 4.218ms 2.979ms -29.4%
list + author 0.100ms 0.053ms -47.0% 0.121ms 0.068ms -43.9% 17.214ms 12.619ms -26.7%
list + comment count 0.109ms 0.103ms -5.8% 0.189ms 0.194ms +3.0% 5.422ms 5.021ms -7.4%
list + 3 recent comments 0.050ms 0.051ms +1.4% 0.090ms 0.100ms +11.8% 4.802ms 5.003ms +4.2%
issue detail + comments 0.041ms 0.043ms +2.9% 0.064ms 0.060ms -6.6% 0.602ms 0.596ms -0.9%
open issues + documents 0.309ms 0.314ms +1.8% 0.358ms 0.371ms +3.8% 13.353ms 13.299ms -0.4%
1,000 rows/collection | source indexes: manual | synced writes — geomean 0.91×, cold 0.91×, 1 change(s)
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold
list: newest 50 open 0.029ms 0.029ms +0.6% 0.046ms 0.039ms -15.8% 0.733ms 0.588ms -19.7%
list: newest 50 open 0.169ms 0.172ms +1.6% 0.300ms 0.289ms -3.7% 0.550ms 0.538ms -2.1%
list + author 0.044ms 0.043ms -1.6% 0.055ms 0.058ms +4.3% 1.265ms 1.262ms -0.3%
list + comment count 0.131ms 0.096ms -26.6% 0.181ms 0.131ms -27.8% 3.773ms 3.582ms -5.1%
list + 3 recent comments 0.075ms 0.061ms -18.2% 0.166ms 0.080ms -51.6% 4.813ms 2.317ms -51.9%
issue detail + comments 0.056ms 0.043ms -24.2% 0.113ms 0.060ms -46.6% 0.327ms 0.320ms -2.2%
open issues + documents 0.037ms 0.042ms +15.4% 0.052ms 0.099ms +91.4% 11.023ms 16.737ms +51.8% 🔴
1,000 rows/collection | source indexes: manual | optimistic writes — geomean 1.05×, cold 1.02×
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold
list: newest 50 open 0.039ms 0.042ms +7.8% 0.106ms 0.097ms -8.1% 0.569ms 0.604ms +6.2%
list: newest 50 open 0.028ms 0.029ms +1.8% 0.053ms 0.042ms -21.0% 0.534ms 0.524ms -1.9%
list + author 0.056ms 0.054ms -4.1% 0.090ms 0.085ms -5.0% 1.404ms 1.261ms -10.1%
list + comment count 0.102ms 0.118ms +15.8% 0.191ms 0.200ms +4.5% 1.958ms 2.683ms +37.1%
list + 3 recent comments 0.055ms 0.060ms +7.6% 0.105ms 0.097ms -8.2% 2.955ms 2.250ms -23.9%
issue detail + comments 0.043ms 0.044ms +1.8% 0.061ms 0.070ms +14.2% 0.308ms 0.350ms +13.7%
open issues + documents 0.307ms 0.316ms +3.1% 0.384ms 0.373ms -2.8% 14.326ms 14.477ms +1.1%
10,000 rows/collection | source indexes: none | synced writes — geomean 0.96×, cold 1.02×
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold
list: newest 50 open 0.033ms 0.031ms -6.1% 0.076ms 0.068ms -9.9% 39.708ms 41.196ms +3.7%
list: newest 50 open 0.030ms 0.024ms -18.7% 0.054ms 0.047ms -14.1% 39.032ms 44.034ms +12.8%
list + author 0.047ms 0.048ms +2.2% 0.064ms 0.091ms +41.6% 180.288ms 165.611ms -8.1%
list + comment count 0.122ms 0.114ms -6.2% 0.205ms 0.214ms +4.4% 57.129ms 56.148ms -1.7%
list + 3 recent comments 0.069ms 0.067ms -3.0% 0.145ms 0.123ms -15.4% 46.980ms 49.975ms +6.4%
issue detail + comments 0.042ms 0.044ms +3.6% 0.067ms 0.104ms +55.6% 6.614ms 6.226ms -5.9%
open issues + documents 0.040ms 0.041ms +2.4% 0.056ms 0.057ms +2.2% 134.325ms 142.598ms +6.2%
10,000 rows/collection | source indexes: none | optimistic writes — geomean 1.01×, cold 1.09×
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold
list: newest 50 open 0.049ms 0.042ms -14.3% 0.095ms 0.104ms +9.1% 40.878ms 43.138ms +5.5%
list: newest 50 open 0.023ms 0.023ms +3.2% 0.030ms 0.044ms +44.9% 39.970ms 41.766ms +4.5%
list + author 0.070ms 0.062ms -12.0% 0.110ms 0.092ms -16.6% 156.591ms 167.875ms +7.2%
list + comment count 0.108ms 0.117ms +8.4% 0.216ms 0.221ms +2.1% 49.365ms 50.544ms +2.4%
list + 3 recent comments 0.054ms 0.060ms +12.8% 0.089ms 0.108ms +21.5% 50.229ms 50.975ms +1.5%
issue detail + comments 0.047ms 0.051ms +6.8% 0.083ms 0.090ms +9.5% 4.189ms 6.324ms +50.9%
open issues + documents 0.311ms 0.320ms +2.7% 0.412ms 0.471ms +14.4% 138.882ms 135.198ms -2.7%
10,000 rows/collection | source indexes: manual | synced writes — geomean 1.12×, cold 1.17×
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold
list: newest 50 open 0.031ms 0.031ms -0.0% 0.072ms 0.082ms +13.7% 0.866ms 0.950ms +9.7%
list: newest 50 open 0.226ms 0.236ms +4.5% 0.416ms 0.431ms +3.4% 0.774ms 0.894ms +15.5%
list + author 0.044ms 0.051ms +14.5% 0.059ms 0.077ms +31.4% 1.601ms 1.861ms +16.2%
list + comment count 0.132ms 0.171ms +29.9% 0.222ms 0.260ms +17.0% 2.450ms 4.267ms +74.2%
list + 3 recent comments 0.075ms 0.090ms +20.8% 0.133ms 0.184ms +38.0% 3.610ms 3.889ms +7.7%
issue detail + comments 0.049ms 0.057ms +15.5% 0.081ms 0.075ms -7.6% 0.540ms 0.561ms +3.8%
open issues + documents 0.040ms 0.041ms +3.1% 0.055ms 0.081ms +48.5% 133.333ms 143.304ms +7.5%
10,000 rows/collection | source indexes: manual | optimistic writes — geomean 1.10×, cold 1.12×
Query Base median PR median Δ median Base p95 PR p95 Δ p95 Base cold PR cold Δ cold
list: newest 50 open 0.041ms 0.043ms +3.7% 0.103ms 0.104ms +1.0% 1.013ms 1.122ms +10.8%
list: newest 50 open 0.032ms 0.040ms +25.1% 0.063ms 0.087ms +38.7% 0.792ms 0.884ms +11.6%
list + author 0.055ms 0.070ms +28.9% 0.098ms 0.139ms +42.8% 1.597ms 2.174ms +36.1%
list + comment count 0.139ms 0.149ms +7.3% 0.245ms 0.260ms +6.1% 2.836ms 3.003ms +5.9%
list + 3 recent comments 0.070ms 0.071ms +1.3% 0.124ms 0.134ms +8.7% 3.626ms 3.445ms -5.0%
issue detail + comments 0.072ms 0.077ms +6.7% 0.127ms 0.162ms +27.7% 0.553ms 0.606ms +9.6%
open issues + documents 0.317ms 0.318ms +0.3% 0.546ms 0.460ms -15.8% 114.134ms 133.903ms +17.3%

Runner: node v22.23.5, linux 7.0.0-1020-azure, AMD EPYC 9V74 80-Core Processor. Timings on shared CI runners are noisy; treat small deltas as indicative only.

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Size Change: 0 B

Total Size: 203 kB

ℹ️ View Unchanged
Filename Size
packages/db/dist/esm/_virtual/_rolldown/runtime.js 190 B
packages/db/dist/esm/client.js 4.92 kB
packages/db/dist/esm/collection-options-brand.js 215 B
packages/db/dist/esm/collection-options.js 248 B
packages/db/dist/esm/collection/change-events.js 1.63 kB
packages/db/dist/esm/collection/changes.js 2.03 kB
packages/db/dist/esm/collection/cleanup-queue.js 689 B
packages/db/dist/esm/collection/config-errors.js 561 B
packages/db/dist/esm/collection/events.js 427 B
packages/db/dist/esm/collection/health-tree.js 674 B
packages/db/dist/esm/collection/index.js 2.64 kB
packages/db/dist/esm/collection/indexes.js 1.07 kB
packages/db/dist/esm/collection/lifecycle.js 3.43 kB
packages/db/dist/esm/collection/mutations.js 2.25 kB
packages/db/dist/esm/collection/state.js 5.01 kB
packages/db/dist/esm/collection/subscription.js 6.22 kB
packages/db/dist/esm/collection/sync.js 4.85 kB
packages/db/dist/esm/collection/validate-config.js 1.11 kB
packages/db/dist/esm/collection/validate-indexing.js 371 B
packages/db/dist/esm/deferred.js 323 B
packages/db/dist/esm/error-message.js 627 B
packages/db/dist/esm/errors.js 7.14 kB
packages/db/dist/esm/event-emitter.js 697 B
packages/db/dist/esm/index.js 4.72 kB
packages/db/dist/esm/indexed-db-wrapper.js 1.71 kB
packages/db/dist/esm/indexed-db.js 3.55 kB
packages/db/dist/esm/indexes/auto-index.js 890 B
packages/db/dist/esm/indexes/base-index.js 1.97 kB
packages/db/dist/esm/indexes/basic-index.js 1.67 kB
packages/db/dist/esm/indexes/btree-index.js 1.66 kB
packages/db/dist/esm/indexes/index-metadata.js 1.11 kB
packages/db/dist/esm/indexes/index-registry.js 909 B
packages/db/dist/esm/indexes/index-runtime.js 1.07 kB
packages/db/dist/esm/indexes/reverse-index.js 694 B
packages/db/dist/esm/live-query-adapter.js 950 B
packages/db/dist/esm/live-query-observer-client.js 2.11 kB
packages/db/dist/esm/live-query-observer.js 2.79 kB
packages/db/dist/esm/live-query-options.js 2.4 kB
packages/db/dist/esm/live-query-primitives.js 401 B
packages/db/dist/esm/live-query-window-binding.js 1.46 kB
packages/db/dist/esm/live-query-window-controller.js 3.82 kB
packages/db/dist/esm/local-only.js 804 B
packages/db/dist/esm/local-storage.js 3.95 kB
packages/db/dist/esm/optimistic-action.js 320 B
packages/db/dist/esm/paced-mutations.js 1.06 kB
packages/db/dist/esm/proxy.js 3.03 kB
packages/db/dist/esm/query/builder/clone-query.js 836 B
packages/db/dist/esm/query/builder/functions.js 1.56 kB
packages/db/dist/esm/query/builder/group-keys.js 162 B
packages/db/dist/esm/query/builder/include-functions.js 222 B
packages/db/dist/esm/query/builder/includes-builder.js 2.76 kB
packages/db/dist/esm/query/builder/index.js 2.82 kB
packages/db/dist/esm/query/builder/query-ir.js 318 B
packages/db/dist/esm/query/builder/ref-proxy-identity.js 284 B
packages/db/dist/esm/query/builder/ref-proxy.js 1.57 kB
packages/db/dist/esm/query/builder/wrapper-identity.js 333 B
packages/db/dist/esm/query/compiler/evaluators.js 833 B
packages/db/dist/esm/query/compiler/expressions.js 582 B
packages/db/dist/esm/query/compiler/find-aggregate.js 313 B
packages/db/dist/esm/query/compiler/func-evaluators.js 1.81 kB
packages/db/dist/esm/query/compiler/group-by.js 3.76 kB
packages/db/dist/esm/query/compiler/grouping.js 163 B
packages/db/dist/esm/query/compiler/includes-compiler.js 4.55 kB
packages/db/dist/esm/query/compiler/index.js 6.1 kB
packages/db/dist/esm/query/compiler/joins.js 2.99 kB
packages/db/dist/esm/query/compiler/lazy-targets.js 1.05 kB
packages/db/dist/esm/query/compiler/order-by.js 2.55 kB
packages/db/dist/esm/query/compiler/parent-routes.js 313 B
packages/db/dist/esm/query/compiler/public-compiler.js 194 B
packages/db/dist/esm/query/compiler/query-equivalence.js 554 B
packages/db/dist/esm/query/compiler/route-metadata.js 1.26 kB
packages/db/dist/esm/query/compiler/select.js 1.57 kB
packages/db/dist/esm/query/effect.js 4.66 kB
packages/db/dist/esm/query/equality-conjunct.js 498 B
packages/db/dist/esm/query/equality-value-identity.js 724 B
packages/db/dist/esm/query/expression-helpers.js 1.52 kB
packages/db/dist/esm/query/ir-stable-identity.js 3.71 kB
packages/db/dist/esm/query/ir.js 1.96 kB
packages/db/dist/esm/query/join-conditions.js 254 B
packages/db/dist/esm/query/live-query-collection.js 383 B
packages/db/dist/esm/query/live/bucket-facade-adapter.js 2.73 kB
packages/db/dist/esm/query/live/collection-config-builder.js 6.44 kB
packages/db/dist/esm/query/live/collection-registry.js 259 B
packages/db/dist/esm/query/live/collection-subscriber.js 2.2 kB
packages/db/dist/esm/query/live/graph-scheduler.js 291 B
packages/db/dist/esm/query/live/includes-runtime.js 260 B
packages/db/dist/esm/query/live/internal.js 142 B
packages/db/dist/esm/query/live/materialized-pipeline.js 2.17 kB
packages/db/dist/esm/query/live/on-demand-runtime.js 303 B
packages/db/dist/esm/query/live/ordered-source-loader.js 4.86 kB
packages/db/dist/esm/query/live/public-key-reduction.js 931 B
packages/db/dist/esm/query/live/subset-demand-controller.js 1.96 kB
packages/db/dist/esm/query/live/utils.js 1.34 kB
packages/db/dist/esm/query/optimizer.js 2.65 kB
packages/db/dist/esm/query/pooled-live-query.js 4.17 kB
packages/db/dist/esm/query/pooled-source.js 210 B
packages/db/dist/esm/query/public-ir.js 759 B
packages/db/dist/esm/query/query-once.js 317 B
packages/db/dist/esm/query/runtime-reference-identity.js 621 B
packages/db/dist/esm/query/subset-dedupe.js 496 B
packages/db/dist/esm/query/validate-limit.js 250 B
packages/db/dist/esm/scheduler.js 934 B
packages/db/dist/esm/SortedMap.js 851 B
packages/db/dist/esm/strategies/commit-completion.js 152 B
packages/db/dist/esm/strategies/debounceStrategy.js 623 B
packages/db/dist/esm/strategies/queueStrategy.js 492 B
packages/db/dist/esm/strategies/serial-pacer.js 457 B
packages/db/dist/esm/strategies/throttleStrategy.js 694 B
packages/db/dist/esm/sync-persistence.js 656 B
packages/db/dist/esm/sync-receipt.js 210 B
packages/db/dist/esm/transaction-commit-work.js 345 B
packages/db/dist/esm/transactions.js 2.57 kB
packages/db/dist/esm/utils.js 1.7 kB
packages/db/dist/esm/utils/array-utils.js 265 B
packages/db/dist/esm/utils/browser-polyfills.js 268 B
packages/db/dist/esm/utils/btree.js 1.59 kB
packages/db/dist/esm/utils/callbacks.js 209 B
packages/db/dist/esm/utils/comparison.js 1.88 kB
packages/db/dist/esm/utils/cursor.js 752 B
packages/db/dist/esm/utils/error.js 267 B
packages/db/dist/esm/utils/get-or-create.js 154 B
packages/db/dist/esm/utils/index-optimization.js 1.78 kB
packages/db/dist/esm/utils/source-record.js 141 B
packages/db/dist/esm/utils/type-guards.js 221 B
packages/db/dist/esm/utils/uuid.js 511 B
packages/db/dist/esm/virtual-props.js 383 B
packages/react-db/dist/esm/DbProvider.js 319 B
packages/react-db/dist/esm/development.js 200 B
packages/react-db/dist/esm/HydrationBoundary.js 273 B
packages/react-db/dist/esm/index.js 314 B
packages/react-db/dist/esm/source-id-bindings.js 390 B
packages/react-db/dist/esm/useLiveInfiniteQuery.js 1.3 kB
packages/react-db/dist/esm/useLiveQuery.js 2.54 kB
packages/react-db/dist/esm/useLiveQueryEffect.js 510 B
packages/react-db/dist/esm/useLiveSuspenseQuery.js 1.87 kB
packages/react-db/dist/esm/usePacedMutations.js 374 B

compressed-size-action::db-and-react-package-size

@pkg-pr-new

pkg-pr-new Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
More templates

@tanstack/angular-db

npm i https://pkg.pr.new/TanStack/db/@tanstack/angular-db@2513

@tanstack/browser-db-sqlite-persistence

npm i https://pkg.pr.new/TanStack/db/@tanstack/browser-db-sqlite-persistence@2513

@tanstack/capacitor-db-sqlite-persistence

npm i https://pkg.pr.new/TanStack/db/@tanstack/capacitor-db-sqlite-persistence@2513

@tanstack/cloudflare-durable-objects-db-sqlite-persistence

npm i https://pkg.pr.new/TanStack/db/@tanstack/cloudflare-durable-objects-db-sqlite-persistence@2513

@tanstack/convex-db-collection

npm i https://pkg.pr.new/TanStack/db/@tanstack/convex-db-collection@2513

@tanstack/db

npm i https://pkg.pr.new/TanStack/db/@tanstack/db@2513

@tanstack/db-ivm

npm i https://pkg.pr.new/TanStack/db/@tanstack/db-ivm@2513

@tanstack/db-sqlite-persistence-core

npm i https://pkg.pr.new/TanStack/db/@tanstack/db-sqlite-persistence-core@2513

@tanstack/electric-db-collection

npm i https://pkg.pr.new/TanStack/db/@tanstack/electric-db-collection@2513

@tanstack/electron-db-sqlite-persistence

npm i https://pkg.pr.new/TanStack/db/@tanstack/electron-db-sqlite-persistence@2513

@tanstack/expo-db-sqlite-persistence

npm i https://pkg.pr.new/TanStack/db/@tanstack/expo-db-sqlite-persistence@2513

@tanstack/node-db-sqlite-persistence

npm i https://pkg.pr.new/TanStack/db/@tanstack/node-db-sqlite-persistence@2513

@tanstack/offline-transactions

npm i https://pkg.pr.new/TanStack/db/@tanstack/offline-transactions@2513

@tanstack/powersync-db-collection

npm i https://pkg.pr.new/TanStack/db/@tanstack/powersync-db-collection@2513

@tanstack/powersync-direct-db-collection

npm i https://pkg.pr.new/TanStack/db/@tanstack/powersync-direct-db-collection@2513

@tanstack/preact-db

npm i https://pkg.pr.new/TanStack/db/@tanstack/preact-db@2513

@tanstack/query-db-collection

npm i https://pkg.pr.new/TanStack/db/@tanstack/query-db-collection@2513

@tanstack/react-db

npm i https://pkg.pr.new/TanStack/db/@tanstack/react-db@2513

@tanstack/react-native-db-sqlite-persistence

npm i https://pkg.pr.new/TanStack/db/@tanstack/react-native-db-sqlite-persistence@2513

@tanstack/react-router-with-db

npm i https://pkg.pr.new/TanStack/db/@tanstack/react-router-with-db@2513

@tanstack/rxdb-db-collection

npm i https://pkg.pr.new/TanStack/db/@tanstack/rxdb-db-collection@2513

@tanstack/solid-db

npm i https://pkg.pr.new/TanStack/db/@tanstack/solid-db@2513

@tanstack/supabase-db-collection

npm i https://pkg.pr.new/TanStack/db/@tanstack/supabase-db-collection@2513

@tanstack/svelte-db

npm i https://pkg.pr.new/TanStack/db/@tanstack/svelte-db@2513

@tanstack/tauri-db-sqlite-persistence

npm i https://pkg.pr.new/TanStack/db/@tanstack/tauri-db-sqlite-persistence@2513

@tanstack/trailbase-db-collection

npm i https://pkg.pr.new/TanStack/db/@tanstack/trailbase-db-collection@2513

@tanstack/vue-db

npm i https://pkg.pr.new/TanStack/db/@tanstack/vue-db@2513

commit: 8ff96c1

Name the new property's file in the guarded replay manifest. The existing
owner-completeness check caught the omitted entry in Test (db-replay).

Law: every registered property names its actual replay owner.
Reach: exhaustive registered-name comparison and two guarded campaign units.
RED: names an owner for every registered property reports
[electric.retry-renewed-hold] before the registration.
GREEN: all 125 replay tests pass; generated and full-log guarded replays
report the correct owner and executions: 1. ESLint and oracle lint pass.
Mutant: the original missing entry fails the owner-completeness comparison.
Limits: replay routing only; model, histories, checks and production stay.
@KyleAMathews
KyleAMathews merged commit 543ae59 into main Dec 2, 2026
38 checks passed
@KyleAMathews
KyleAMathews deleted the t3/fix-electric-retry-holds branch December 2, 2026 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant