fix: recover renamed GitHub dispatch lifecycles#153
Conversation
|
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 (5)
📝 WalkthroughWalkthroughGitHub lifecycle recovery now reads stable ChangesGitHub lifecycle alias recovery
Estimated code review effort: 3 (Moderate) | ~25 minutes Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 |
There was a problem hiding this comment.
Code Review
This pull request introduces deduplication of queued GitHub lifecycle aliases during startup to handle renamed issues and prevent hot-loops on obsolete title paths. The feedback suggests optimizing the deduplication process by filtering the lifecycles array in memory to avoid redundant state store I/O overhead, and safeguarding the sorting comparator against potential NaN values from missing updatedAtMs properties.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
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 `@src/orchestrator/factory.ts`:
- Around line 2749-2803: Prevent `#deduplicateQueuedGithubLifecycleAliases` from
unconditionally deleting a queued alias based on stale snapshot state. Add or
use a StateStore operation that conditionally clears the lifecycle only when its
expected owner, epoch, and queued phase still match, and invoke it for each
loser; treat a failed condition as a concurrent promotion and leave the
lifecycle intact. Preserve the existing deduplication metrics and timer cleanup
only after a successful fenced clear.
🪄 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: 816033c6-cc5e-426b-b5c1-a5ed58460343
📒 Files selected for processing (2)
src/orchestrator/factory.test.tssrc/orchestrator/factory.ts
Summary
by-idaliasesVerification
npm run buildnpm test(1,072 passed)npm run verify:e2e(9/9 packed-consumer checks; SHA7d3264500d64901bf8fe4e6b7f07679b95af520a)