Skip to content

fix(converge): fetch the merge bases' snapshots in a clone - #179

Open
PiquelChips wants to merge 1 commit into
fix/claim-a-clone-s-directory-beforefrom
fix/fetch-the-merge-bases-snapshots-in
Open

PiquelChips wants to merge 1 commit into
fix/claim-a-clone-s-directory-beforefrom
fix/fetch-the-merge-bases-snapshots-in

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

In a clone, origin converge fetched the snapshots of the change's heads, but not the snapshot of the revision they evolve from. Finding the merge base reads that snapshot, and the snapshot of every base a criss-cross history merges. A clone may never have read those, so converging failed with "object not found".

Ancestry::merge_base now takes a callback that it calls with each record before reading that record's snapshot. The workspace uses it to fetch the snapshots a clone lacks. The landing queue reads its own store and passes a callback that does nothing.

The new test converges, in a clone, a change whose merge base the clone never read. Without the fix it fails with "object … not found".

Part of #166.

Note

Written by Claude Opus 5.5 in Claude Code (via T3 Code)

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

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.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0e39a22b-b8f0-43e2-af03-813bd5e4fcb5

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

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

@PiquelChips
PiquelChips added this pull request to stack #185 November 22, 2026 20:21
@PiquelChips
PiquelChips removed this pull request from stack #185 November 22, 2026 20:22
`converge` fetched the snapshots of the change's heads, but finding their
merge base reads the snapshot of the revision they evolve from, and of
each base a criss-cross history merges, which a clone may never have
read: converging failed on an object not found. `Ancestry::merge_base`
now calls back with each record before reading its snapshot, and the
workspace fetches it there. The landing queue, which reads its own
store, passes a callback that does nothing.
@PiquelChips
PiquelChips force-pushed the fix/fetch-the-merge-bases-snapshots-in branch from 1cd06d1 to 933d4fc Compare November 22, 2026 20:22
@PiquelChips
PiquelChips force-pushed the fix/claim-a-clone-s-directory-before branch from 0368eb0 to 2cb1d16 Compare November 22, 2026 20: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.

1 participant