-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Fix tempfile issues #4605
Fix tempfile issues #4605
Conversation
Test PASSed. |
Test PASSed. |
Test PASSed. |
Test FAILed. |
Test FAILed. |
Test FAILed. |
Test PASSed. |
Test FAILed. |
Test PASSed. |
Test FAILed. |
Test PASSed. |
Test FAILed. |
Test PASSed. |
Test FAILed. |
Test PASSed. |
Test FAILed. |
Ready for review |
Test PASSed. |
python/ray/tests/test_tempfile.py
Outdated
|
||
def test_session_dir_uniqueness(): | ||
session_dirs = set() | ||
for _ in range(50): |
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.
50 is too large. That could add around 50 seconds to the test. How about 2 or 3?
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.
@suquark nice work, I tried it out and this seems to work great.
Do we have a test to make sure that the --temp-dir
flag to ray start
does the right thing? And in particular, that when that is used, /tmp/ray
is not created?
Test FAILed. |
Test PASSed. |
Test FAILed. |
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.
Nice work!
Has this addressed #4641? |
I think so, thanks! |
@suquark It looks like this PR introduces some CI failures to master and I can also observe this test failure in my other PRs. Could you take a look? https://travis-ci.com/ray-project/ray/jobs/198094058 |
@guoyuhong It's a bit strange that the temp dir wasn't deleted. Let me investigate it. |
What do these changes do?
This PR addresses some crucial tempfile issues.
Related issue number
Closes #4330 #4593 #4594
Linter
scripts/format.sh
to lint the changes in this PR.TODO list:
Fix autoscaler (Store temporary files in subfolder of temp_dir #4331 (comment))(see Fix the autoscaler command for printing ray logs #4737)