Skip to content

Remove orphaned shape data at boot#3860

Open
magnetised wants to merge 1 commit intomagnetised/shape-db-exclusive-modefrom
magnetised/remove-orphaned-shape-data
Open

Remove orphaned shape data at boot#3860
magnetised wants to merge 1 commit intomagnetised/shape-db-exclusive-modefrom
magnetised/remove-orphaned-shape-data

Conversation

@magnetised
Copy link
Contributor

@magnetised magnetised commented Feb 17, 2026

If the number of valid shapes is 0, then just efficiently remove the shape data directory entirely, forcing a re-creation. In the case of an ephemeral shape db this will reset the shape data alongside the reset of the shape db.

If the number of valid shapes is 0, then just efficiently remove the
shape data directory entirely, forcing a re-creation. In the case of an
ephemeral shape db this will reset the shape data alongside the reset of
the shape db.
@magnetised magnetised marked this pull request as ready for review February 17, 2026 16:01
@magnetised magnetised changed the title Add exclusive mode to support AWS EFS Remove orphaned shape data at boot Feb 17, 2026
@codecov
Copy link

codecov bot commented Feb 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.07%. Comparing base (2cdda99) to head (ec1d354).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@                          Coverage Diff                           @@
##           magnetised/shape-db-exclusive-mode    #3860      +/-   ##
======================================================================
- Coverage                               87.20%   87.07%   -0.13%     
======================================================================
  Files                                      25       25              
  Lines                                    2314     2314              
  Branches                                  583      579       -4     
======================================================================
- Hits                                     2018     2015       -3     
- Misses                                    294      297       +3     
  Partials                                    2        2              
Flag Coverage Δ
packages/experimental 87.73% <ø> (ø)
packages/react-hooks 86.48% <ø> (ø)
packages/start 82.83% <ø> (ø)
packages/typescript-client 91.91% <ø> (-0.19%) ⬇️
packages/y-electric 56.05% <ø> (ø)
typescript 87.07% <ø> (-0.13%) ⬇️
unit-tests 87.07% <ø> (-0.13%) ⬇️

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.

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