Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Storybook Build running out of memory #7520

Merged
merged 3 commits into from
Oct 9, 2024
Merged

Fix Storybook Build running out of memory #7520

merged 3 commits into from
Oct 9, 2024

Conversation

martmull
Copy link
Contributor

@martmull martmull commented Oct 9, 2024

Increases the node process memory to avoid FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory errors

@martmull martmull marked this pull request as ready for review October 9, 2024 08:38
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This pull request addresses memory-related issues in the build process and makes minor code readability improvements.

  • Increased Node.js process memory limit from 6000MB to 8000MB in packages/twenty-front/project.json for the 'storybook:build' target
  • Added empty lines for improved readability in packages/twenty-front/src/modules/workflow/components/WorkflowEditActionFormSendEmail.tsx
  • Changes aim to prevent 'JavaScript heap out of memory' errors during builds
  • Modification may impact system resources and build performance

2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

@@ -67,7 +67,7 @@
"test": {},
"storybook:build": {
"options": {
"env": { "NODE_OPTIONS": "--max_old_space_size=6000" }
"env": { "NODE_OPTIONS": "--max_old_space_size=8000" }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a lot of RAM, I have already investigated it and the solution is to split the project into pieces OR lazy loading strategy on some app branches (already done for Settings)

Copy link
Member

@charlesBochet charlesBochet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Let's merge once tests are green

@charlesBochet charlesBochet changed the title Fix main Fix Storybook Build running out of memory Oct 9, 2024
@martmull martmull merged commit 9b9e03f into main Oct 9, 2024
13 checks passed
@martmull martmull deleted the fix-main branch October 9, 2024 09:08
harshit078 pushed a commit to harshit078/twenty that referenced this pull request Oct 14, 2024
Increases the node process memory to avoid `FATAL ERROR: Reached heap
limit Allocation failed - JavaScript heap out of memory` errors
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.

2 participants