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

feat: adds HTTP retries for responses w/statuses 500-599 #727

Merged
merged 2 commits into from
Aug 17, 2021

Conversation

EverlastingBugstopper
Copy link
Contributor

fixes #693 - there shouldn't be any visible changes to users, there are no additional messages saying we are retrying, no new error messages saying requests were retried, no new CLI options, this all happens behind the scenes. I've set the max amount of time spent retrying to 10 seconds.

@EverlastingBugstopper EverlastingBugstopper added feature 🎉 new commands, flags, functionality, and improved error messages 2021-08 labels Aug 12, 2021
@EverlastingBugstopper EverlastingBugstopper added this to the v0.2.0 milestone Aug 12, 2021
@EverlastingBugstopper EverlastingBugstopper force-pushed the avery/backoff-retry branch 3 times, most recently from 2db96c1 to c72fb2d Compare August 16, 2021 15:08
@EverlastingBugstopper
Copy link
Contributor Author

EverlastingBugstopper commented Aug 16, 2021

@BrynCooke / @cecton would y'all mind giving this a once-over? I think I could use some recommendations on my testing strategy/general architecture here.

Copy link
Contributor

@BrynCooke BrynCooke left a comment

Choose a reason for hiding this comment

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

Minor nits. Otherwise looks nice!

crates/rover-client/src/blocking/client.rs Outdated Show resolved Hide resolved
crates/rover-client/src/blocking/client.rs Show resolved Hide resolved
Copy link
Member

@lrlna lrlna left a comment

Choose a reason for hiding this comment

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

LGTM~

@abernix abernix removed the 2021-08 label Aug 17, 2021
@EverlastingBugstopper EverlastingBugstopper self-assigned this Aug 17, 2021
@EverlastingBugstopper
Copy link
Contributor Author

comments addressed! going to see if this still fails to compile on a few of our targets and will investigate if it does.

@EverlastingBugstopper
Copy link
Contributor Author

Builds are only failing on our optional nightly runners due to a regression in nightly Rust. I'm not worried about merging this because this is causing a widely used library to fail to compile (lalrpop) and the rustc maintainers are aware of the regression - it won't make it to stable Rust.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 🎉 new commands, flags, functionality, and improved error messages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add exponential backoff retries for HTTP requests
5 participants