Skip to content

Fold reclone-failed-repos into list-repos - #32

Merged
marcleblanc2 merged 1 commit into
mainfrom
list-repos-failed-scope-batched-mutations
Sep 2, 2026
Merged

Fold reclone-failed-repos into list-repos#32
marcleblanc2 merged 1 commit into
mainfrom
list-repos-failed-scope-batched-mutations

Conversation

@marcleblanc2

Copy link
Copy Markdown
Collaborator

Folds repo-troubleshooting/reclone-failed-repos/ into list-repos.py and deletes it.

  • --failed: server-side failedFetch / corrupted / cloneStatus: NOT_CLONED filters, deduped by id, then post-filtered with the existing client-side has_cloning_error() so the result matches the full-scan repos-with-cloning-errors.csv
  • --fetch (updateMirrorRepository) alongside --reclone; mutually exclusive, bare form requires --failed, REPO form works standalone
  • All mutations batched (10 aliased per request) and parallel via --concurrency; "another reclone is in progress" reported as skipped
  • New CSV columns: mirrorInfo.updateQueue.index / .updating, plus action / result per repo when a mutation flag is set
  • README: document new flags; fix stale "Output files" section (outputs go to list-repos-runs/<endpoint>/<timestamp>/)

Tested against an offline fake GraphQL server (dedupe, client-side post-filter, per-alias skipped/failed/triggered, path-less errors, scoped REPO forms) and read-only --failed against S2. mise run check and markdownlint clean.

…fold in reclone-failed-repos

- --failed: server-side failedFetch / corrupted / cloneStatus filters,
  deduped and post-filtered with the existing client-side error detection
- --fetch (updateMirrorRepository) alongside --reclone; both need --failed
  or a REPO
- All mutations batched (10 per request) and parallel via --concurrency;
  'another reclone is in progress' reported as skipped
- New CSV columns: mirrorInfo.updateQueue.index / .updating, and
  action / result per repo when a mutation flag is set
- Delete repo-troubleshooting/reclone-failed-repos, superseded by the above

Amp-Thread-ID: https://ampcode.com/threads/T-01a06014-d2c4-759d-b185-65ace201a487
Co-authored-by: Amp <amp@ampcode.com>
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown

@marcleblanc2 marcleblanc2 changed the title list-repos: add --failed scope, --fetch, batched parallel mutations; fold in reclone-failed-repos Fold reclone-failed-repos into list-repos Sep 2, 2026
@marcleblanc2
marcleblanc2 merged commit c0abcc3 into main Sep 2, 2026
1 check passed
@marcleblanc2
marcleblanc2 deleted the list-repos-failed-scope-batched-mutations branch September 2, 2026 04:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant