upload-artifact icon indicating copy to clipboard operation
upload-artifact copied to clipboard

[feat req] Tar gzip all paths before upload [volunteers exist]

Open dmitry-midokura opened this issue 2 years ago • 4 comments

What would you like to be added?

I would love to have an option to enable tar/gzip files before upload.

Why is this needed?

Uploading of junit report takes 2 minutes in our build and we have manually to do the tar before the upload to speed it up.

If you think this feature would make sense, we might try to come up with a PR.

Thank you!

dmitry-midokura avatar Jul 10 '23 10:07 dmitry-midokura

I would love to have this feature because of the billing - charging by the raw upload size means I have to zip the artifacts before the upload resulting in double zip.

dfeinstein-coremap avatar Jul 29 '23 16:07 dfeinstein-coremap

In the action output, it indicates that the files are actually gzipped before upload:

The raw size of all the files that were specified for upload is 27 460 369 bytes The size of all the files that were uploaded is 2 917 841 bytes. This takes into account any gzip compression used to reduce the upload size, time and storage

Despite that, on the Artifacts section of the workflow run summary, the raw, uncompressed, file size it displayed.

I'm not sure whether the raw or gzipped size is counted towards the limit / billing.

amakhrov avatar Aug 29 '23 23:08 amakhrov

From GitHub's documentation :

When an artifact is downloaded using the GitHub UI, all files that were individually uploaded as part of the artifact get zipped together into a single file. This means that billing is calculated based on the size of the uploaded artifact and not the size of the zip file.

dfeinstein-coremap avatar Aug 29 '23 23:08 dfeinstein-coremap

this would also fix #199

jaynetics avatar Sep 05 '23 19:09 jaynetics