-
Notifications
You must be signed in to change notification settings - Fork 141
[Graphite MQ] Draft PR GROUP:spec_f90959 (PRs 3655, 3656, 3657, 3660, 3721, 3749, 3752) #3753
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
[Graphite MQ] Draft PR GROUP:spec_f90959 (PRs 3655, 3656, 3657, 3660, 3721, 3749, 3752) #3753
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
Pull Request ReviewThis is a Graphite merge queue PR combining 7 individual PRs (#3655, #3656, #3657, #3660, #3721, #3749, #3752). Here's my comprehensive review: Overall Assessment✅ Generally Good: The PR includes important fixes (memory leak, metrics revert) and infrastructure improvements (dashboard updates, config cleanup). The memory leak fix in PR #3752 is particularly critical. Critical Issues1. Memory Leak Fix (#3752) - Critical But Well ImplementedFile: Positive Points:
Concerns:
Code Quality Issues2. Inconsistent Error Handling PatternFile: } else {
use rivet_guard_core::proxy_service::StructuredResponse;
Ok(RoutingOutput::Response(StructuredResponse {
status: StatusCode::NOT_FOUND,
message: std::borrow::Cow::Borrowed("Not found"),
docs: None,
}))
}Changed to: }
bail!("bad path");Issue: This change removes structured error response in favor of generic Recommendation: Keep the structured response or at least use a descriptive error message that matches the previous "Not found" semantics. 3. Metrics Naming Convention Change (#3660)File: Changes:
Concerns:
Recommendations:
4. Cache Metric Calculation Fix (#3660)File: Old (incorrect): New (correct): Assessment: ✅ Good fix! The old query was aggregating ratios which is mathematically incorrect. The new version properly calculates the ratio of aggregated values. Performance Considerations5. Lock-Free Data Structures ✅The switch to
Benchmark suggestion: Consider load testing the pubsub system to verify memory leak is fixed and performance improved. 6. Postgres Driver Connection HandlingFile: Changes:
Assessment: ✅ Good simplification, but verify:
Testing recommendation: Add integration tests for connection recovery scenarios. Security Concerns7. No Security Issues Identified ✅
Test Coverage8. Missing Tests
|
This draft PR was created by the Graphite merge queue.
Trunk will be fast forwarded to the HEAD of this PR when CI passes, and the original PRs will be closed.
The following PRs are included in this draft PR: