-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Adds input for upload chunk size #424
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll need to document this as an optional input in the action.yml
file
action.yml
Outdated
description: 'An ordered list of keys to use for restoring the cache if no cache hit occurred for key' | ||
required: false | ||
upload-chunk-size: | ||
description: 'The chunk size used when uploading large cache files' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should include the unit in either the description or input name (upload-chunk-size-bytes
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Any particular reason we are adding this option as input vs. environment variable?
@aiqiaoy No particular reason. If I had to give a reason, it would be for simplicity. This puts all arguments under |
Adds input to limit the upload chunk size. This is useful for self-hosted runners with limited upload speeds, as an upload taking longer than the server timeout will fail. We used to have this configurable via an environment variable, but that was removed when splitting the cache action out into the cache module.
Fixes #415