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
[tune] Fix Trial.node_ip
property
#40028
[tune] Fix Trial.node_ip
property
#40028
Conversation
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
@@ -811,7 +811,7 @@ def has_reported_at_least_once(self) -> bool: | |||
|
|||
@property | |||
def node_ip(self): | |||
return self.location.hostname |
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.
Should we add a simple unit test for verifying the attributes exist?
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.
oh oops I merged this before adding a test -- can do in a followup 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.
Thanks!
This PR fixes the `Trial.node_ip` property, which didn't work since the `location` attribute got switched to `trial.temporary_state.location`. This PR also does some small cleanups, type annotations, and adds comments. Signed-off-by: Justin Yu <justinvyu@anyscale.com>
This PR fixes the `Trial.node_ip` property, which didn't work since the `location` attribute got switched to `trial.temporary_state.location`. This PR also does some small cleanups, type annotations, and adds comments. Signed-off-by: Justin Yu <justinvyu@anyscale.com>
This PR fixes the `Trial.node_ip` property, which didn't work since the `location` attribute got switched to `trial.temporary_state.location`. This PR also does some small cleanups, type annotations, and adds comments. Signed-off-by: Justin Yu <justinvyu@anyscale.com> Signed-off-by: Victor <vctr.y.m@example.com>
Why are these changes needed?
This PR fixes the
Trial.node_ip
property, which didn't work since thelocation
attribute got switched totrial.temporary_state.location
. This PR also does some small cleanups, type annotations, and adds comments.Related issue number
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.