Repository navigation
Release M283.4 - #2198
Merged
Merged
Release M283.4#2198
Conversation
Exempt reflog and audited ref, object, and reader commands. Classify describe, grep, merge-file, and refs modes conservatively. Keep locks for unknown options and modes that can change tracked files, refresh the index, or dispatch arbitrary commands. Add policy tests for both hook phases and adversarial option forms. Add mounted tests for contention, placeholder creation, and index preservation during reflog writes. Assisted-by: GPT-6.1 Sol Signed-off-by: Tyrie Vella <[email protected]>
Quote forwarded arguments with Windows command-line rules. Spaces and embedded quotes must not create false options or hide metadata. Keep partial exemptions locked when the appended metadata is missing. Add installed-loader round trips and quoted-value contention tests. Pin optional-value behavior with adversarial unit cases. Verify each reflog rewrite beside index and tracked-content preservation. Use safe-output names and the shared PID argument prefix. Assisted-by: GPT-6.1 Sol Signed-off-by: Tyrie Vella <[email protected]>
….vfs.0.1 Update default Microsoft Git version to v2.56.1.vfs.0.1
…tions Preserve hook arguments and expand GVFS lock exemptions
Keep the heartbeat count separate from negative-cache maintenance. Collect and reset each interval atomically, and add tests for rejection scope, concurrent increments, and cache independence. Assisted-by: GPT-6.1 Sol Signed-off-by: Tyrie Vella <[email protected]>
Wait for all dedicated writers before the heartbeat loop. Bound the writer waits and heartbeat samples, and increase the workload to exercise contended counter updates. Assisted-by: GPT-6.1 Sol Signed-off-by: Tyrie Vella <[email protected]>
Bound command-lock waits without parking ProjFS or file/network workers. Revalidate projection metadata before the placeholder write and registration. Assisted-by: GPT-6.1 Sol Signed-off-by: Tyrie Vella <[email protected]>
Require a recognized console writer and its corresponding unredirected stream before status animation. Keep custom writers on the static start/result path. Reject managed console replacements through optional runtime metadata. If the runtime metadata is absent, disable animation. Preserve that metadata for NativeAOT. Add unit tests for static FileStream, memory, and pipe writers and completion messages. Add unit tests for explicit spinner requests, managed replacements, independent redirection, and runtime metadata compatibility. Keep the FileStream test off disk through a borrowed pipe handle. Assisted-by: GPT-6.1 Sol Signed-off-by: Tyrie Vella <[email protected]>
Use the prefetch step's pure timestamp parser to find indexed packs without incomplete markers before clone starts background prefetch. For cached packs, request a hidden window and omit the announcement. Continue prefetch to check for updates. Retain the initial-prefetch window and announcement for empty or incomplete caches. Preserve trusted-index prefetch and the no-prefetch option. Log cache inspection failures and preserve process-start errors. Release the Process wrapper without waiting for the worker. Add mock-based unit tests for cache detection, mixed complete and incomplete packs, background launch options, announcements, and error paths. Add functional tests that run clone with cached and empty caches. The tests also assert trusted-index and no-prefetch behavior, and wait for background prefetch to complete before cleanup. The tests isolate native and Git config reads in a per-test home. Assisted-by: GPT-6.1 Sol Signed-off-by: Tyrie Vella <[email protected]>
Count Git-lock placeholder rejections in heartbeat telemetry
Keep legacy rejection for the owner, descendants, and unknown ancestry. Restrict the queue to actual contention. Retain the availability budget across metadata retries. Preserve internal ownership and terminal completion during cancellation and shutdown. Add focused ancestry, projection-barrier, counter, and shutdown guards. Use a named event for the native child-hook result. Assisted-by: GPT-6.1 Sol Co-authored-by: Copilot <[email protected]> Signed-off-by: Tyrie Vella <[email protected]>
Retain at most 64 classifications per enabled mount in an LRU cache. Key each result by the lock acquisition and both process identities. Verify process creation times before and after each lookup. Share concurrent misses without holding the cache gate across a snapshot. Do not retain unknown or failed classifications. Add unit tests for repeated file opens, concurrent misses, identity changes, LRU eviction, and completion of an evicted lookup. Assisted-by: GPT-6.1 Sol Co-authored-by: Copilot <[email protected]> Signed-off-by: Tyrie Vella <[email protected]>
Replace the draft boolean key with gvfs.placeholder-lock-wait-ms. Use zero when the key is unset, and accept budgets up to 60000 milliseconds. Warn and disable the feature for invalid values or config read failures. Read the budget at mount time and emit it in heartbeat metadata. Add unit tests for native config reads, boundaries, disabled behavior, warning paths, and mount-time deadlines. Add a native functional test for a 500-millisecond timeout and retry. Assisted-by: GPT-6.1 Sol Co-authored-by: Copilot <[email protected]> Signed-off-by: Tyrie Vella <[email protected]>
Pass an empty input stream to pack-objects so the cached-pack functional tests do not inherit console stdin. Dispose the stream after cache setup. Assisted-by: GPT-6.1 Sol Signed-off-by: Tyrie Vella <[email protected]>
Set LC_ALL=C in a shared Git subprocess factory so translated diagnostics do not bypass English error classifiers. Use the factory for GitProcess and standalone hook launchers without changes to their process flags. Add unit tests for inherited locale variables, parent-environment preservation, and the locale of a real Git child. Assisted-by: GPT-6.1 Sol Signed-off-by: Tyrie Vella <[email protected]>
Replace the object gate with System.Threading.Lock. Record the synchronization-gate convention in CONTRIBUTING.md. Assisted-by: GPT-6.1 Sol Co-authored-by: Copilot <[email protected]> Signed-off-by: Tyrie Vella <[email protected]>
Add ProcessHelper.RunGit and share process setup with the generic Run helper. Use RunGit for worktree status and checkout so the hooks do not duplicate process flags or require a new project reference. Add unit tests for locale preservation and both output-redirection modes. Assisted-by: GPT-6.1 Sol Signed-off-by: Tyrie Vella <[email protected]>
Quiet clone prefetch when the shared cache contains completed packs
Keep status spinners off redirected and custom output
Force the C locale for GVFS Git subprocesses
libgit2 does not read the config that GIT_CONFIG_GLOBAL, GIT_CONFIG_SYSTEM, GIT_CONFIG_NOSYSTEM, GIT_CONFIG, GIT_CONFIG_COUNT, or GIT_CONFIG_PARAMETERS select or supply. RetryConfig already reads its settings with git.exe in that case. The boolean gvfs.* settings did not. For example, gvfs.trust-pack-indexes, gvfs.prefetch-offload, and gvfs.show-hydration-status ignored a value that came from one of these variables, and the read used the user's real config instead. When LibGit2Repo.EnvironmentChangesGitConfig() is true, read these settings with "git config --type=bool". Git normalizes the value, exits with 1 when the key is unset, and fails when the value is not a boolean. - Add the LibGit2Repo.TryReadConfigBoolWithGit delegate. The static LibGit2Repo.GetConfigBoolOrDefault and every LibGit2RepoInvoker constructor require it. Remove the invoker constructors that took no reader. - Keep the failure policy of each read path. The static helper logs the failure and returns the default. The invoker throws when git cannot read the key, as its libgit2 read does. This keeps an invalid gvfs.enable-packfile-recovery value from enabling pack recovery. - Add GitProcess.TryGetBoolFromConfig. GitRepo, CloneVerb, PrefetchVerb, BlobPrefetcher, and InProcessMount pass it as the reader. Read gvfs.mount-progress through the static helper. - In GVFS.Hooks, read gvfs.show-hydration-status with the parent Git executable, as the alias check does. Share the config query and retry code between the two reads. - Close the redirected standard input in ProcessHelper. With GIT_CONFIG=-, git reads config from standard input, and a hook query waited for input forever. - Add unit tests for the git route, the libgit2 route, an unset key, a failed git read through each path, a git reader that throws, the output parser, the git command lines, and the closed standard input. Assisted-by: Claude Opus 5.5 Signed-off-by: Tyrie Vella <[email protected]>
Treat a reader that predates the verified lock owner as unrelated. Revalidate both endpoint identities before returning the result. Retain the ancestry lookup for equal or newer reader creation times. Add unit tests for exited parents, cache reuse, callback completion, owner-family rejection, and identity changes. Assisted-by: GPT-6.1 Sol Co-authored-by: Copilot <[email protected]> Signed-off-by: Tyrie Vella <[email protected]>
The unit tests verify how boolean reads choose between libgit2 and git, but they use mocks. Add a functional test that runs gvfs prefetch --commits with gvfs.prefetch-offload set in local config and the opposite value supplied through GIT_CONFIG_COUNT, in both directions, after a baseline commit prefetch. The test asserts that the prefetch log records the environment value. When the environment enables offload, the test asserts that the mount process handles the prefetch. When the environment disables offload, the test asserts that gvfs does not ask the mount process. Assisted-by: Claude Opus 5.5 Signed-off-by: Tyrie Vella <[email protected]>
Add opt-in bounded waits for Git-lock placeholder creation
…llback Read gvfs.* booleans with git when the environment changes config
Add a default-off optimistic clone checkout flag. When the commit and root tree are local, try checkout without a commit pack download. Download the commit pack and retry checkout once for tree-read errors. Preserve the disabled path and return remaining checkout failures. Reuse the shared Boolean config entry point. Keep normal reads in process with libgit2 and use Git when process config overrides require it. Add unit tests for retry limits and checkout diagnostics. Add functional tests for loose and packed caches, missing objects, failed recovery, and conflicting process config. The tests assert the requested commit, the recovery diagnostic, and the final index tree. Assisted-by: GPT-6.1 Sol Signed-off-by: Tyrie Vella <[email protected]>
Mark Clone_UseCachedCommit with Keywords.Telemetry. Keep the event metadata unchanged. Assisted-by: GPT-6.1 Sol Signed-off-by: Tyrie Vella <[email protected]>
Record whether clone skips the initial commit pack download. If root attributes fail after that skip, download the commit pack and retry. Share one recovery download between root attributes and checkout. Preserve the disabled path and return download or repeated-read errors. Add unit tests for root recovery, error propagation, and the shared limit. Add functional tests for empty, zeroed, and truncated cached root trees. The tests also assert failed downloads and incomplete recovery packs. Assisted-by: GPT-6.1 Sol Signed-off-by: Tyrie Vella <[email protected]>
The unattended mount test changes GVFS_UNATTENDED for the test process. Parallel fixtures inherit that value and can disable their status caches. Pass environment overrides to the mount child process instead. Keep the parent environment unchanged and assert that invariant in the test. Assisted-by: GPT-6.1 Sol Co-authored-by: Copilot <[email protected]> Signed-off-by: Tyrie Vella <[email protected]>
Observe cache deletion before the command starts so that fast regeneration cannot hide invalidation. Retain cache regeneration and status output assertions. Add a functional test that waits for regeneration before the callback returns. Assisted-by: GPT-6.1 Sol Signed-off-by: Tyrie Vella <[email protected]>
…st-environment Isolate the unattended mount test environment
Try cached trees before downloading the clone commit pack
…tion-flake Fix status-cache invalidation test race
Git can write a sparse index (index.sparse). A sparse index stores a collapsed subtree as one entry with mode 040000 and a path that ends in '/'. The projection cannot use such an entry. The parser checks the mode field only when SupportsFileMode is true, and it is false on Windows. So the parser accepted the entry as a file. The mount then reported that the repository was ready, and ProjFS enumeration failed about 2.7 seconds later with "fileName cannot be empty". The projection also omitted every file in the collapsed subtree. Recognise mode 040000 as FileType.Directory. GitIndexParser.ParseIndex now rejects a sparse-directory entry before any entry callback receives it. The check uses the trailing '/', so it works when the parser skips the mode field. Every index parse is covered: the projection build (from .git\index or from the persisted GVFS_projection copy), the placeholder scan, index validation, and the folder count for 'gvfs health'. The new SparseIndexNotSupportedException names the entry and gives recovery steps that work with released versions of Git: turn off index.sparse in the repository config, expand the index, delete the persisted projection index, and mount. Control characters in the entry path are escaped in the message. The mount reports only this message. The mount log keeps the stack trace. When the placeholder scan finds a sparse index, the projection is marked invalid, so that the next mount reports the message. 'gvfs repair' reports the message and does not replace the index with one built from HEAD, because that would discard staged changes. Assisted-by: Claude Opus 5.5 Signed-off-by: Tyrie Vella <[email protected]>
Recovery step 2 runs 'git config --worktree index.sparse false'. Git rejects --worktree when the repository has more than one worktree (including a prunable one) and extensions.worktreeConfig is off. A primary enlistment turns that extension on only when a linked worktree has a config.worktree file, so the step can fail with "--worktree cannot be used with multiple working trees". Tell the user to run 'git config index.sparse false' in that case. Git reads no config.worktree file while the extension is off, so the repository config is the right place. The step keeps --worktree first, because with the extension on, a value in config.worktree would hide a value in the repository config. Assisted-by: Claude Opus 5.5 Signed-off-by: Tyrie Vella <[email protected]>
…on-reject-sparse-dirs Reject sparse-directory index entries in the projection parser
Tyrie Vella (tyrielv)
marked this pull request as ready for review
November 17, 2026 16:11
Tyrie Vella (tyrielv)
enabled auto-merge
November 17, 2026 16:11
|
[KeithBot]: ✅ No issues found · iteration 1 ( Validation
Approving. 🤖 KeithBot · claude-opus-5.5 · reply on a thread to dispute |
Keith Klein (KeithIsSleeping)
approved these changes
Nov 17, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Changes:
gvfs.*booleans through Git when environment variables override the configuration (Read gvfs.* booleans with git when the environment changes config #2179).gvfs.placeholder-lock-wait-ms. The default remains disabled (Add opt-in bounded waits for Git-lock placeholder creation #2182).gvfs.optimistic-clone-checkout, with one recovery download for an incomplete cache. The default remains disabled (Try cached trees before downloading the clone commit pack #2180).v2.56.1.vfs.0.1. This change does not ship Git in the installer (Update default Microsoft Git version to v2.56.1.vfs.0.1 #2167).GVFS_UNATTENDEDto the unattended mount child process to prevent interference with parallel tests (Isolate the unattended mount test environment #2186).