-
Notifications
You must be signed in to change notification settings - Fork 129
fix(runner): dupe onActorStop call #3321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(runner): dupe onActorStop call #3321
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
PR Review: Fix duplicate onActorStop callSummaryThis PR correctly removes a duplicate AnalysisWhat was happening:
Why this is correct:
Code Quality: ✅ ExcellentStrengths:
Observations:
Testing Considerations
Security: ✅ No concernsPerformance: ✅ Improvement
Verdict: APPROVE ✅This is a straightforward bug fix that correctly removes duplicate callback invocation. The remaining implementation properly handles the Recommendation: Merge after CI passes. |
76fdd5c to
e9df1f3
Compare
b62cf5d to
4fb3477
Compare
Code Review for PR #3321: fix(runner): dupe onActorStop callSummaryThis PR removes a duplicate call to AnalysisThe Fix:
The removed duplicate code was incorrectly calling Code Quality: ✅ ExcellentPositive aspects:
Potential Issues: ✅ None FoundNo bugs detected:
Performance: ✅ ImprovedImpact:
Security: ✅ No ConcernsNo security implications from this change. Test Coverage:
|
4fb3477 to
f89391d
Compare
e9df1f3 to
b677d17
Compare
Code ReviewSummaryThis PR correctly removes a duplicate call to AnalysisThe Issue:
This would cause the callback to be invoked twice for every forced actor stop, which could lead to:
The Fix:
VerificationThe single remaining
Additional Observations✅ Code Quality: The change is minimal and surgical - only removes the duplicate code Test CoverageWhile the lifecycle tests are currently commented out, when re-enabled they should verify:
Consider adding a specific test case that tracks the number of VerdictLGTM ✓ - This is a correct bug fix that removes duplicate callback invocations. No issues found. |
Pull Request ReviewSummaryThis PR fixes a bug where Code Quality ✅
Bug Analysis ✅The duplicate call was problematic because:
Error Handling ✅The remaining Best Practices ✅
Testing RecommendationsConsider adding/verifying tests that:
Verdict: LGTM ✅This is a clean bug fix that removes duplicate functionality. The remaining code properly handles the actor stop lifecycle. Reviewed according to repository conventions in CLAUDE.md |
f89391d to
cadd5cb
Compare
Code ReviewSummaryThis PR removes a duplicate call to AnalysisThe Issue:
This is clearly a duplicate call that would cause the stop handler to execute twice for every force stop operation. Where
Positive Observations
Concerns & Questions
Recommendations
Security ConsiderationsNo security concerns identified. This is a straightforward bug fix. Performance ConsiderationsThis fix actually improves performance by eliminating unnecessary duplicate work. Verdict✅ LGTM with recommendations - This is a correct bug fix that removes duplicate callback invocation. The code change itself is solid, but the lack of test coverage and PR documentation are concerning for long-term maintenance. Review generated by Claude Code |
Merge activity
|
16142c0 to
22d5ec0
Compare
cadd5cb to
0f73c04
Compare
|
Deployment failed with the following error: Learn More: https://vercel.com/docs/limits#rate-limits |
Code ReviewSummaryThis PR removes a duplicate call to AnalysisWhat was wrong:
Why this is correct:
Code flow verification:
Quality AssessmentPositive:
Considerations:
Test CoverageThe test file at
Recommendation: Consider uncommenting and running these tests to ensure no regressions. Security & Performance
VerdictLGTM ✅ This is a straightforward bug fix that correctly removes duplicate callback invocation. The change improves correctness without introducing any risks. Review generated with Claude Code |
Pull Request Review: fix(runner): dupe onActorStop callSummaryThis PR correctly removes a duplicate call to Code Quality ✅Positive aspects:
Before the fix: async forceStopActor(actorId: string, generation?: number) {
const actor = this.#removeActor(actorId, generation);
if (!actor) return;
// First call (correct location)
await this.#config.onActorStop(actorId, actor.generation);
this.#sendActorStateUpdate(actorId, actor.generation, "stopped");
// Second call (duplicate - now removed) ❌
this.#config.onActorStop(actorId, actor.generation).catch((err) => {
logger()?.error({...});
});
}After the fix: async forceStopActor(actorId: string, generation?: number) {
const actor = this.#removeActor(actorId, generation);
if (!actor) return;
await this.#config.onActorStop(actorId, actor.generation);
this.#sendActorStateUpdate(actorId, actor.generation, "stopped");
}Potential Issues & Considerations1. Error Handling Difference
|

No description provided.