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

Bug: Memory Leak in yarn test #204

Open
kulla opened this issue Apr 4, 2022 · 3 comments
Open

Bug: Memory Leak in yarn test #204

kulla opened this issue Apr 4, 2022 · 3 comments
Assignees
Labels
api.serlo.org bug Something isn't working

Comments

@kulla
Copy link
Member

kulla commented Apr 4, 2022

We have a memory leak in yarn test which results in failing test (see for example https://github.com/serlo/api.serlo.org/runs/5821681118?check_suite_focus=true):

yarn test --logHeapUsage
 PASS  __tests__/schema/notification.ts (32.181 s, 740 MB heap size)
 PASS  __tests__/schema/uuid/abstract-repository.ts (23.637 s, 1187 MB heap size)
 PASS  __tests__/schema/uuid/user.ts (13.955 s, 564 MB heap size)
 PASS  __tests__/schema/entity/add-revision.ts (8.045 s, 562 MB heap size)
 PASS  __tests__/schema/entity/create.ts (7.189 s, 742 MB heap size)
 PASS  __tests__/schema/uuid/abstract-uuid.ts (7.82 s, 614 MB heap size)
 PASS  __tests__/schema/user/delete-bots.ts (6.179 s, 728 MB heap size)
 PASS  __tests__/schema/thread/set-thread-archived.ts (6.141 s, 692 MB heap size)
 PASS  __tests__/schema/thread/create-comment.ts (5.26 s, 844 MB heap size)
 PASS  __tests__/schema/thread/create-thread.ts (5.149 s, 975 MB heap size)
 PASS  __tests__/schema/thread/thread.ts (1116 MB heap size)
 PASS  __tests__/schema/user/delete-regular-users.ts (1209 MB heap size)
 PASS  __tests__/schema/entity/checkout-revision.ts (1325 MB heap size)
 PASS  __tests__/schema/cache.ts (1426 MB heap size)
 PASS  __tests__/schema/entity/reject-revision.ts (1535 MB heap size)
 PASS  __tests__/schema/events.ts (1657 MB heap size)
 PASS  __tests__/internals/sentry.ts (1729 MB heap size)
 PASS  __tests__/schema/uuid/course.ts (1842 MB heap size)
 PASS  __tests__/schema/subject.ts (1936 MB heap size)
 PASS  __tests__/schema/user/set-email.ts (2010 MB heap size)
 PASS  __tests__/schema/page/checkout-revision.ts (2117 MB heap size)
 PASS  __tests__/schema/uuid/abstract-taxonomy-term-child.ts (2218 MB heap size)
 PASS  __tests__/schema/subscription.ts (2301 MB heap size)
 PASS  __tests__/schema/page/reject-revision.ts (1165 MB heap size)
 PASS  __tests__/schema/uuid/abstract-navigation-child.ts (1264 MB heap size)
 PASS  __tests__/schema/taxonomy-term/set-name-and-description.ts (1353 MB heap size)
 PASS  __tests__/schema/authorization.ts (1441 MB heap size)
 PASS  __tests__/schema/uuid/grouped-exercise.ts (1518 MB heap size)
 PASS  __tests__/schema/page/add-revision.ts (1601 MB heap size)
 PASS  __tests__/schema/user/set-description.ts (1689 MB heap size)
 PASS  __tests__/schema/page/create.ts (1770 MB heap size)
 PASS  __tests__/schema/thread/set-comment-state.ts (1852 MB heap size)
 PASS  __tests__/schema/thread/set-thread-state.ts (1943 MB heap size)
 PASS  __tests__/schema/uuid/course-page.ts (2012 MB heap size)
 PASS  __tests__/schema/uuid/exercise-group.ts (2101 MB heap size)
 PASS  __tests__/schema/uuid/page.ts (2179 MB heap size)
 PASS  __tests__/schema/uuid/solution.ts (2255 MB heap size)
 PASS  __tests__/schema/uuid/set-state.ts (2337 MB heap size)
 PASS  __tests__/schema/uuid/article.ts (2417 MB heap size)
 PASS  __tests__/schema/metadata.ts (2496 MB heap size)
 PASS  __tests__/schema/uuid/video.ts (2570 MB heap size)
 PASS  __tests__/schema/uuid/abstract-exercise.ts (1690 MB heap size)
 PASS  __tests__/schema/uuid/event.ts (1770 MB heap size)
 PASS  __tests__/schema/uuid/exercise.ts (1848 MB heap size)
 PASS  __tests__/schema/uuid/applet.ts (1925 MB heap size)
 PASS  __tests__/schema/uuid/taxonomy-term.ts (1998 MB heap size)
 PASS  __tests__/schema/user/potential-spam-users.ts (2072 MB heap size)
 PASS  __tests__/schema/license.ts (2150 MB heap size)
 PASS  __tests__/schema/uuid/unsupported-uuid.ts (2209 MB heap size)
 PASS  __tests__/examples/data-sources/how-to-create-a-mutation.ts (2274 MB heap size)
 PASS  __tests__/examples/data-sources/how-to-create-a-query.ts (2341 MB heap size)
 PASS  __tests__/internals/authentication.ts (2404 MB heap size)
 PASS  __tests__/schema/connection.ts (2467 MB heap size)
 PASS  __tests__/internals/data-sources.ts (2534 MB heap size)

See https://making.close.com/posts/finding-the-cause-of-a-memory-leak-in-jest

@kulla kulla added the bug Something isn't working label Apr 4, 2022
@kulla kulla self-assigned this Apr 4, 2022
@CodingDive
Copy link

CodingDive referenced this issue in serlo/api.serlo.org Jun 2, 2023
hugotiburtino referenced this issue in serlo/api.serlo.org Jun 15, 2023
@kulla kulla transferred this issue from serlo/api.serlo.org Jun 23, 2023
@kulla
Copy link
Member Author

kulla commented Jun 23, 2023

moved to backlog since we need to wait until jestjs/jest#11956 is fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api.serlo.org bug Something isn't working
Projects
No open projects
Status: Triage
Development

No branches or pull requests

3 participants