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

keygen upload sporadically fails #28

Open
ryansteil opened this issue Jan 31, 2025 · 8 comments
Open

keygen upload sporadically fails #28

ryansteil opened this issue Jan 31, 2025 · 8 comments

Comments

@ryansteil
Copy link

Somewhat randomly, keygen upload fails. I'm running in a github action, which usually succeeds, but will sporadically fail.

keygen upload ... \
    --signature $SIGNATURE \
    --filename $FILENAME \
    --release $VERSION \
    --platform $PLATFORM \
    --arch $ARCH
error: Put "https://keygen-dist....": write tcp 192.168.64.5:49362->162.159.141.50:443: write: broken pipe

Could there be retry logic here or should I just implement this within the action?

@ezekg
Copy link
Member

ezekg commented Jan 31, 2025

You're not the only one. I've experienced the same, as have other users. It's rare, but it happens, and more often with large files or on slow connections. Adding better retry logic to the CLI would be beneficial since this seems to be a failure on Cloudflare R2's end, and it seems to be a known issue.

How large are the files you're uploading?

@ryansteil
Copy link
Author

Gotcha - my files are ~30MB.

@ezekg
Copy link
Member

ezekg commented Jan 31, 2025

Okay, so pretty small. Likely due to connection issues in Actions, or a transient issue on R2's end. Regardless, retries for artifact uploads to the storage provider can probably be implemented pretty painlessly with https://github.com/hashicorp/go-retryablehttp. Open to a PR?

@ryansteil
Copy link
Author

Yup, I'll take a stab at it in the next couple of days.

@ezekg
Copy link
Member

ezekg commented Feb 4, 2025

Does this happen more often on certain Action runners than others? e.g. on a macOS runner.

@ryansteil
Copy link
Author

I'm not sure, I have this running on both a macOS and Windows runner. It's only happened to me a few times in total - I think on both, but for sure on macOS.

@ezekg
Copy link
Member

ezekg commented Feb 4, 2025

Thanks for the info. Recently had a couple other reports of upload failures on the macOS runner, so wanted to check.

Hopefully the retry logic will work around it. Will reach out to the GitHub team, regardless.

@ezekg
Copy link
Member

ezekg commented Feb 4, 2025

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

No branches or pull requests

2 participants