fix(mount): stop repeated stalled bootstrap checkpoints#361
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reached
Next review available in: 49 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the 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 configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe mount syncer now tracks unchanged bootstrap checkpoints, raises a typed error at a configurable stall limit, persists terminal state, and resets counters when progress or completion occurs. Polling mounts terminate on this error while continuing to suppress ordinary cycle failures. ChangesBootstrap stall guard
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant PollingMount
participant Syncer
participant RemoteServer
participant StateFile
PollingMount->>Syncer: run reconcile
Syncer->>RemoteServer: pull bootstrap page
RemoteServer-->>Syncer: page or failure
Syncer->>StateFile: compare and persist checkpoint
StateFile-->>Syncer: stall count
Syncer-->>PollingMount: continue or BootstrapStalledError
PollingMount-->>PollingMount: terminate on typed error
Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Relayfile Eval ReviewRun: Passed: 4 | Needs human: 0 | Reviewable: 0 | Missing output: 0 | Failed: 0 | Skipped: 0 Human Review CasesNo reviewable human-review cases captured Relayfile output. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@internal/mountsync/syncer.go`:
- Around line 4582-4587: Update recordBootstrapCycle to leave
BootstrapStallCycles unchanged when cause is or wraps context.Canceled and there
is no checkpoint advancement, while preserving the existing reset behavior and
continuing to count context.DeadlineExceeded and other errors.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 46d83347-ad0b-4598-a13e-fc5e061c70bf
📒 Files selected for processing (6)
cmd/relayfile-mount/main.gocmd/relayfile-mount/main_test.gointernal/mountsync/bootstrap_test.gointernal/mountsync/syncer.gointernal/mountsync/syncer_test.gointernal/mountsync/tombstones_test.go
Fixes #360.\n\nAdds a persisted bootstrap checkpoint stall guard (default 20, configurable with RELAYFILE_BOOTSTRAP_STALL_CYCLES), surfaces a typed hard failure, and stops the mount polling runner when that failure recurs.\n\nCoverage includes partial unversioned tree checkpoints, persistence/reset behavior, delete safety, normal retry behavior, and the timer-path runner exit.\n\nValidation: go test ./... -count=1; go vet ./...; git diff --check.