You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
child_process.spawnSync has a maxBuffer of about 1MB (docs) so the call to git ls-files returns an error because the stdout is too large. The fallback to glob.sync consumes an enormous amount of memory, ultimately causing an OOM. Not sure why glob.sync uses so much memory.
The text was updated successfully, but these errors were encountered:
Ok, I did a bit more digging and it seems what's destroying glob are bazel-* directories. They should certainly be ignored, but the ignore list is currently hardcoded.
Describe the bug
Running the uploader on large repositories causes it to OOM while discovering the file network.
I'm forced to used
-X network
to unblock.To Reproduce
./codecov
Expected behavior
Uploader should not OOM
Screenshots
n/a
Additional context
I did some digging and the problem seems to be exactly here:
uploader/src/helpers/files.ts
Lines 238 to 263 in 2ad72d4
child_process.spawnSync has a maxBuffer of about 1MB (docs) so the call to
git ls-files
returns an error because the stdout is too large. The fallback toglob.sync
consumes an enormous amount of memory, ultimately causing an OOM. Not sure whyglob.sync
uses so much memory.The text was updated successfully, but these errors were encountered: