Skip to content

fix(worktree): retry pre-branch git fetch once, log real failure reason - #528

Merged
getappz merged 3 commits into
masterfrom
task/496-worktree-log-real-git-error-on-fetch-fal
Aug 16, 2026
Merged

getappz merged 3 commits into
masterfrom
task/496-worktree-log-real-git-error-on-fetch-fal

Conversation

@getappz

@getappz getappz commented Aug 16, 2026

Copy link
Copy Markdown
Owner

Summary

Test plan

  • cargo build -p flare-git-core
  • cargo test -p flare-git-core --lib worktree -- 61 passed (2 new: retry-then-succeed, retry-then-still-fails)
  • cargo clippy -p flare-git-core --lib -- -A unsafe_code -A clippy::pedantic -D warnings -- clean

…ailure reason

Fetching origin's target branch before branching a new task branch off it
silently swallowed the actual git error and fell back to the (possibly
stale) local ref on any failure. This caused a real incident: item #495
(issue #483) branched off a stale local master because a transient fetch
failure went unlogged, missing an already-merged fix for the very issue
it was meant to work on.

Adds a single retry with a short fixed delay, and logs the real stderr/
error on the fallback path instead of a generic message.

Agentflare-Agent: claude-code_2-1-233_agent
Agentflare-Branch: task/496-worktree-log-real-git-error-on-fetch-fal
Agentflare-Item: 496
@coderabbitai

coderabbitai Bot commented Aug 16, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 59 minutes

Limit details: You’ve used all 1 included review currently available under your plan. You completed 68 included PR reviews in the past 7 days; at that activity level, included reviews refill at 1 review per hour.

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 9e6f1c48-f880-4ccf-a363-d5253d1033b5

📥 Commits

Reviewing files that changed from the base of the PR and between 33296af and ac92afc.

📒 Files selected for processing (2)
  • crates/flare-git-core/src/worktree.rs
  • crates/flare-git-core/src/worktree_tests.rs

Comment @coderabbitai help to get the list of available commands.

…og-real-git-error-on-fetch-fal

Agentflare-Agent: 1
Agentflare-Branch: task/496-worktree-log-real-git-error-on-fetch-fal
Agentflare-Item: 496
…og-real-git-error-on-fetch-fal

Agentflare-Agent: 1
Agentflare-Branch: task/496-worktree-log-real-git-error-on-fetch-fal
Agentflare-Item: 496
@getappz
getappz merged commit 9c3a113 into master Aug 16, 2026
16 checks passed
@getappz
getappz deleted the task/496-worktree-log-real-git-error-on-fetch-fal branch August 16, 2026 15:59
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