This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Description
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