fix: upgrade PostHog and Sentry to stop memory leaks - #1617
Conversation
This comment has been minimized.
This comment has been minimized.
|
We've triggered an ultrareview automatically — Upgrades PostHog and Sentry across backend, shared, and web to fix memory leaks; the large version jumps could introduce subtle behavioral regressions in telemetry.. I'll post findings when complete. An ultrareview is cubic's deepest review, catching hard-to-find bugs in the most critical PRs. It runs a longer, multi-pass analysis using cubic's most capable review models, and typically takes around 30 minutes. It consumes your team's reviewed-lines allowance at 3× the standard rate. Automated ultrareviews are disabled by default. We triggered this run as part of your trial. Want cubic to do this for every high-risk PR? Enable auto-ultrareview in your settings. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (4)
Included review availability: Your plan provides up to 8 included reviews per hour; 6 remain after this review. WalkthroughUpdated Sentry and PostHog dependency versions in the backend, shared, and web packages. Added an Unreleased changelog entry for request-context and child-span retention fixes. ChangesDependency version alignment
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to This PR updates telemetry dependencies to address memory retention issues without changing application logic, and no actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (4 skipped: 4 unsupported.) ✨ 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 |
License Audit
Weak Copyleft Packages (informational)
Resolved Packages (26)
|
There was a problem hiding this comment.
All reported issues were addressed across 5 files
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
Fixes SOU-2011
Summary
Validation
Note
Low Risk
Dependency-only patch upgrades for telemetry; no logic changes, though Sentry/PostHog still wrap production traffic so regressions would show up as tracing or analytics behavior rather than feature bugs.
Overview
Addresses SOU-2011 by bumping observability dependencies only—no application code changes.
posthog-nodeis raised from^5.24.15to^5.51.2in@sourcebot/backendand@sourcebot/web, pulling in a newer@posthog/coreso compressed event flushes no longer retain request contexts indefinitely (including the Node 24 BlobReader path called out in the PR).Sentry is aligned on
^10.71.0across@sourcebot/backend(@sentry/node,@sentry/profiling-node),@sourcebot/web(@sentry/nextjs,@sentry/profiling-node), and@sourcebot/shared(@sentry/node, previously^10.40.0), so long-lived parent spans stop accumulating unbounded child spans.The unreleased CHANGELOG entry documents the fix;
yarn.lockreflects the resolved dependency tree.Reviewed by Cursor Bugbot for commit 04afe48. Bugbot is set up for automated code reviews on this repo. Configure here.
Summary by CodeRabbit