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

[ui] Fix Storybook memory bug #22742

Merged
merged 1 commit into from
Jun 27, 2024
Merged

Conversation

hellendag
Copy link
Member

@hellendag hellendag commented Jun 26, 2024

Summary & Motivation

Disable react-docgen in Storybook build, because pulling in massive generated GraphQL types is causing memory failures in CI/Vercel.

How I Tested These Changes

Add a memory-limited build command to package.json:

"build-storybook-limited": "NODE_OPTIONS=--max_old_space_size=2048 storybook build"

Run this to repro the memory failure. Kill docgen (as in the PR), rerun. Verify that the build completes correctly.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @hellendag and the rest of your teammates on Graphite Graphite

@hellendag hellendag requested review from bengotow and salazarm June 26, 2024 21:29
@hellendag hellendag marked this pull request as ready for review June 26, 2024 21:29
Copy link

Deploy preview for dagit-storybook ready!

✅ Preview
https://dagit-storybook-jsve5r8wb-elementl.vercel.app
https://dish-disable-storybook-docgen.components-storybook.dagster-docs.io

Built with commit 19646c0.
This pull request is being automatically deployed with vercel-action

Copy link

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-m4bvb1j30-elementl.vercel.app
https://dish-disable-storybook-docgen.core-storybook.dagster-docs.io

Built with commit 19646c0.
This pull request is being automatically deployed with vercel-action

Copy link
Collaborator

@bengotow bengotow left a comment

Choose a reason for hiding this comment

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

Ahh wow good catch

@hellendag hellendag merged commit dd2c4e7 into master Jun 27, 2024
3 checks passed
@hellendag hellendag deleted the dish/disable-storybook-docgen branch June 27, 2024 00:26
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.

3 participants