-
Notifications
You must be signed in to change notification settings - Fork 97
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
scalar: enable untracked cache unconditionally #415
scalar: enable untracked cache unconditionally #415
Conversation
This is a successor of #382 and #383, right? I just tried to rebase #383's branch onto The diff between #383's errors and my rebased branch's errors is empty... |
Yes.
So your rebased branch does the following:
And with those, you get a failure. I will try one thing, which is to disable the FS Monitor and see if that leads to a failure. I don't expect that we will be disabling the FS Cache. |
So we got a failure with This means that in the case of a trivial response from the FS Monitor we might hit the untracked cache issue where the filesystem doesn't properly report a dir's mtime. Is the simultaneous failure of both systems rare enough to recommend untracked cache with FS Monitor? cc: @jeffhostetler for thoughts here. |
0db094f
to
9cc15a9
Compare
@@ -156,23 +156,7 @@ static int set_recommended_config(int reconfigure) | |||
{ "core.FSCache", "true", 1 }, | |||
{ "core.multiPackIndex", "true", 1 }, | |||
{ "core.preloadIndex", "true", 1 }, | |||
#ifndef WIN32 | |||
{ "core.untrackedCache", "true", 1 }, |
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.
Since this sets overwrite_on_reconfigure
, our users will upgrade successfully.
Ping @dscho, @jeffhostetler. I believe we agreed to merge this. Anyone want to provide a ✔️ ? |
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.
Sounds good.
It is a nice validation of the value of the FSMonitor patch series that this side-steps the issues that prevent the untracked cache from working properly.
And I am super excited that we can enable this for our users, it provides for such a boost in speed.
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
The GIT_FORCE_UNTRACKED_CACHE environment variable write the untracked cache more frequently than the core.untrackedCache config variable. This is due to how read_directory() handles the creation of an untracked cache. The old mechanism required using something like 'git update-index --untracked-cache' before the index would actually contain an untracked cache. This was noted as a performance problem on macOS in the past, and this is the resolution for that issue. Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
9cc15a9
to
7e993e5
Compare
No matter what I try, I cannot get the untracked cache to fail on Windows. Here are the things that are done in this pull request: 1. Scalar enables the untracked cache unconditionally via `core.untrackedCache = true`. This was previously set to `false` on Windows. 2. Set `GIT_FORCE_UNTRACKED_CACHE=1` for the Scalar functional tests. 3. Update the `core.untrackedCache` config variable to be as strong as the `GIT_FORCE_UNTRACKED_CACHE` environment variable.
No matter what I try, I cannot get the untracked cache to fail on Windows. Here are the things that are done in this pull request: 1. Scalar enables the untracked cache unconditionally via `core.untrackedCache = true`. This was previously set to `false` on Windows. 2. Set `GIT_FORCE_UNTRACKED_CACHE=1` for the Scalar functional tests. 3. Update the `core.untrackedCache` config variable to be as strong as the `GIT_FORCE_UNTRACKED_CACHE` environment variable.
No matter what I try, I cannot get the untracked cache to fail on Windows. Here are the things that are done in this pull request: 1. Scalar enables the untracked cache unconditionally via `core.untrackedCache = true`. This was previously set to `false` on Windows. 2. Set `GIT_FORCE_UNTRACKED_CACHE=1` for the Scalar functional tests. 3. Update the `core.untrackedCache` config variable to be as strong as the `GIT_FORCE_UNTRACKED_CACHE` environment variable.
No matter what I try, I cannot get the untracked cache to fail on Windows. Here are the things that are done in this pull request: 1. Scalar enables the untracked cache unconditionally via `core.untrackedCache = true`. This was previously set to `false` on Windows. 2. Set `GIT_FORCE_UNTRACKED_CACHE=1` for the Scalar functional tests. 3. Update the `core.untrackedCache` config variable to be as strong as the `GIT_FORCE_UNTRACKED_CACHE` environment variable.
No matter what I try, I cannot get the untracked cache to fail on Windows. Here are the things that are done in this pull request: 1. Scalar enables the untracked cache unconditionally via `core.untrackedCache = true`. This was previously set to `false` on Windows. 2. Set `GIT_FORCE_UNTRACKED_CACHE=1` for the Scalar functional tests. 3. Update the `core.untrackedCache` config variable to be as strong as the `GIT_FORCE_UNTRACKED_CACHE` environment variable.
No matter what I try, I cannot get the untracked cache to fail on Windows. Here are the things that are done in this pull request: 1. Scalar enables the untracked cache unconditionally via `core.untrackedCache = true`. This was previously set to `false` on Windows. 2. Set `GIT_FORCE_UNTRACKED_CACHE=1` for the Scalar functional tests. 3. Update the `core.untrackedCache` config variable to be as strong as the `GIT_FORCE_UNTRACKED_CACHE` environment variable.
No matter what I try, I cannot get the untracked cache to fail on Windows. Here are the things that are done in this pull request: 1. Scalar enables the untracked cache unconditionally via `core.untrackedCache = true`. This was previously set to `false` on Windows. 2. Set `GIT_FORCE_UNTRACKED_CACHE=1` for the Scalar functional tests. 3. Update the `core.untrackedCache` config variable to be as strong as the `GIT_FORCE_UNTRACKED_CACHE` environment variable.
…nditionally No matter what I try, I cannot get the untracked cache to fail on Windows. Here are the things that are done in this pull request: 1. Scalar enables the untracked cache unconditionally via `core.untrackedCache = true`. This was previously set to `false` on Windows. 2. Set `GIT_FORCE_UNTRACKED_CACHE=1` for the Scalar functional tests. 3. Update the `core.untrackedCache` config variable to be as strong as the `GIT_FORCE_UNTRACKED_CACHE` environment variable.
…nditionally No matter what I try, I cannot get the untracked cache to fail on Windows. Here are the things that are done in this pull request: 1. Scalar enables the untracked cache unconditionally via `core.untrackedCache = true`. This was previously set to `false` on Windows. 2. Set `GIT_FORCE_UNTRACKED_CACHE=1` for the Scalar functional tests. 3. Update the `core.untrackedCache` config variable to be as strong as the `GIT_FORCE_UNTRACKED_CACHE` environment variable.
…nditionally No matter what I try, I cannot get the untracked cache to fail on Windows. Here are the things that are done in this pull request: 1. Scalar enables the untracked cache unconditionally via `core.untrackedCache = true`. This was previously set to `false` on Windows. 2. Set `GIT_FORCE_UNTRACKED_CACHE=1` for the Scalar functional tests. 3. Update the `core.untrackedCache` config variable to be as strong as the `GIT_FORCE_UNTRACKED_CACHE` environment variable.
…nditionally No matter what I try, I cannot get the untracked cache to fail on Windows. Here are the things that are done in this pull request: 1. Scalar enables the untracked cache unconditionally via `core.untrackedCache = true`. This was previously set to `false` on Windows. 2. Set `GIT_FORCE_UNTRACKED_CACHE=1` for the Scalar functional tests. 3. Update the `core.untrackedCache` config variable to be as strong as the `GIT_FORCE_UNTRACKED_CACHE` environment variable.
…nditionally No matter what I try, I cannot get the untracked cache to fail on Windows. Here are the things that are done in this pull request: 1. Scalar enables the untracked cache unconditionally via `core.untrackedCache = true`. This was previously set to `false` on Windows. 2. Set `GIT_FORCE_UNTRACKED_CACHE=1` for the Scalar functional tests. 3. Update the `core.untrackedCache` config variable to be as strong as the `GIT_FORCE_UNTRACKED_CACHE` environment variable.
…nditionally No matter what I try, I cannot get the untracked cache to fail on Windows. Here are the things that are done in this pull request: 1. Scalar enables the untracked cache unconditionally via `core.untrackedCache = true`. This was previously set to `false` on Windows. 2. Set `GIT_FORCE_UNTRACKED_CACHE=1` for the Scalar functional tests. 3. Update the `core.untrackedCache` config variable to be as strong as the `GIT_FORCE_UNTRACKED_CACHE` environment variable.
…nditionally No matter what I try, I cannot get the untracked cache to fail on Windows. Here are the things that are done in this pull request: 1. Scalar enables the untracked cache unconditionally via `core.untrackedCache = true`. This was previously set to `false` on Windows. 2. Set `GIT_FORCE_UNTRACKED_CACHE=1` for the Scalar functional tests. 3. Update the `core.untrackedCache` config variable to be as strong as the `GIT_FORCE_UNTRACKED_CACHE` environment variable.
…nditionally No matter what I try, I cannot get the untracked cache to fail on Windows. Here are the things that are done in this pull request: 1. Scalar enables the untracked cache unconditionally via `core.untrackedCache = true`. This was previously set to `false` on Windows. 2. Set `GIT_FORCE_UNTRACKED_CACHE=1` for the Scalar functional tests. 3. Update the `core.untrackedCache` config variable to be as strong as the `GIT_FORCE_UNTRACKED_CACHE` environment variable.
…nditionally No matter what I try, I cannot get the untracked cache to fail on Windows. Here are the things that are done in this pull request: 1. Scalar enables the untracked cache unconditionally via `core.untrackedCache = true`. This was previously set to `false` on Windows. 2. Set `GIT_FORCE_UNTRACKED_CACHE=1` for the Scalar functional tests. 3. Update the `core.untrackedCache` config variable to be as strong as the `GIT_FORCE_UNTRACKED_CACHE` environment variable.
…nditionally No matter what I try, I cannot get the untracked cache to fail on Windows. Here are the things that are done in this pull request: 1. Scalar enables the untracked cache unconditionally via `core.untrackedCache = true`. This was previously set to `false` on Windows. 2. Set `GIT_FORCE_UNTRACKED_CACHE=1` for the Scalar functional tests. 3. Update the `core.untrackedCache` config variable to be as strong as the `GIT_FORCE_UNTRACKED_CACHE` environment variable.
No matter what I try, I cannot get the untracked cache to fail on Windows. Here are the things that are done in this pull request: 1. Scalar enables the untracked cache unconditionally via `core.untrackedCache = true`. This was previously set to `false` on Windows. 2. Set `GIT_FORCE_UNTRACKED_CACHE=1` for the Scalar functional tests. 3. Update the `core.untrackedCache` config variable to be as strong as the `GIT_FORCE_UNTRACKED_CACHE` environment variable.
No matter what I try, I cannot get the untracked cache to fail on Windows. Here are the things that are done in this pull request: 1. Scalar enables the untracked cache unconditionally via `core.untrackedCache = true`. This was previously set to `false` on Windows. 2. Set `GIT_FORCE_UNTRACKED_CACHE=1` for the Scalar functional tests. 3. Update the `core.untrackedCache` config variable to be as strong as the `GIT_FORCE_UNTRACKED_CACHE` environment variable.
No matter what I try, I cannot get the untracked cache to fail on Windows. Here are the things that are done in this pull request: 1. Scalar enables the untracked cache unconditionally via `core.untrackedCache = true`. This was previously set to `false` on Windows. 2. Set `GIT_FORCE_UNTRACKED_CACHE=1` for the Scalar functional tests. 3. Update the `core.untrackedCache` config variable to be as strong as the `GIT_FORCE_UNTRACKED_CACHE` environment variable.
No matter what I try, I cannot get the untracked cache to fail on Windows. Here are the things that are done in this pull request:
core.untrackedCache = true
. This was previously set tofalse
on Windows.GIT_FORCE_UNTRACKED_CACHE=1
for the Scalar functional tests.core.untrackedCache
config variable to be as strong as theGIT_FORCE_UNTRACKED_CACHE
environment variable.