fix(discovery-index): bound TtlCache by a max-entry cap enforced on set - #10135
fix(discovery-index): bound TtlCache by a max-entry cap enforced on set#10135bitfathers94 wants to merge 1 commit into
Conversation
Without a cap, a key that is never re-read (e.g. a scope no caller repeats, or a soft-claim that's never released) stays resident in the long-lived module-level caches for the whole process lifetime. set() now drops already-expired entries first, then evicts the oldest-inserted entry until the store is back at or under the cap.
|
Caution 🛑 LoopOver review result - fixes requiredReview updated: 2026-07-31 08:51:23 UTC
Review summary Nits — 3 non-blocking
CI checks failing
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed 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. Decision record
🟩 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.
|
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report❌ Patch coverage is
❌ Your patch check has failed because the patch coverage (91.66%) is below the target coverage (99.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #10135 +/- ##
=======================================
Coverage 79.83% 79.84%
=======================================
Files 282 283 +1
Lines 58695 58723 +28
Branches 6909 6917 +8
=======================================
+ Hits 46862 46889 +27
Misses 11544 11544
- Partials 289 290 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
fix(discovery-index): bound TtlCache by a max-entry cap enforced on set
Without a cap, a key that is never re-read (e.g. a scope no caller repeats,
or a soft-claim that's never released) stays resident in the long-lived
module-level caches for the whole process lifetime. set() now drops
already-expired entries first, then evicts the oldest-inserted entry until
the store is back at or under the cap.
Closes #10029