This repository was archived by the owner on Dec 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 445
Async install of Portable Git #552
Merged
StanleyGoldman
merged 34 commits into
enhancements/async-git-setup-rollup
from
enhancements/async-git-setup
Jan 9, 2018
Merged
Async install of Portable Git #552
StanleyGoldman
merged 34 commits into
enhancements/async-git-setup-rollup
from
enhancements/async-git-setup
Jan 9, 2018
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Performing a full MD5 on the contents of the zip package takes 1-3s during the startup of Unity. So I changed functionality to perform a full MD5 on the extracted contents and a file list MD5 during application startup.
…etup-rollup' into enhancements/async-git-setup # Conflicts: # src/GitHub.Api/Installer/GitInstaller.cs # src/tests/IntegrationTests/Git/GitSetupTests.cs
…c-git-setup # Conflicts: # src/tests/IntegrationTests/Download/DownloadTaskTests.cs
5e467fc
to
db6d33a
Compare
I realized I have one regression, which if you read my documentation you will catch. |
Fixed |
drguthals
approved these changes
Jan 8, 2018
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 looks good!
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note: This pull request targets
enhancements/async-git-setup-rollup
#561Presently
The installation of portable git is currently a synchronous process initiated from
ApplicationManagerBase
.Unity/src/GitHub.Api/Application/ApplicationManagerBase.cs
Lines 46 to 82 in a1ec1cb
Unity/src/GitHub.Api/Application/ApplicationManagerBase.cs
Lines 139 to 158 in a1ec1cb
It's responsibilities are as follows.
This process is currently linear & synchronous, running on the main thread.
/usr/local/bin/git
exists, use thatwhere
/which
command to find git.Environment.GitExecutablePath
wincred
User
withGitClient
Pull Request
Unity/src/GitHub.Api/Application/ApplicationManagerBase.cs
Lines 46 to 117 in e6762b5
In order to make this process asynchronous.
Several async tasks are created, upon their completion they choose which tasks to continue with.
Async Install flow
DEFINE
After git is setupDEFINE
Windows Credential setupSTART
"After git is setup"DEFINE
After path is determinedSTART
"Windows Credential setup"START
"After git is setup"DEFINE
Locate system gitSTART
"After path is determined"ERROR
DEFINE
Locate or install portable gitSTART
"After path is determined"START
"Locate system git"DEFINE
Check settings for git pathSTART
"After path is determined"START
"Locate or install portable git"START
"Check settings for git path"Git Installer
This process is now async and performs the following tasks:
UnzipTask
to unzip both zip files and perform a full MDS on the resultsUI Changes
UserSettingsView
andInitProjectView
to remain disabled until git is ready