Skip to content

Do not compress images in actions/upload-artifact #2249

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

Merged
merged 1 commit into from
Mar 10, 2025

Conversation

mathbunnyru
Copy link
Member

Describe your changes

We already use zst to compress our images, so it shouldn't be necessary to compress on upload.
https://github.com/actions/upload-artifact?tab=readme-ov-file#inputs
For large files that are not easily compressed, a value of 0 is recommended for significantly faster uploads.

Issue ticket if applicable

Checklist (especially for first-time contributors)

  • I have performed a self-review of my code
  • If it is a core feature, I have added thorough tests
  • I will try not to use force-push to make the review process easier for reviewers
  • I have updated the documentation for significant changes

@mathbunnyru
Copy link
Member Author

Without compression:
https://github.com/jupyter/docker-stacks/actions/runs/13756405308/job/38464739116?pr=2249
Final size is 3187269994 bytes

With compression:
https://github.com/jupyter/docker-stacks/actions/runs/13754574729/job/38460313324
Final size is 3185148832 bytes

The difference in size is around 0.1%, which means compression doesn't make sense at all.

And we get faster uploads.

@mathbunnyru mathbunnyru changed the title Do not compress images in actions/upload-artifact Do not compress images in actions/upload-artifact Mar 10, 2025
@mathbunnyru mathbunnyru merged commit c90fc06 into jupyter:main Mar 10, 2025
70 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant