fix: sql_analyze false 'unknown error' telemetry (AI-5975)#426
fix: sql_analyze false 'unknown error' telemetry (AI-5975)#426anandgupta42 merged 2 commits intomainfrom
Conversation
…5975) sql.analyze returned success:false when it found lint/semantic/safety issues, causing telemetry to log ~4,000 false "unknown error" failures per day. Finding issues IS a successful analysis. - Change success flag to true when analysis completes without exceptions - Surface actual error messages to metadata.error so telemetry can distinguish real failures from successful analyses Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review to trigger a review.
Tip: disable this comment in your organization's Code Review settings.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe PR refactors error handling in SQL analysis tools. The Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
Summary
sql_analyzereturnedsuccess: falsewhen it found lint/semantic/safety issues, causing telemetry to log ~4,000 false "unknown error"core_failureevents per day (AI-5975). Finding issues is a successful analysis — changed tosuccess: true.metadata.errorso telemetry captures the actual message instead of "unknown error".Changes
packages/opencode/src/altimate/native/sql/register.tssuccess: issues.length === 0→success: truepackages/opencode/src/altimate/tools/sql-analyze.tsmetadata.errorfor real failures; fix title logicTest plan
tracing-viewer-e2e.test.tserror on main, unrelated)sql_analyzeon SQL with lint issues — should returnsuccess: truewith issues listedsql_analyzeon unparseable SQL — should returnsuccess: falsewithmetadata.errorset🤖 Generated with Claude Code
Summary by CodeRabbit