Skip to content

feat(sync): keep the statements a landing reads in one request - #131

Open
PiquelChips wants to merge 1 commit into
feat/syncfrom
feat/sync-push-groups
Open

PiquelChips wants to merge 1 commit into
feat/syncfrom
feat/sync-push-groups

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

A push in several requests could leave the remote with a revision whose abandonment, or a result whose replacement, is still to come, and a landing tried in between would take it.

  • A revision goes in one request with its reserved statements, such as its conflicts and its abandonment, and the statements those need.
  • All statements about one record travel in one request, with those they need or that need them.

One thing to know: a landing is decided on the evidence the remote holds. A statement and the statement it supersedes must be sent together, as push does.

Review fix: the permission test that makes the remote refuse the abandonment skips its check as root.

Note

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

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 34 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

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: 4fd32758-d895-43f1-999a-0a94a42750e6
Commits

Reviewing files that changed from the base of the PR and between 084fa67 and ef2b369.

Files selected for processing: 1

  • apps/origin-src/src/sync.rs
  • 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 #165 November 22, 2026 14:59
@PiquelChips
PiquelChips force-pushed the feat/sync-push-groups branch from 31f415e to 643b778 Compare November 22, 2026 15:04
@PiquelChips
PiquelChips force-pushed the feat/sync-push-groups branch 2 times, most recently from fabf88c to b8e3f9f Compare November 22, 2026 18:54
A push in several requests could leave the remote with a revision whose
abandonment, or a result whose replacement, is still to come, and a
landing tried in between would take it. So a revision goes in one
request with its reserved statements, such as its conflicts and its
abandonment, and the statements those need, from the first revision
they're about to the last they need. The other statements about one
record, with those they need or that need them, go in one request too.
@PiquelChips
PiquelChips force-pushed the feat/sync-push-groups branch from b8e3f9f to ef2b369 Compare November 22, 2026 19:20
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