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

Implement HTTP timeout/retry policies for GitHub/RubyGems/Slack clients #70

Merged
merged 2 commits into from
Nov 30, 2023

Conversation

davidstosik
Copy link
Contributor

@davidstosik davidstosik commented Nov 16, 2023

Just making sure that a single timeout will not invalidate the whole step in CI.

If timeouts keep happening, chances are the service is unavailable, so erroring is fine, but if a timeout is a fluke, we should at least retry.
As all HTTP clients in this gem were using the same settings, @gmcgibbon and I factorized the logic in a HttpClientBuilder which we can also test.

(WebMock takes Net::HTTP completely out of the equation so it cannot test, for example max_retries values.)

Copy link
Member

@gmcgibbon gmcgibbon left a comment

Choose a reason for hiding this comment

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

LGTM once the build is green

@davidstosik davidstosik merged commit 125ee11 into main Nov 30, 2023
@davidstosik davidstosik deleted the sto/net-retry branch November 30, 2023 06:22
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

Successfully merging this pull request may close these issues.

2 participants