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

DEVPROD-8559 Retry on EOF github responses #8572

Merged
merged 2 commits into from
Dec 19, 2024
Merged

Conversation

bynn
Copy link
Contributor

@bynn bynn commented Dec 19, 2024

DEVPROD-8559

Description

retrying if github returns an eof because it does that sometimes

@bynn bynn requested a review from a team December 19, 2024 15:57
@@ -246,6 +246,9 @@ func githubShouldRetry(caller string, config retryConfig) utility.HTTPRetryFunct
url := req.URL.String()

if err != nil {
if errors.Is(err, io.EOF) || errors.Is(err, io.ErrUnexpectedEOF) {
Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM! Should we add a comment with context why we retry on it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hmm I wasn't sure if we would need it but a little log never harmed anyone (maybe)

@bynn bynn merged commit 4bc5a26 into evergreen-ci:main Dec 19, 2024
10 checks passed
@bynn bynn deleted the DEVPROD-8559 branch December 19, 2024 17:01
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