Skip to content

Some scalar clones are putting GVFS packs in local object dir instead of shared object dir #645

Closed
@derrickstolee

Description

@derrickstolee

Setup

  • Which version of microsoft/git are you using? Is it 32-bit or 64-bit?
$ scalar diagnose
Collecting diagnostic info

git version 2.44.0.vfs.0.2
cpu: x86_64
built from commit: 105fa1d4cd50575fc1e499d0e4159a5e5b62bf7d
sizeof-long: 4
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon
Repository root: C:/mono_scalar/src
Cache Server: https://wbp-adoprx.microsoft.engineering/ba47400f-eebe-4850-a8bf-ef694ef81414
Local Cache: c:\.scalarCache/id_ba47400f-eebe-4850-a8bf-ef694ef81414

Available space on 'C:/': 33.43 GiB

Are you using Scalar or VFS for Git?

Scalar.

  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?

Windows Server 2022. 64-bit.

  • Any other interesting things about your environment that might be related
    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. The gvfs.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?

    • Office Monorepo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions