reclone-failed-repos: add --fetch, diagnostic CSV columns - #31
Closed
marcleblanc2 wants to merge 2 commits into
Closed
reclone-failed-repos: add --fetch, diagnostic CSV columns#31marcleblanc2 wants to merge 2 commits into
marcleblanc2 wants to merge 2 commits into
Conversation
Replace --apply with mutually exclusive --fetch (updateMirrorRepository) and --reclone (recloneRepository). Default remains a read-only report. Widen the failedFetch query and write per-repo mirror diagnostics to the CSV: remote URL, shard, size, clone/corruption flags, last successful fetch, next sync, update schedule and queue state, last error, and last sync output, alongside the action taken and its result. Rename --reclone-batch-size / --reclone-parallelism to --batch-size / --parallelism since they now apply to both actions. Amp-Thread-ID: https://ampcode.com/threads/T-01a06014-d2c4-759d-b185-65ace201a487 Co-authored-by: Amp <amp@ampcode.com>
Also flatten literal \n / \t in lastError and lastSyncOutput, which gitserver emits when it quotes git's output inside the error message. Amp-Thread-ID: https://ampcode.com/threads/T-01a06014-d2c4-759d-b185-65ace201a487 Co-authored-by: Amp <amp@ampcode.com>
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.
Replace --apply with mutually exclusive --fetch (updateMirrorRepository) and --reclone (recloneRepository). Default remains a read-only report.
Widen the failedFetch query and write per-repo mirror diagnostics to the CSV: remote URL, shard, size, clone/corruption flags, last successful fetch, next sync, update schedule and queue state, last error, and last sync output, alongside the action taken and its result.
Rename --reclone-batch-size / --reclone-parallelism to --batch-size / --parallelism since they now apply to both actions.
Amp-Thread-ID: https://ampcode.com/threads/T-01a06014-d2c4-759d-b185-65ace201a487