-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
[WIP] Bug/log syncer fails with parentheses #2653
[WIP] Bug/log syncer fails with parentheses #2653
Conversation
python/ray/tune/log_sync.py
Outdated
@@ -103,11 +111,13 @@ def sync_now(self, force=False): | |||
if not distutils.spawn.find_executable("rsync"): | |||
print("Error: log sync requires rsync to be installed.") | |||
return | |||
source = '{}@{}:{}/'.format(ssh_user, self.worker_ip, | |||
escape_rsync_location(self.local_dir)) | |||
target = '{}/'.format(escape_rsync_location(self.local_dir)) |
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 don't know if this is ideal or needed. I tested several ways of quoting the local dir without escaping and didn't manage to make it work. Happy to change this if someone has better ideas of how to handle it.
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 is actually weird since the log sync definitely worked before with whitespaces and some other special characters. Not sure why the parenthesis caused a problem.
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.
Do you have some example input / outputs of this with other quoting strategies?
Test PASSed. |
Test PASSed. |
Test PASSed. |
@ericl Sorry for dropping the ball on this earlier. I looked into this again today, and it looks like adding Having:
I get the following error:
Adding
I get:
sent 27 bytes received 59 bytes 57.33 bytes/sec And
Here's the script I ran:
|
Test PASSed. |
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.
Ah nice, I didn't know about -s
!
WIP: Still needs some testing.
What do these changes do?
Changes the rsync command in
tune.log_sync
to allow special characters to be used in experiment names when logging is turned on.Related issue number
#2388