feat: Added examples to the documentation demonstrating different ways to handle ports#243
Conversation
|
🎉 Welcome to the Kubeflow SDK! 🎉 Thanks for opening your first PR! We're happy to have you as part of our community 🚀 Here's what happens next:
Join the community:
Feel free to ask questions in the comments if you need any help or clarification! |
Pull Request Test Coverage Report for Build 21829319438Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
0140e1b to
7df29e7
Compare
Signed-off-by: osamaahmed17 <osamaahmedtahir17@gmail.com>
440baf0 to
a5408c7
Compare
Signed-off-by: osamaahmed17 <osamaahmedtahir17@gmail.com>
|
@andreyvelich and @jonburdo, kindly review the code and let me know if anything is missing. |
Co-authored-by: Jon Burdo <jon@jonburdo.com> Signed-off-by: Osama Tahir <31954609+osamaahmed17@users.noreply.github.com>
Signed-off-by: Osama Tahir <31954609+osamaahmed17@users.noreply.github.com>
Signed-off-by: Osama Tahir <31954609+osamaahmed17@users.noreply.github.com>
|
Hi @jonburdo and @andreyvelich |
jonburdo
left a comment
There was a problem hiding this comment.
/lgtm
/approve
/hold
This looks great! I'm approving but adding a hold, since we haven't yet released model-registry version 0.3.6, which is required for this.
If another approver wants to go ahead and merge this, feel free to /unhold. We should have 0.3.6 very soon.
I have tested that this works as expected as follows:
old behavior
(model-registry==0.3.5)
With model-registry==0.3.5 (uv pip install '.[hub]') passing these urls:
http://localhost:9080
https://test.example.com:8443
Tries to connect to:
http://localhost:9080:8080
https://test.example.com:8443:443
because this older version of model-registry assumes the port will be passed separately and does f"{server_address}:{port}"
new behavior
(model-registry commit 338563d27a4b4dafde985eb8978bb070bf8631af)
With model-registry's current main branch (uv pip install '.[hub]' ~/src/model-registry/clients/python) passing the same urls, now works as expected:
http://localhost:9080
https://test.example.com:8443
Example session:
>>> from kubeflow.hub import ModelRegistryClient
>>> ModelRegistryClient("http://localhost:9080")
aiohttp.client_exceptions.ClientConnectorDNSError: Cannot connect to host test.example.com:8443 ssl:default [No address associated with hostname]
>>> ModelRegistryClient("https://test.example.com:8443", is_secure=False)
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host localhost:9080 ssl:default [Multiple exceptions: [Errno 111] Connect call failed ('::1', 9080, 0, 0), [Errno 111] Connect call failed ('127.0.0.1', 9080)]|
Ah, we will also need to wait for the min python version of this project to be updated to python 3.10 since |
|
With the bump to python 3.10 and to model-registry 0.3.6, this should be good to go! /unhold |
|
@jonburdo, how do we merge the code, is there a direct command that I can do for future cases? |
@osamaahmed17 We'll need an approval from someone in the I hope someone can review it soon, but feel free to mention that this PR could use a review in the slack channels. See |
andreyvelich
left a comment
There was a problem hiding this comment.
Thank you @osamaahmed17!
/lgtm
/approve
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andreyvelich, jonburdo The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Added examples to the documentation demonstrating different ways to handle ports
feat: #227