Issue #282 invalid

"coverage combine" consumes a lot of memory

Andres Riancho
created an issue

When trying to use "coverage combine" in my CI build [0] I get a message saying: "Warning: The build VMs have a memory limit of 4GB. Your build hit this limit on one or more containers, and your build results are likely invalid."

Removing the "coverage combine" command from the build fixes the build failure, so I'm pretty confident that this is a bug in and not in or anything else.

The software I'm trying to measure code coverage on is w3af [1], which rather large (lots of python files, lots of lines).

Coverage information is gathered using nosetests with "--with-cov --cov-report=xml".

Any ideas on how to fix this?

[0] [1]

Comments (5)

  1. Ned Batchelder repo owner

    Andres, I'm sorry to hear about the problem. Can you provide some more data? For example, before the "coverage combine" step, how many data files do you have, and how large are they? Can you get them to me somehow?

  2. Andres Riancho reporter

    Well... it seems that this issue is bigger than I thought. Here's more information: : Failed (but that's fine, just my tests not passing) : High memory usage due to coverage measurements

    If you check the changes for build 164 ( you'll notice that all I did was to disable coverage. Also, it's important to notice that in this case what seems to be failing is not the "coverage combine" step, since in the output of the 161 build we see that the test run timeouts => no coverage output is created.

    Since the only change is the coverage, we can conclude that there is something really ugly there.

    I've used in other projects and I understand that with coverage enabled the test suite runs slower, but it shouldn't be THAT slow!

  3. Log in to comment