Skip to content

chore(ci): reduce Renovate memory usage#481

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/fix-renovate-oom
Jul 20, 2026
Merged

chore(ci): reduce Renovate memory usage#481
chenjiahan merged 1 commit into
mainfrom
chenjiahan/fix-renovate-oom

Conversation

@chenjiahan

@chenjiahan chenjiahan commented Jul 20, 2026

Copy link
Copy Markdown
Member

Summary

The Renovate job was terminated by the kernel OOM killer while pnpm regenerated the shared lockfile for 178 workspace projects.

This caps Renovate's Node child-process heap at 1536 MiB and limits pnpm to one worker. The tuned reproduction completed successfully with about 0.87 GiB peak RSS, leaving more memory available for the Renovate parent process and native allocations.

Related Links

@chenjiahan
chenjiahan marked this pull request as ready for review July 20, 2026 09:28
@chenjiahan
chenjiahan merged commit e63157a into main Jul 20, 2026
4 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/fix-renovate-oom branch July 20, 2026 09:29
@coderabbitai

coderabbitai Bot commented Jul 20, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 4adfae5f-0b6c-4dad-95d9-eba39418c521

📥 Commits

Reviewing files that changed from the base of the PR and between 7ba8c94 and dc4be50.

📒 Files selected for processing (1)
  • .github/renovate.json

📝 Walkthrough

Walkthrough

The Renovate configuration adds an env block setting PNPM_MAX_WORKERS to 1 and a toolSettings block setting nodeMaxMemory to 1536.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chenjiahan/fix-renovate-oom

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

colinaaa added a commit to lynx-family/lynx-stack that referenced this pull request Jul 20, 2026
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Chores**
* Updated automated dependency maintenance settings to limit resource
usage during lockfile updates.
* Reduced parallel processing and capped memory allocation to improve
reliability and avoid timeouts.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

## Summary

Ported from
[rstackjs/rstack-examples#481](rstackjs/rstack-examples#481).

The Renovate lockfile-maintenance job risks being killed by the kernel
OOM killer when pnpm regenerates the shared lockfile across this large
workspace (100+ projects).

This caps Renovate's Node child-process heap at 1536 MiB
(`toolSettings.nodeMaxMemory`) and limits pnpm to a single worker
(`PNPM_MAX_WORKERS=1`), leaving more memory available for the Renovate
parent process and native allocations.

## Related Links

-
https://docs.renovatebot.com/mend-hosted/faq/#im-hitting-a-timeout--kernel-out-of-memory-limit-with-a-pnpmyarn-project

## Checklist

- [x] Tests updated (or not required).
- [x] Documentation updated (or not required).
- [x] Changeset added, and when a BREAKING CHANGE occurs, it needs to be
clearly marked (or not required).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant