-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[dashboard] Fixes dashboard issues when environments have set http_proxy #12598
Conversation
Hi @mfitton, is there any way to trigger the dashboard UT tests locally? |
Hey @ConeyLiu, from your ray directory you can run |
Hi @mfitton, I got the following errors:
With |
@ConeyLiu hm, strange. Okay, well the dashboard code is symlinked to Not sure why running them at the other level doesn't work in your install, sorry for the inconvenience. |
Hi @mfitton, thanks for the help. |
@@ -71,7 +70,7 @@ async def _update_stubs(self, change): | |||
node_id, node_info = change.new | |||
address = "{}:{}".format(node_info["nodeManagerAddress"], | |||
int(node_info["nodeManagerPort"])) | |||
channel = aiogrpc.insecure_channel(address) | |||
channel = dashboard_utils.create_insecure_channel(address) |
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.
It's cleaner to set an option here instead of providing a special channel. If the existing API cannot meet our requirements, then we create a new API.
options = (("grpc.enable_http_proxy", 0), )
channel = aiogrpc.insecure_channel(address, options=options)
@rkooo567 May be these two lines are enough?
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 am OK to change it back. And create_insecure_channel
is just a wrapper function.
cc @fyrestone Please ping me after you approve the PR! |
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.
LGTM
…oxy (ray-project#12598) * fixes ray start with http_proxy * format * fixes * fixes * increase timeout * address comments
… http_proxy (ray-project#12598)" This reverts commit b40db30.
… http_proxy (ray-project#12598)" This reverts commit b40db30.
Why are these changes needed?
Fixes dashboard issues when environments have set http_proxy. Without this patch:
Related issue number
Checks
scripts/format.sh
to lint the changes in this PR.