-
Notifications
You must be signed in to change notification settings - Fork 64
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
ScalarVerb: Remove EnsureLocalCacheIsHealthy #146
ScalarVerb: Remove EnsureLocalCacheIsHealthy #146
Conversation
343266e
to
3dd7149
Compare
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.
Let's wait for #122 to merge, and see if we can remove the [Ignore]
annotation.
@@ -257,7 +220,7 @@ private void LoadBlobsViaGit(ScalarFunctionalTestEnlistment enlistment) | |||
// 'git rev-list --objects' will check for all objects' existence, which | |||
// triggers an object download on every missing blob. | |||
ProcessResult result = GitHelpers.InvokeGitAgainstScalarRepo(enlistment.RepoRoot, "rev-list --all --objects"); | |||
result.ExitCode.ShouldEqual(0); | |||
result.ExitCode.ShouldEqual(0, result.Errors); |
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.
I have this change in #122.
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.
Oops I saw you change there and added it locally, did not mean to push it to this PR. I will remove it thanks!
With the deprecating of the mount process (and verb) EnsureLocalCacheIsHealthy is no longer needed. In VFS4G, EnsureLocalCacheIsHealthy is needed because: - A mapping file is used in the .gvfsCache directory that may need to be regenerated if the user deletes it. - The decision was made that the mount verb should ensure that the alternates file is properly configured to use the cache directory. However, in Scalar: - A mapping file will not be used (Scalar will rely on repository IDs and stable hashes. - There will be no 'mount' verb run by users - Scalar will not be responsible for automatically fixing up modifications made by users that would remove the .scalarCache directory from the alternates files And so EnsureLocalCacheIsHealthy is being removed.
5fa3ba8
to
ad64ba6
Compare
@derrickstolee I need to add back the
Interestingly it must be returning 0 as the test fails not in the call to git, but when validating that the shared cache folder was recreated. |
Adding the |
@wilbaker @derrickstolee With the last round of changes, git.exe passes the sharedCache pathname on the I haven't yet looked at the unit test in question, so I can't say which is the right answer. |
Prior to That code was put in to VFS4G because:
I think if the As an added benefit, it might allow us to further simplify |
Part of the work required for #135
With the deprecating of the mount process (and verb)
EnsureLocalCacheIsHealthy is no longer needed.
In VFS4G, EnsureLocalCacheIsHealthy is needed because:
may need to be regenerated if the user deletes it.
that the alternates file is properly configured to use
the cache directory.
However, in Scalar:
repository IDs and stable hashes.
up modifications made by users that would remove the
.scalarCache directory from the alternates files
And so EnsureLocalCacheIsHealthy is being removed.