codecov-node icon indicating copy to clipboard operation
codecov-node copied to clipboard

Compress files with gzip before uploading

Open mikebro opened this issue 5 years ago • 0 comments

Our code coverage xml is ~170MB uncompressed so when attempting to upload to the v2 Codecov api with codecov-node the server rejects the payload because it's too large:

==> Uploading reports
    <html>
<head><title>413 Request Entity Too Large</title></head>
<body bgcolor="white">
<center><h1>413 Request Entity Too Large</h1></center>
<hr><center>nginx/1.13.12</center>
</body>
</html>

Other uploaders like codecov-bash and codecov-exe gzip the files before uploading which brings the size down to ~9MB, for example in bash:

https://github.com/codecov/codecov-bash/blob/cb4d3a32e88ec05c4187f966875ce8c19737f89a/codecov#L1539-L1544

mikebro avatar Oct 17 '19 18:10 mikebro