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

ci: Fix a couple of memory leaks in test setups #16655

Merged
merged 1 commit into from
Dec 7, 2022
Merged

Commits on Dec 7, 2022

  1. ci: Fix a couple of memory leaks in test setups

    This fixes 2 memory leaks in our test setup:
    
    1. Jest passes every file through transform and caches the results
    on disk and in memory. That included every generated client as well, so
    they were kept in memory from the time they were first loaded until
    process finishes, even though they are needed only for 1 test suite.
    Fixed by using `transformIgnorePatterns` options in jest config.
    
    2. `debug` library keeps a list of last 100 logs that would be used for
    panic error messages later. If error object gets into this list, it will
    keep whole jest sandbox alive until process finishes. Fixed by clearing
    logs on `$disconnect`
    
    Fix #16594
    SevInf committed Dec 7, 2022
    Configuration menu
    Copy the full SHA
    27bf813 View commit details
    Browse the repository at this point in the history