fix(db): age-prune webhook_events via RETENTION_POLICY#8430
fix(db): age-prune webhook_events via RETENTION_POLICY#8430marktech0813 wants to merge 1 commit into
Conversation
Complete the unfinished JSONbored#3896 retention coverage so inbound webhook delivery rows stop growing unbounded and the D1 size probe monitors them (JSONbored#8381). Co-authored-by: Cursor <cursoragent@cursor.com>
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8430 +/- ##
===========================================
+ Coverage 79.34% 89.60% +10.26%
===========================================
Files 791 98 -693
Lines 79289 22763 -56526
Branches 23950 3892 -20058
===========================================
- Hits 62909 20396 -42513
+ Misses 13305 2187 -11118
+ Partials 3075 180 -2895
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Caution 🛑 LoopOver review result - fixes requiredReview updated: 2026-07-24 13:15:23 UTC
Review summary Nits — 4 non-blocking
CI checks failing
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionPartially addressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
|
LoopOver is closing this pull request on the maintainer's behalf (CI is failing (build + boot smoke test)). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |
Summary
{ table: "webhook_events", column: "received_at", days: 90 }toRETENTION_POLICY, finishing the unfinished table from closed feat(selfhost): add bounded retention for webhook_events, audit_events, ai_usage_events, product_usage_events, agent_context_snapshots #3896.webhook_eventsis pruned past the cutoff and included inDEFAULT_MONITORED_TABLES.Fixes #8381
Test plan
npx vitest run test/unit/retention.test.tsnpx vitest run test/unit/selfhost-d1-size-probe.test.tsMade with Cursor