Random upload failures
braun1928 opened this issue · 1 comments
braun1928 commented
Builds fail randomly with issue to upload assets to GitHub release, as shown in this log snippet:
+ GITHUB_ASSETS_UPLOADR_EXTRA_OPTIONS=
+ '[' FALSE == TRUE ']'
+ github-assets-uploader -logtostderr -f my-cool-tool-v1.0.0-darwin-arm64.tar.gz -mediatype application/gzip -repo braun1928/my-cool-tool -token *** -tag v1.0.0 -retry 3
W1129 20:11:55.493866 1316 main.go:56] Upload asset error, will retry soon: Post "https://uploads.github.com/repos/braun1928/my-cool-tool/releases/9999/assets?name=my-cool-tool-v1.0.0-darwin-arm64.tar.gz": http2: Transport: cannot retry err [stream error: stream ID 1; REFUSED_STREAM; received from peer] after Request.Body was written; define Request.GetBody to avoid this error
W1129 20:11:59.139648 1316 main.go:56] Upload asset error, will retry soon: Post "https://uploads.github.com/repos/braun1928/my-cool-tool/releases/9999/assets?name=my-cool-tool-v1.0.0-darwin-arm64.tar.gz": http2: Transport: cannot retry err [stream error: stream ID 3; REFUSED_STREAM; received from peer] after Request.Body was written; define Request.GetBody to avoid this error
Error: The operation was canceled.
I couldn't find an issue/PR that had this, so I don't exactly understand what is going on. The build runs with this config:
runs-on: ubuntu-latest
strategy:
matrix:
goos: [darwin, linux, windows]
goarch: [amd64, arm64]
exclude:
- goarch: arm64
goos: linux
- goarch: arm64
goos: windows
Could it be the matrix strategy, running uploads in parallel?
caarlos0 commented
the config snipped is not a goreleaser config and the error is not from goreleaser as well...