Repository navigation
Quiet clone prefetch when the shared cache contains completed packs - #2169
Merged
Tyrie Vella (tyrielv) merged 2 commits intoNov 12, 2026
Merged
Tyrie Vella (tyrielv) merged 2 commits into
Tyrie Vella (tyrielv) merged 2 commits into
Conversation
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]>
Tyrie Vella (tyrielv)
force-pushed
the
tyrielv/quiet-cached-prefetch
branch
from
November 11, 2026 21:51
ff826a1 to
e17ba9c
Compare
Tyrie Vella (tyrielv)
marked this pull request as ready for review
November 12, 2026 01:07
|
[KeithBot]: Approach: Right layer: clone's launcher picks the hidden window and no notice from a read-only check that matches PrefetchStep's completed-pack rule, and prefetch still runs. Validation
🤖 KeithBot · claude-opus-5.5, gpt-6.1-sol, gemini-4-argon + approach review · reply on a thread to dispute |
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]>
Tyrie Vella (tyrielv)
enabled auto-merge
November 12, 2026 17:00
|
[KeithBot]: ✅ Resolved · iteration 2 (
Validation
Approving. 🤖 KeithBot · recheck by claude-opus-5.5 · reply on a thread to dispute |
Keith Klein (KeithIsSleeping)
approved these changes
Nov 12, 2026
Tyrie Vella (tyrielv)
merged commit Nov 12, 2026
62037a2
into
microsoft:master
39 of 41 checks passed
This was referenced Nov 17, 2026
Merged
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.
Problem and Context
When
gvfs.trust-pack-indexes=false, clone starts commit prefetch in a minimized window and prints the initial-prefetch warning.This also happens when the shared cache already contains prefetch packs.
The window can appear briefly even when prefetch has no new packs to download.
Changes
--no-prefetchbehavior.--no-prefetchcases.The tests assert the announcement and prefetch requests. The tests wait for prefetch to finish before cleanup.
The tests use a per-test Git home so native and Git config readers select the same flag.
Known gaps and deliberate decisions
A stale or damaged cache can still require a long hidden prefetch.
Freshness and integrity checks remain outside this change, with no follow-up planned.