checkout: add timeout and integrity checks to git mirror post step #18
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
timeoutcommand for proper process terminationTesting
Deploy to Blacksmith VM and verify:
reasontags (failure vs timeout)🤖 Generated with Claude Code
Note
Medium Risk
Changes the post-step cache persistence decision and adds new time-bounded git operations (refresh/GC/fsck), which could alter when sticky disks are committed and impact cache availability if misclassified as failures/timeouts.
Overview
Adds bounded execution and structured result reporting for Blacksmith git-mirror maintenance:
refreshMirror, mirrorgc --auto, and newfscknow run viatimeoutwith explicit success/timeout/failure results.Reworks the post-step cleanup flow to treat refresh/GC/fsck issues as a hard gate (sets
shouldCommit=falseand clearsvmHydratedGitMirror) before unmount/commit, and adds fire-and-forget internal metric reporting (git_mirror_refresh_failure,git_mirror_gc_failure,git_mirror_fsck_failure) tagged withreason(timeout vs failure).Written by Cursor Bugbot for commit 13e7335. This will update automatically on new commits. Configure here.