applyPackageRules deep-clones the entire config per matching rule per dependency — O(alerts × rules × dep-instances) CPU starves the event loop on large monorepos until host errors abort the run #44444
-
How are you running Renovate?Self-hosted Renovate CLI (official Which platform are you running Renovate on?GitHub.com Which version of Renovate are you using?43.251.3 (behavior observed consistently across 43.200.0 → 43.255.x) Please tell us more about your question or problemSummary: on a large monorepo, ~88% of the whole Renovate run's CPU goes into Repo shape: monorepo with ~400 package files (~180 CPU profile (3-minute capture via inspector during the lookup phase, totals of self-time):
Every hot Observed impact measurements:
Why it's fatal and not just slow: the multi-minute event-loop stalls kill unrelated in-flight requests; a failed Suggested directions (happy to help with a PR if maintainers agree on an approach):
I can share the full Logs (if relevant)Representative sequence during a stall (log output drops from ~5 lines/s to ~1 line/20-30s, then all failures land in one burst): |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Issue cretaed: #44459 PR welcome |
Beta Was this translation helpful? Give feedback.
Issue cretaed: #44459
PR welcome