-
Notifications
You must be signed in to change notification settings - Fork 21
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
OneDrive and Version Controlled and/or Source Code Directories #75
Comments
Why not just put these kind of things outside OneDrive? Seems to me like the OneDrive app doing its job and syncing files as they come. |
I have edited the text of the issue to make it more clear that the problem is syncing many small files, which is a know problem with OneDrive. I have also included a clear, but not exclusive statement about why this is advantageous to do in OneDrive. Final note, the posting of this issue was requested in order to allow it to be brought "up the chain" to the OneDrive team. |
I use OneDrive but usually not for Code. The files of a coding class maybe, but not a code project. GitHub is far more useful for code efforts and no more expensive :). One problem I have with OneDrive is that if I sync Music there, any playing of a song causes download of everything. GitHub has separate actions on small text files, and the related versioning, just right, the same as VSS in its day. The change to how syncing is handled seems to be an anti-pattern sometimes. An effort to have OneDrive be one size that fits all strikes me as a bad idea. If I was gathering .git archives, I would put them on OneDrive as my backup of choice. But not the source control. |
No one is suggesting using OneDrive as source control. I like using OneDrive to host git repositories so I can switch between my laptop and desktop, or work and home without have to make a temporary and messy commit. This was explained in the text of the post. The issue is, generically, OneDrive has serious performance issues with any collection of small files. |
seem to be a recurring topic for multiple tools |
My government organization doesn't allow us to use GitHub, but does have OneDrive. It would be very useful if we could use it with code version control. |
I have found that executing GIT GC will clean up and compact all the various GIT versioning files that will help make syncing data via OneDrive much faster. |
OneDrive defaults to ON for a User's home environment; Documents, Downloads, etc.. And this sync behavior is especially problematic in an enterprise setting where OneDrive is the de-facto for a virtual desktop. If OneDrive can't handle git version control workloads, then it utterly craps on your only means of loading a virtual desktop environment. OneDrive really needs to cooperate better with version control in a very deterministic way. For a known version controlled repo, it's probably safest to give the user a very clear option; for example, when trying to open a folder with .git hidden folder that's in conflict offer a resolution option.
This makes the option user driven, and make it easy to resolve the conflict only when the user needs to consider accessing the version controlled folder hierarchy. Cognitive load remains low, and is functionally compatible with how version control already works. |
Environment
Description
EDIT: No one is suggesting OneDrive should be used for source control. Read the post.
Among many other uses, OneDrive offers a chance to provide a synchronized developer environment on Windows (including subsystems like WSL), with a massive advantage that directories and projects can be synced without having to make (or undo) commits. This allows project development to happen on a multitude of devices, developers to "pick-up" their work without having to make temporary or incomplete commits. This makes cross-device development cleaner, more efficient and with less cluttered version control histories.
However, OneDrive does not function correctly with version controlled directories, like those with Git produce significantly reduced performance where directories contain many small files that can change rapidly. This also includes build directories for VS Projects was well as Linux compiled programs with WSL which exist within OneDrive. This can lead to constant syncing, and high resource usage by OneDrive.
These issues and possible solutions have been identified previously by users
This issue is being raised here to provide a mechanism to allow MS project managers involved with Developer issues to raise the issue with the OneDrive team.
Steps to reproduce
Expected behavior
One or all of the following behaviors would be expected:
First: It would be expected (hopefully) that OneDrive would sync these files efficiently. However, due to structural reasons this does not happen. So the expected mitigations would allow for using OneDrive in these directories with caveats.
Actual behavior
OneDrive syncs problematic folders without any accounting for the contents, which in the case of developer workloads can be problematic.
The text was updated successfully, but these errors were encountered: