Skip to content

Checkpoints v2: Push v2 refs in parallel and clean up output#1094

Merged
computermode merged 5 commits intomainfrom
push-v2-in-parallel
May 2, 2026
Merged

Checkpoints v2: Push v2 refs in parallel and clean up output#1094
computermode merged 5 commits intomainfrom
push-v2-in-parallel

Conversation

@computermode
Copy link
Copy Markdown
Contributor

@computermode computermode commented May 1, 2026

https://entire.io/gh/entireio/cli/trails/277

Push v2 checkpoints in parallel + reduce verbosity in output messaging.

[entire] Pushing v2/main to dogfood....
[entire] Syncing v2/main with remote.......... done
[entire] Pushing v2/main to dogfood...... done
[entire] Pushing v2/full/current to dogfood....
[entire] Syncing v2/full/current with remote........ done
[entire] Pushing v2/full/current to dogfood...... done
[entire] Pushing v2/full/0000000000023 to dogfood....
[entire] Syncing v2/full/0000000000023 with remote........... done
[entire] Pushing v2/full/0000000000023 to dogfood...... done
➜  test-repo git:(main) ✗ git push origin hEAD
[entire] Syncing and pushing v2 checkpoints...
[entire] Pushing v2/main, v2/full/current...
[entire] All v2 checkpoints pushed

Note

Medium Risk
Moderate risk because it changes the checkpoint push flow to run ref pushes concurrently and alters recovery/error reporting; concurrency could surface racey git/working-dir assumptions or make failures harder to reproduce.

Overview
Updates v2 checkpoint pushing to sync/push v2/main, v2/full/current, and the latest archived generation concurrently, replacing per-ref progress spam with a single aggregated header, per-ref warnings, and a final success message.

Refactors the v2 push path to return structured results (v2RefPushResult) and perform fetch+merge recovery per ref without emitting interleaved output, and adds --no-write-fetch-head to checkpoint git fetch calls to avoid updating FETCH_HEAD.

Tests are updated to capture stderr and assert the new aggregated messaging, and add coverage that failed pushes still name the specific ref that couldn’t be synced/pushed.

Reviewed by Cursor Bugbot for commit fb95c19. Configure here.

Copilot AI review requested due to automatic review settings May 1, 2026 17:30
@computermode computermode requested a review from a team as a code owner May 1, 2026 17:30
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the v2 checkpoint pre-push behavior to reduce noisy per-ref progress output and speed up pushing by pushing multiple v2 refs concurrently.

Changes:

  • Push v2 refs (v2/main, v2/full/current, latest v2/full/<generation>) in parallel and emit aggregated, less-verbose stderr output.
  • Add --no-write-fetch-head to v2 fetch operations used during conflict recovery to avoid writing FETCH_HEAD.
  • Expand test coverage to assert the new aggregated output format and to ensure failures still name the ref that failed.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
cmd/entire/cli/strategy/push_v2.go Parallelizes v2 ref pushing and consolidates user-facing output; adjusts fetch options to avoid writing FETCH_HEAD.
cmd/entire/cli/strategy/push_v2_test.go Adds assertions for aggregated output and a new test ensuring failures still identify the failed ref.

Comment thread cmd/entire/cli/strategy/push_v2.go
Comment thread cmd/entire/cli/strategy/push_v2.go Outdated
Entire-Checkpoint: 433d262793b3
Entire-Checkpoint: 49c7108d9f93
@computermode computermode force-pushed the push-v2-in-parallel branch from 265592a to ad2b9f7 Compare May 1, 2026 22:41
Entire-Checkpoint: c6546764d9f0

Co-authored-by: Sven Pfleiderer <sven@entire.io>
@computermode computermode force-pushed the push-v2-in-parallel branch from ad2b9f7 to 36a727a Compare May 1, 2026 22:42
pfleidi
pfleidi previously approved these changes May 1, 2026
Entire-Checkpoint: f10bf2cbdfc7
@computermode computermode merged commit 589aba5 into main May 2, 2026
9 checks passed
@computermode computermode deleted the push-v2-in-parallel branch May 2, 2026 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants