You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Creating a release with files sometimes fails upoading the files and tanks the release #6651
Sometimes when using gh release create <files>..., uploading files fails (and ends up with a partial release).
Steps to reproduce the behavior
Run gh release create with files
It sometimes fails to upload one (possibly more) of the files
Expected vs actual behavior
As proposed by @mislav on #6645 , the retry mechanism for file uploads could be more robust to handle these failures as well.
However, would you say that gh release create <files>... could have a better retry mechanism built in so that uploads are retried automatically within gh and that your automation doesn't have to do it?
We already have some rudimentary retry logic, but we could expand it to also handle the types of errors you are experiencing:
1. Post "https://uploads.github.com/repos/submariner-io/releases/releases/83445511/assets?label=&name=subctl-v0.14.0-rc4-windows-amd64.exe.tar.xz": http2: client connection force closed via ClientConn.Close
2. Post "https://uploads.github.com/repos/submariner-io/releases/releases/83445512/assets?label=&name=subctl-v0.14.0-rc4-linux-arm64.tar.xz": unexpected EOF
@mislav Another example of error/failure of gh release create: Post "https://uploads.github.com/repos/busytex/busytex/releases/87511879/assets?label=&name=fonts.conf": unexpected EOF
and gh available by default on ubuntu-20.04 proper
Another error (coming from default gh on ubuntu-20.04: HTTP 400: Bad Content-Length: (https://uploads.github.com/repos/busytex/busytex/releases/87606152/assets?label=&name=ubuntu-texlive-base.data)
I think that our Linux binaries should work on Alpine: #2556.
I will check, but it would be better if there was a simple binary as an asset - that would save decompression. Probably it's quite small anyway. And it would also be better if file names / release notes were clear if the binaries is built fully statically (including musl libc) and are alpine/anylinux compatible or not.
Activity
mislav commentedon Dec 19, 2022
Fixed in 7caf7da
vadimkantorov commentedon Dec 29, 2022
@mislav Another example of error/failure of
gh release create:Post "https://uploads.github.com/repos/busytex/busytex/releases/87511879/assets?label=&name=fonts.conf": unexpected EOFmislav commentedon Dec 30, 2022
@vadimkantorov This happened even with the latest release?
vadimkantorov commentedon Dec 30, 2022
Unlikely. I'm using apk for alpine:
and
ghavailable by default on ubuntu-20.04 properAnother error (coming from default
ghon ubuntu-20.04:HTTP 400: Bad Content-Length: (https://uploads.github.com/repos/busytex/busytex/releases/87606152/assets?label=&name=ubuntu-texlive-base.data)vadimkantorov commentedon Dec 30, 2022
I can try using the latest release. Does it exist as static binary that I can just wget on my alpine and ubuntu GH Actions jobs?
For
Bad Content-Length, it could be trying to add an empty asset to the release, but it's strange to fail like somislav commentedon Jan 9, 2023
@vadimkantorov You can download and untar a precompiled binary for any GitHub CLI release, e.g. https://github.com/cli/cli/releases/tag/v2.21.2
I think that our Linux binaries should work on Alpine: #2556.
vadimkantorov commentedon Jan 11, 2023
I will check, but it would be better if there was a simple binary as an asset - that would save decompression. Probably it's quite small anyway. And it would also be better if file names / release notes were clear if the binaries is built fully statically (including musl libc) and are alpine/anylinux compatible or not.