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

Prevent "too many open files" in artifact upload #1771

Merged
merged 2 commits into from
Jul 31, 2024

Conversation

rmunn
Copy link
Contributor

@rmunn rmunn commented Jul 23, 2024

Fixes actions/upload-artifact#485.

The .file method uses "a lazystream wrapper to prevent issues with open file limits", which is precisely the scenario we're running into with actions/upload-artifact#485.

This was originally part of #1723, but I pulled the bugfix out into its own PR so it can be reviewed separately from the bugfix that #1723 was for (preserving Unix file permissions in uploaded .zip files). This one is more urgent than the Unix file permissions, which can be worked around by uploading a .tar file.

@rmunn
Copy link
Contributor Author

rmunn commented Jul 24, 2024

Once #1774 is merged, I'll rebase on top of the new state of main so that the tests can pass.

@rmunn
Copy link
Contributor Author

rmunn commented Jul 26, 2024

Just rebased on top of main; let's see what the unit tests do now.

@rmunn
Copy link
Contributor Author

rmunn commented Jul 26, 2024

@robherley - Looks like a team member needs to re-approve running the workflows again.

@joshmgross
Copy link
Member

Looks like this can be removed:

import {createReadStream} from 'fs'

@rmunn
Copy link
Contributor Author

rmunn commented Jul 27, 2024

Looks like this can be removed:

import {createReadStream} from 'fs'

Done in commit 7c61054.

@rmunn
Copy link
Contributor Author

rmunn commented Jul 31, 2024

@robherley - Your approving review is now considered stale because I rebased and pushed one new commit. Want to give this another look? I should be done making changes.

@robherley robherley merged commit 7463cf3 into actions:main Jul 31, 2024
14 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.

[bug] EMFILE: too many open files
3 participants