Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Artifacts] Exempt certain types of files from gzip compression #956

Merged
merged 2 commits into from
Dec 6, 2021

Conversation

konradpabjan
Copy link
Contributor

@konradpabjan konradpabjan commented Dec 6, 2021

This is an optimization to speed up artifacts uploads for large files that are already compressed.

See this chart for full implementation details: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/implementation-details.md#uploadcompression-flow

For certain types of files that are already compressed, we basically waste a lot of time creating temporary zips that end up being immediately discarded

Test with 2 800000000 byte (0.75GB) artifacts: 1 min 1second
https://github.com/konradpabjan/artifact-test/runs/4434777033?check_suite_focus=true

Test with existing action, the upload doesn't start until you're 1 min in or so. 2 min 22 seconds total so more than a 50% reduction in time.
https://github.com/konradpabjan/artifact-test/runs/4434790411?check_suite_focus=true

@konradpabjan konradpabjan marked this pull request as ready for review December 6, 2021 20:59
@konradpabjan konradpabjan requested review from a team December 6, 2021 20:59
Copy link
Contributor

@yacaovsnc yacaovsnc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link

@pfleidi pfleidi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@konradpabjan konradpabjan merged commit cdd4e10 into main Dec 6, 2021
@konradpabjan konradpabjan deleted the konradpabjan/gzip-exempt branch December 6, 2021 21:47
at-wat pushed a commit to at-wat/actions-toolkit that referenced this pull request Aug 31, 2023
…ons#956)

* Exempt certain types of files from gzip compression

* Fix lint issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants