Skip to content
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

manager: make TensorBoardInfo directory universally accessible and useful #2131

Merged
merged 1 commit into from
Apr 19, 2019

Conversation

wchargin
Copy link
Contributor

Summary:
Fixes #2010.

This patch is primarily directed at Unices. On Windows, the underlying
problem should not be an issue, because the default temporary directory
seems to be user-scoped (e.g., C:\Users\wchargin\AppData\Local\Temp).

Test Plan:
Unit tests added. Before this change, the first test has an assertion
error ('0o755' != '0o777') and the second test has an I/O error trying
to write to a non-writable directory. After this change, all tests pass.

Tested only on Linux.

wchargin-branch: info-dir-mode

Summary:
Fixes #2010.

This patch is primarily directed at Unices. On Windows, the underlying
problem should not be an issue, because the default temporary directory
seems to be user-scoped (e.g., `C:\Users\wchargin\AppData\Local\Temp`).

Test Plan:
Unit tests added. Before this change, the first test has an assertion
error (`'0o755' != '0o777'`) and the second test has an I/O error trying
to write to a non-writable directory. After this change, all tests pass.

Tested only on Linux.

wchargin-branch: info-dir-mode
@wchargin
Copy link
Contributor Author

Rats. Missed opportunity to title the commit, “Make TensorBoardInfo
directory universally accessible and useful”.

Copy link
Contributor

@nfelt nfelt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not too late!

tensorboard/manager_test.py Show resolved Hide resolved
@nfelt nfelt changed the title manager: ensure info directory world-accessible manager: make TensorBoardInfo directory universally accessible and useful Apr 19, 2019
@wchargin wchargin merged commit 1db0551 into master Apr 19, 2019
@wchargin wchargin deleted the wchargin-info-dir-mode branch April 19, 2019 23:15
@wchargin
Copy link
Contributor Author

I should note that I did test that os.chmod(dir_path, 0o777) works
fine on Windows, without throwing an exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Permission denied issue when writing to /tmp/.tensorboard-info
2 participants