Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Compress files with gzip before uploading #156

Open
mikebro opened this issue Oct 17, 2019 · 0 comments
Open

Compress files with gzip before uploading #156

mikebro opened this issue Oct 17, 2019 · 0 comments

Comments

@mikebro
Copy link

mikebro commented Oct 17, 2019

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

@thomasrockhu thomasrockhu self-assigned this Nov 29, 2020
@thomasrockhu thomasrockhu removed their assignment Jul 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants