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

nugget fails in a Travis CI environment with a memory leak #25

Open
kvanbere opened this issue Sep 30, 2017 · 0 comments
Open

nugget fails in a Travis CI environment with a memory leak #25

kvanbere opened this issue Sep 30, 2017 · 0 comments

Comments

@kvanbere
Copy link

kvanbere commented Sep 30, 2017

The progress bar does weird stuff and it causes Travis CI to run out of memory when something else calls nugget while in a coverage check with Instanbul, but only when using async Mocha and calling from within a promise.

Don't ask me why or how.

The solution to stop the leak is to make sure opts.quiet is set i.e. my code now looks like:

    var isInCI = process.env.CI !== undefined
    nugget([link], { dir: tmpDir, quiet: isInCI }, function () {
      isFunction(onDone) && onDone(fullName)
    })

It fails on Linux and OS X images, with all versions of node back to 4.

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