Skip to content

ui: Fix OOM exception while building Karma tests#46047

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
koorosh:ui-fix-build-failure-with-oom
Mar 17, 2020
Merged

ui: Fix OOM exception while building Karma tests#46047
craig[bot] merged 1 commit intocockroachdb:masterfrom
koorosh:ui-fix-build-failure-with-oom

Conversation

@koorosh
Copy link
Copy Markdown
Contributor

@koorosh koorosh commented Mar 12, 2020

This exception was fixed in past and that
time main root cause was tied to Helmet library.

Now this OOM exception more likely is caused by
increasing code base.
Previously, webpack configuration provided to Karma
contained devtool = sourcemap and might caused
growing memory usage along with increased codebase.

To mitigate this problem as a quick fix during
stabilization period, following non-production
changes were made:

  • Changed source maps generation for karma tests
    to use lightweight 'eval' option
  • Sourcemap preprocessors are removed

While testing locally, I couldn't get OOM exception
with following configs.

Related issue in Karma repo: karma-runner/karma#1868 (comment)

Release justification: Non-production code change

Release note: None

@koorosh koorosh requested a review from a team March 12, 2020 19:45
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@dhartunian
Copy link
Copy Markdown
Collaborator

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 16, 2020

Build failed (retrying...)

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 16, 2020

Build failed

@dhartunian
Copy link
Copy Markdown
Collaborator

bors r-

@dhartunian
Copy link
Copy Markdown
Collaborator

@koorosh sorry forgot to request: please add release justification to both the PR message and the commit:

Release justification: Non-production code change

This should be right above the Release note. thanks!

@dhartunian dhartunian self-requested a review March 16, 2020 18:47
This exception was fixed in past and that
time main root cause was tied to Helmet library.

Now this OOM exception more likely is caused by
increasing code base.
Previously, webpack configuration provided to Karma
contained `devtool = sourcemap` and might caused
growing memory usage along with increased codebase.

To mitigate this problem as a quick fix during
stabilization period, following non-production
changes were made:
- Changed source maps generation for karma tests
to use lightweight 'eval' option
- `Sourcemap` preprocessors are removed

While testing locally, I couldn't get OOM exception
with following configs.

Related issue in Karma repo:
 karma-runner/karma#1868 (comment)

Release justification: Non-production code change

Release note: None
@koorosh koorosh force-pushed the ui-fix-build-failure-with-oom branch from 60fb1d0 to eb297d5 Compare March 17, 2020 14:41
@koorosh
Copy link
Copy Markdown
Contributor Author

koorosh commented Mar 17, 2020

@koorosh sorry forgot to request: please add release justification to both the PR message and the commit:

Release justification: Non-production code change

This should be right above the Release note. thanks!

Done!

@dhartunian
Copy link
Copy Markdown
Collaborator

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 17, 2020

Build succeeded

@craig craig bot merged commit bbe20c3 into cockroachdb:master Mar 17, 2020
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