Repository navigation
Conversation
The task-add trace now expects two git processes, the doc-show store count routes discovery through rev-parse with a ceiling, pinned reads activate in place, the managed-cost evidence check no longer requires a git child, and gosec reasons cover the discovery stats.
Deferred activation now marks active only the generation the duplicate check read, skipping one another writer replaced since. Discovery declines a .git file that is not a regular file this user owns, a HEAD git would reject, a common dir without objects and refs, an unknown repository format or extension, an escaped or unbalanced config line, and config passed through the environment. A pack listing taken within a second of the directory's last change is not kept, since a same-timestamp addition would leave it stale.
The test environment always sets one benign entry, so declining on the variable's presence sent every test repository back through rev-parse. Discovery now declines only a malformed count or an entry that sets a core, safe, extensions or include key. The activation test proves the later activation through an indexed read, which list reads never perform.
This branch has not been deployed
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.
A
task addon a real repository pays for a durable bolt transaction and arev-parseprocess that it doesn't need. This removes both and caches the managed pack list.Phase timings for this change and the monorepo repack will be added in a comment.
Change
applyManagedmarks it active in the publication's own transaction. Other reads activate exactly as before.rev-parse:Dirsfinds the git directories in-process for the plain case. That means the nearest.gitdirectory or gitdir file, owned by this user, on one filesystem, with no routing variable and nocore.bareother than false. Everything else still runsrev-parse.cc-notes/managed-packsunder the common directory, keyed on the pack directory's modification time. A repository whose pack directory holds 11,000 fetch packs then doesn't reread it on every read. A write changes that time with its own pack, so the next write still lists the directory once.Verification
CI grades this, with no local test runs.
TestDirsRepositoryLayoutsnow runs through the in-process path, and a parity test compares it withrev-parseand checks the layouts it hands back. Other tests pin the deferred activation and the list cache. The format and the gates don't change; the lease guardian and the publication fsync are untouched.