Skip to content

fix: Avoid edge case with 409 causing more SSE requests - #3477

Merged
msfstef merged 2 commits into
mainfrom
msfstef/fix-ts-test-flake
Nov 20, 2025
Merged

msfstef merged 2 commits into
mainfrom
msfstef/fix-ts-test-flake

Conversation

@msfstef

@msfstef msfstef commented Nov 20, 2025

Copy link
Copy Markdown
Contributor

Fix test flake (see this run for example) caused by 409s for the shape resetting the fallback from SSE to long polling.

Not sure if 409s should reset this fallback but it does, and the test should account for it as we occasionally see these 409s from the tests overlapping each other.

@msfstef
msfstef requested a review from KyleAMathews November 20, 2025 11:33
@codecov

codecov Bot commented Nov 20, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 67.70%. Comparing base (a9eb1ad) to head (bd902e2).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3477      +/-   ##
==========================================
+ Coverage   67.61%   67.70%   +0.08%     
==========================================
  Files         183      183              
  Lines        9833     9848      +15     
  Branches      381      385       +4     
==========================================
+ Hits         6649     6668      +19     
+ Misses       3182     3178       -4     
  Partials        2        2              
Flag Coverage Δ
elixir 64.04% <ø> (+0.12%) ⬆️
elixir-client 74.47% <ø> (+0.52%) ⬆️
packages/experimental 87.73% <ø> (ø)
packages/react-hooks 86.48% <ø> (ø)
packages/typescript-client 93.53% <ø> (-0.10%) ⬇️
packages/y-electric 55.12% <ø> (ø)
postgres-140000 62.79% <ø> (+0.25%) ⬆️
postgres-150000 62.53% <ø> (?)
postgres-170000 62.67% <ø> (-0.04%) ⬇️
postgres-180000 62.77% <ø> (-0.02%) ⬇️
sync-service 63.00% <ø> (+0.08%) ⬆️
typescript 87.46% <ø> (-0.07%) ⬇️
unit-tests 67.70% <ø> (+0.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pkg-pr-new

pkg-pr-new Bot commented Nov 20, 2025 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@electric-sql/react@3477
npm i https://pkg.pr.new/@electric-sql/client@3477
npm i https://pkg.pr.new/@electric-sql/y-electric@3477

commit: bd902e2

@msfstef
msfstef merged commit e0fe70b into main Nov 20, 2025
50 of 52 checks passed
@msfstef
msfstef deleted the msfstef/fix-ts-test-flake branch November 20, 2025 13:22
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.

2 participants