-
Notifications
You must be signed in to change notification settings - Fork 188
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
Respect trust_env on AsyncHttpConnection #886
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #886 +/- ##
==========================================
- Coverage 71.95% 70.39% -1.56%
==========================================
Files 91 125 +34
Lines 8001 9290 +1289
==========================================
+ Hits 5757 6540 +783
- Misses 2244 2750 +506 ☔ View full report in Codecov by Sentry. |
67c1e1f
to
c92de00
Compare
Signed-off-by: Ron Smeral <[email protected]>
c92de00
to
0fd0db8
Compare
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.
Thanks for this.
Would be nice to find a way to share/standardize setup like this and tests to make sure all the connection implementations are aligned.
Looks like some possibly unrelated tests are failing, appreciate if you could help take a look? |
Agreed. I'm really new to using OpenSearch and especially this library, so I guess I'm missing some context here – why are there two classes with seemingly the same purpose –
It really feels like it should be a single class.
I see this test failure:
Definitely seems unrelated, has been failing some time before my PR: https://github.com/opensearch-project/opensearch-py/actions/workflows/integration-unreleased.yml As far as I can tell:
All of that considered, I think the above shouldn't be fixed in this PR. WDYT? |
Honestly, no idea. We should assume that anything can change moving forward. I am guessing that Sigv4 was introduced in a hacky way by bringing in the second implementation from somewhere else, instead of doing the work of adding it to the existing one and nobody objected (they should have). Would absolutely take a merged single version!
Yes, but we need a green CI before we merge more code. Appreciate it if you have time to look at this, I won't for a bit. |
Description
Respect
trust_env
onAsyncHttpConnection
same as we do inAIOHttpConnection
.This lets us use the standard proxy environment variables (e.g.
HTTPS_PROXY
).Issues Resolved
It was not possible to connect to OpenSearch asynchronously while using
AWSV4SignerAsyncAuth
(which is not supported inAIOHttpConnection
) from a network which requires the use of a proxy.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.