-
-
Notifications
You must be signed in to change notification settings - Fork 935
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
Feature: urllib3 instead of curl #2134
Conversation
for more information, see https://pre-commit.ci
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2134 +/- ##
==========================================
+ Coverage 80.99% 81.47% +0.48%
==========================================
Files 77 77
Lines 9586 9500 -86
Branches 1168 1148 -20
==========================================
- Hits 7764 7740 -24
+ Misses 1620 1569 -51
+ Partials 202 191 -11 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey there 👋
Can you please the CI failures?
Thanks 🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this would be a good move. please also check the failing tests
a problem i see is that i think i need some guidance on how to properly test this migration: Who uses this client Outside of "kombu in vacuum"? also the curl files are not removed yet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I gave it a quick review, nothing special popped into my eyes so far.
I'll review again if the CI fully passes.
Good question. Maybe check Celery code?
Can you change the PR to draft meanwhile? |
i've run my code inside my i've also tried and all seems to behave as usual. but i don't use proxies @auvipy @Nusnus the last questions are:
PS: the failing tests, basically, timeout during execution ;) = no more bad py3.8 code. |
may be the first approach would be fine to start. but if you can also go extra mile, it would be great as well |
Speaking about refactoring : if I remove the curl=None from request call - we can have a proper proxy pool. I just need to figure out which configure settings are used. But this is a breaking change 😬 |
so.. apparently, for and now (with all my fancy code that enabled missing but then it complains that and all that worked with fixing that based on boto code + https://urllib3.readthedocs.io/en/latest/user-guide.html#ssl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ping me when the CI is green.
I’ll give it at least a quick review to see nothing pops into my eyes.
Thanks!
Ready for review? @spawn-guy |
@Nusnus Ready 🤓 i have this running on my aws environment. and i was debugging the errors on it (and i was, indeed, getting urllib3 errors) - so i know this thing is Working 😝 but, i don't use any proxy (duh) - this is the part that can have errors in the field applications. and i'm ready to fix them |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay @spawn-guy
Left some comments.
But >90% looks fine.
Also, please check the code coverage warnings, some paths aren’t tested.
Let me know if that’s an issue to handle as it’s not 100% a blocker.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing work!
Thank you very much!
I left a comment or two, check it out before we merge the PR.
@auvipy I plan to merge it tomorrow (per the comments I left in the PR) and then release a new pre-release for Kombu. Please let us know if there’s anything else required for your approval. |
for #737
i've migrated
CurlClient
toUrllib3Client
and updated some unit tests.i'd like to test this more thoroughly, though
needs a little bit more code cleanup as i am not even use this works (tests don't fail at least)
let me know what you think