Skip to content

tag shared and temp files with username#430

Open
acutkosky wants to merge 1 commit intomosaicml:mainfrom
acutkosky:fix-permissions
Open

tag shared and temp files with username#430
acutkosky wants to merge 1 commit intomosaicml:mainfrom
acutkosky:fix-permissions

Conversation

@acutkosky
Copy link
Contributor

@acutkosky acutkosky commented Sep 11, 2023

Description of changes:

  1. Change StreamingDataset to make a temporary directory in tmp/<username>/streaming rather than tmp/streaming.
  2. Change the shared memory prefix to <username>_<old_prefix>

These changes partition shared resources on a per-user basis to prevent permissions errors when multiple users are working on the same system.

Issue #429

Merge Checklist:

Put an x without space in the boxes that apply. If you are unsure about any checklist, please don't hesitate to ask. We are here to help! This is simply a reminder of what we are going to look for before merging your pull request.

General

  • I have read the contributor guidelines
  • This is a documentation change or typo fix. If so, skip the rest of this checklist.
  • I certify that the changes I am introducing will be backward compatible, and I have discussed concerns about this, if any, with the MosaicML team.
  • I have updated any necessary documentation, including README and API docs (if appropriate).

Tests

  • I ran pre-commit on my change. (check out the pre-commit section of prerequisites)
  • I have added tests that prove my fix is effective or that my feature works (if appropriate).
  • I ran the tests locally to make sure it pass. (check out testing)
  • I have added unit and/or integration tests as appropriate to ensure backward compatibility of the changes.

@knighton
Copy link
Contributor

How can we do this while still keeping the local dir collision check across all users?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

multiple users on same system encounter permissions errors

2 participants