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

Switch to avast/retry-go for HTTP retry #2350

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

saschagrunert
Copy link
Contributor

Summary

The hashicorp dependencies are MPL licensed and therefore not allowed in the CNCF. This means we now use the avast/retry-go implementation to achieve the same goal.

Release Note

Use github.com/avast/retry-go instead of github.com/hashicorp/go-retryablehttp for HTTP request retry.

Documentation

None

Fixes #2342

@saschagrunert saschagrunert requested a review from a team as a code owner January 29, 2025 10:25
Comment on lines +135 to +138
retry.Delay(rt.options.RetryWaitMin),
retry.MaxDelay(rt.options.RetryWaitMax),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This may behave different now. Worth double checking if that's intentional.

Copy link

codecov bot commented Jan 29, 2025

Codecov Report

Attention: Patch coverage is 66.66667% with 19 lines in your changes missing coverage. Please review.

Project coverage is 49.87%. Comparing base (488eb97) to head (003ab22).
Report is 300 commits behind head on main.

Files with missing lines Patch % Lines
pkg/client/options.go 51.28% 16 Missing and 3 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2350       +/-   ##
===========================================
- Coverage   66.46%   49.87%   -16.60%     
===========================================
  Files          92      192      +100     
  Lines        9258    24774    +15516     
===========================================
+ Hits         6153    12355     +6202     
- Misses       2359    11316     +8957     
- Partials      746     1103      +357     
Flag Coverage Δ
e2etests 46.53% <56.14%> (-1.03%) ⬇️
unittests 41.91% <66.66%> (-5.78%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@saschagrunert saschagrunert force-pushed the retry-go branch 5 times, most recently from 2f03510 to 9ae3e8f Compare January 30, 2025 08:50
The hashicorp dependencies are MPL licensed and therefore not allowed in
the CNCF. This means we now use the `avast/retry-go` implementation to
achieve the same goal.

Signed-off-by: Sascha Grunert <[email protected]>
@saschagrunert
Copy link
Contributor Author

Green CI :)

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.

MPL-licensed github.com/hashicorp/go-retryablehttp is not allowed in CNCF
2 participants