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

huge memory consumption while running frontend unit testcases locally #27927

Open
3 tasks done
jzhao62 opened this issue Apr 6, 2024 · 0 comments
Open
3 tasks done

huge memory consumption while running frontend unit testcases locally #27927

jzhao62 opened this issue Apr 6, 2024 · 0 comments

Comments

@jzhao62
Copy link

jzhao62 commented Apr 6, 2024

Bug description

  • memory consumption ramps from 7GB to 32GB while running npm run test which is not quite ideal
  • im running this on my personal machine. cannot run all tests in a single batch, will need to run tests in multiple batches if this problem is persistant

How to reproduce the bug

  • check out master, pull latest changes
  • cd superset-frontend
  • npm run test as indicated in the doc
  • all your processes crashes :P

Screenshots/recordings

sample-snapshot-2024-04-05_23.35.40.mp4

Superset version

master / latest-dev

Python version

3.10

Node version

18 or greater

Browser

Chrome

Additional context

  • if this is intended, this is still not ideal as most of the situations people will have less than 32G memory from their dev machines. would could consider modify the scripts to let jest run tests in multiple batches
  • if this is not an intendend behavior, could indicate a memory leak when setting up test suites or problem within Jest.
  • system setting
    Screenshot_20240405_235345

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
@jzhao62 jzhao62 changed the title Potential Memory Leak while frontend unit testcases Potential Memory Leak while running frontend unit testcases locally Apr 6, 2024
@jzhao62 jzhao62 changed the title Potential Memory Leak while running frontend unit testcases locally Huge memory consumption while running frontend unit testcases locally Apr 6, 2024
@jzhao62 jzhao62 changed the title Huge memory consumption while running frontend unit testcases locally huge memory consumption while running frontend unit testcases locally Apr 6, 2024
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

No branches or pull requests

1 participant