Repository navigation
fix(microvm): ignore transient Git maintenance lock in snapshots - #2614
Merged
Merged
Conversation
Skip only objects/maintenance.lock before opening enumerated object entries. Git may remove the lock between directory enumeration and open; it is not object data and must not be published in a private snapshot. Add deterministic stale-entry coverage preserving errors for missing loose and packed objects, nested maintenance locks, and unrelated locks. Extend packed-Git snapshot coverage to prove an extant maintenance lock is omitted. Refs #2327 (item 4 only). Co-authored-by: Mecatl <[email protected]>
ChrisJBurns
approved these changes
Oct 29, 2026
10 of 14 tasks
Merged
2 tasks
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.
Summary
Addresses #2327 item 4 only; the umbrella issue remains open.
objects/maintenance.lockat the Git object-store root before opening an enumerated entry. Git may remove this transient artifact betweenReadDirandopen; it is not object data and should not be copied into the private snapshot.maintenance.lock, loose objects, and pack files still returnos.ErrNotExist.No retries, sleeps, timeout increases, fixture maintenance suppression, dependency changes, or unrelated flake fixes. Existing no-follow opens, alternates rejection, limits, and other error paths are unchanged.
Verification
Go 1.27.1, Linux amd64.
TestRepositoryRuntimeHostedSocketSuffix, andTestRepositoryRuntimeStartRejectsUnsafeObjectStoreBeforeBackend:task --concurrency 3 test— passed (complete offline multi-module suite).task lint— passed, zero issues in every module.task --concurrency 3 test:race— passed (complete offline multi-module race suite).go run ./cmd/mecademo— passed; verified tool calls, permission ask/approval, and final result.task test:module-metadata— passed; module manifests and sums unchanged.git diff --check— passed.Full test suites have a 1,800-second outer timeout; lint/demo have 600-second outer timeouts. Local logs and panel report are retained under ignored
.scratch/microvm-maintenance-lock/.Review
Independent Spec, Standards, and Test-adequacy reviews plus security, architecture, library-reuse, and duplication specialists: no findings; all seven reviewers completed.
PANEL: ship_blockers=0 important=0 advisory=0 reviewer_failures=0API compatibility
Backward-compatible internal bug fix: conforming clients need no changes. No wire fields, event semantics, API major, or feature identifiers change; no upgrade coordination is needed. No exported Go API or persisted-data schema changes. The transient Git maintenance lock is intentionally excluded from newly created private snapshots; real object-copy failures remain errors.