-
Notifications
You must be signed in to change notification settings - Fork 3k
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(ci): further consolidate NODE_OPTIONS #12217
base: master
Are you sure you want to change the base?
fix(ci): further consolidate NODE_OPTIONS #12217
Conversation
985476a
to
44566ab
Compare
44566ab
to
2390b28
Compare
2390b28
to
79088ac
Compare
datahub-web-react/package.json
Outdated
"analyze": "NODE_OPTIONS='--max-old-space-size=5120 --openssl-legacy-provider' source-map-explorer 'dist/assets/*.js'", | ||
"start": "NODE_OPTIONS='--max-old-space-size=5120 --openssl-legacy-provider' yarn run generate && NODE_OPTIONS='--max-old-space-size=5120 --openssl-legacy-provider' vite", | ||
"ec2-dev": "NODE_OPTIONS='--max-old-space-size=5120 --openssl-legacy-provider' yarn run generate && CI=true NODE_OPTIONS='--max-old-space-size=5120 --openssl-legacy-provider' vite", | ||
"build": "NODE_OPTIONS='--max-old-space-size=5120 --openssl-legacy-provider' yarn run generate && CI=false NODE_OPTIONS='--max-old-space-size=5120 --openssl-legacy-provider' vite build", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should only be necessary on the vite build
step
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed it from several of them. The storybook build
causes OOM in Saas. Enabling coverage on the test also triggers OOM, so more then just vite build
is likely warranted.
79088ac
to
dc0d6bb
Compare
dc0d6bb
to
a80d6a5
Compare
a80d6a5
to
f1eaba6
Compare
@@ -79,7 +79,7 @@ task yarnServe(type: YarnTask, dependsOn: [yarnInstall, yarnGenerate]) { | |||
|
|||
task yarnTest(type: YarnTask, dependsOn: [yarnInstall, yarnGenerate]) { | |||
// Explicitly runs in non-watch mode. | |||
args = ['run', 'test', 'run'] | |||
args = ['run', project.hasProperty('withCoverage') ? 'test-coverage' : 'test', 'run'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is this property being set? We would want the coverage to be generated when gradle runs the test
task (like all other projects).
Prevent having to track down and modify memory settings in multiple places for NODE_OPTIONS
Checklist