-
Notifications
You must be signed in to change notification settings - Fork 139
fix(rivetkit): handle all top-level errors #3578
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
How to use the Graphite Merge QueueAdd the label merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Code Review: fix(rivetkit): handle all top-level errorsSummaryThis PR improves error handling across the TypeScript runner and RivetKit by adding proper error handlers to async operations, event handlers, and timers. It also introduces a new Biome linting rule to prevent future floating promises and adds a Claude Code agent for auditing error handling. ✅ Strengths1. Comprehensive Error Handling CoverageThe PR systematically adds
2. Consistent Error Logging PatternAll error handlers follow a consistent structured logging pattern: .catch((err) => {
this.log?.error({
msg: "descriptive error message",
error: stringifyError(err),
});
});3. New Error UtilityThe 4. Exported RunnerShutdownErrorMoving 5. Proactive PreventionThe Biome linting rules ( 🔍 Issues & Concerns1. Critical: Silent Error Swallowing in State Manager
|
2ce0680 to
f278f7b
Compare
Merge activity
|
PR Review: fix(rivetkit): handle all top-level errorsSummaryThis PR improves error handling across the TypeScript runner and RivetKit codebase by wrapping async operations and event handlers with proper error handling. It also adds a new Biome linting configuration to catch floating promises and misused promises, along with a new Claude agent for auditing error handling. Positive Changes1. Comprehensive Error Handling Coverage ✅The PR systematically addresses unhandled promises and async operations across critical code paths:
2. Consistent Error Logging ✅All error handlers use the new 3. Proper Error Types ✅Introduction of 4. Linting Enforcement ✅The Biome configuration now enforces Issues & Concerns1. Silent Error Handling in Background Operations
|

No description provided.