-
Notifications
You must be signed in to change notification settings - Fork 94
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
Some scalar clones are putting GVFS packs in local object dir instead of shared object dir #645
Comments
The agents in question are actually OMR-based (and technically Server 2022 instead of Win11). We have 1JS agents too, but haven't dug in there because they aren't impacted like our OMR agents are. |
I figured this one out. When running [gvfs]
sharedCache = c:\\.scalarCache/id_ba47400f-eebe-4850-a8bf-ef694ef81414 This becomes problematic in this code, which uses Lines 326 to 331 in b68812e
|
@AtOMiCNebula great find! This |
One thing @AtOMiCNebula pointed out is that we want to make sure that users in this state are getting into a better state when the config is parsed correctly. A possible direction to be as safe as possible is to update the |
I created #660 to fix this. |
Resolves #645. When on Windows, these paths may differ only by case in the config but also correspond to the same paths on disk. Use fspathcmp() instead. Signed-off-by: Derrick Stolee <stolee@gmail.com>
My major concern about this strategy is that |
or closed issue matching
what I'm seeing, including in the
git-for-windows/git
tracker.Setup
microsoft/git
are you using? Is it 32-bit or 64-bit?Are you using Scalar or VFS for Git?
Scalar.
Windows Server 2022. 64-bit.
to the issue you're seeing?
The machines with this issue are self-hosted ADO build agents intended to run pipeline tasks that require a 1JS Git enlistment.
Details
On these machines, running
scalar clone
during image creation will cause the prefetch packfiles and GVFS protocol blob packs to be installed in the local.git/objects/pack
directory instead of the shared object cache. Thegvfs.sharedCache
config option is set in.git/config
and the folder it points to exists.(There was some time where I considered that
alt_odb_usable()
was not registering the cache directory as being valid, but all evidence points to implying that Git can create that directory, so it shouldn't be blocked by something like that.)If the problem was occurring with a specific repository, can you specify
the repository?
The text was updated successfully, but these errors were encountered: