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

Open release file in retry loop #110

Merged
merged 2 commits into from
Mar 15, 2021
Merged

Open release file in retry loop #110

merged 2 commits into from
Mar 15, 2021

Conversation

afritzler
Copy link
Contributor

@afritzler afritzler commented Mar 10, 2021

Facing the same issue as described here

The following error is being thrown when using the chart-releaser v1.2.0 inside a Github action in a self-hosted action runner (using Docker in Docker):

stat /path/to/release/foo-v0.0.5.tgz: use of closed file

Looks like a race between the file handler being closed and the UploadReleaseAsset being called. I would suggest to move this part into the retry loop.

Signed-off-by: Andreas Fritzler <andreas.fritzler@sap.com>
Copy link
Member

@unguiculus unguiculus left a comment

Choose a reason for hiding this comment

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

Thanks.

pkg/github/github.go Show resolved Hide resolved
@helm-bot helm-bot added size/S and removed size/XS labels Mar 15, 2021
Co-authored-by: Reinhard Nägele <unguiculus@gmail.com>
Signed-off-by: Andreas Fritzler <andreas.fritzler@sap.com>
@afritzler
Copy link
Contributor Author

Done! Thanks for the feedback. I guess having a deferred close here is a good idea.

@unguiculus unguiculus merged commit 861715c into helm:master Mar 15, 2021
@afritzler afritzler deleted the fix_open_file branch March 15, 2021 16:24
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.

3 participants