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

Include fs stats and mode in zip archive, fix "too many open files" error #1723

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rmunn
Copy link

@rmunn rmunn commented Apr 23, 2024

This should allow Unix file permissions to be included in the zip file created by upload-artifact, fixing actions/upload-artifact#38 and probably actions/upload-artifact#37 as well.

Fixes #1722.
Fixes actions/upload-artifact#485.

This is basically #1609, rebased against the current state of the main branch. But #1609 did not include the mode property in its call to zip.append, and my research suggests that mode is needed to actually include the permissions in the zip file.

Copy link

@Bushgang1981 Bushgang1981 left a comment

Choose a reason for hiding this comment

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

This is the right one that works for me unless you know it works for me good so zip hope you figure the problem that you got going on read read you get it

@rmunn
Copy link
Author

rmunn commented Apr 29, 2024

actions/upload-artifact#485 looks relevant here, and could be easily fixed in the same PR by using archive.file instead of archive.append.

@rmunn
Copy link
Author

rmunn commented Apr 29, 2024

Commit 5f62f1e should fix actions/upload-artifact#485.

Copy link

@SMoraisAnsys SMoraisAnsys left a comment

Choose a reason for hiding this comment

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

LGTM

Looking at file documentation this PR should fix actions/upload-artifact#485

@rmunn rmunn changed the title Include fs stats and mode in zip archive Include fs stats and mode in zip archive, fix "too many open files" error May 7, 2024
@rmunn
Copy link
Author

rmunn commented May 7, 2024

@bethanyj28 - It looks like you've been doing recent work on the packages/artifact code that this touches. Would you like to give this PR a review? It's intended to fix the seventh-most-upvoted issue in actions/upload-artifact (which has been open since 2019), so I'd like someone from GitHub to at least take a look at it. (And if you're the wrong person to ping, my apologies, and could you let me know the right person?)

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.

Unix file permissions not stored in zip file [bug] EMFILE: too many open files
3 participants