You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With SQLite transactions enabled, merging a content branch opens a separate write transaction for the merge-history checkpoint. This reproduces SQLITE_BUSY: database is locked and can leave the branch stuck in merging when recovery writes also fail.
Changes
Share the active merge transaction for SQLite history checkpoints, then persist finalization and recovery after the transaction ends.
Include transaction startup in merge recovery so a failed BEGIN records a failed merge event.
Add SQLite integration coverage for merging multiple changes, rolling back a partial merge and retrying, and retrying after a transaction startup failure.
Test Plan
Reproduced the reported SQLite lock before the fix.
Passed 3 new SQLite transaction integration tests and 23 existing merge lifecycle tests.
Passed targeted oxlint, formatting, and diff checks.
Existing branches already stuck in merging still require recovery after their database lock is released.
Auto reviews are disabled on base/target branches other than the default branch.
🗂️ Base branches to auto review: 1
^3.x$
Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Tip
🎯 Customize your risk assessments
Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.
✅ Automatic approvals, with your rules
Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Written with AI
Description
With SQLite transactions enabled, merging a content branch opens a separate write transaction for the merge-history checkpoint. This reproduces
SQLITE_BUSY: database is lockedand can leave the branch stuck inmergingwhen recovery writes also fail.Changes
Test Plan
Existing branches already stuck in
mergingstill require recovery after their database lock is released.