Skip to content

Improve list-repos compatibility and performance - #27

Merged
marcleblanc2 merged 2 commits into
mainfrom
list-repos-performance
Aug 23, 2026
Merged

Improve list-repos compatibility and performance#27
marcleblanc2 merged 2 commits into
mainfrom
list-repos-performance

Conversation

@marcleblanc2

@marcleblanc2 marcleblanc2 commented Aug 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • query Sourcegraph version, user permissions, and GraphQL schema once at startup, then mark unsupported or admin-only CSV fields explicitly
  • reuse HTTP connections, bound concurrent work, validate incomplete responses, and use shared retry backpressure
  • retain complete output while adding sorted per-run CSVs, optional skipped-file trigram metrics, and 90%-of-request search timeouts
  • improve retry resilience, error summaries, empty-repository commit counts, and end-of-run issue totals
  • document generated CSV output and remaining optimization work

Verification

  • uv run ruff format --check list-repos.py
  • uv run ruff check list-repos.py
  • uv run pyright list-repos.py
  • uv run python -m py_compile list-repos.py
  • npx --no-install markdownlint-cli2 AGENTS.md CSV_SCHEMA.md dev/TODO.md
  • focused checks for error truncation, GraphQL message limits, empty repositories, and issue totals
  • live one-repository run against sourcegraph.sourcegraph.com with stats, skipped-file details and metrics, commit counting, and search
  • full benchmark: 1514.404s versus 2224.845s baseline (31.9% faster)

@marcleblanc2
marcleblanc2 force-pushed the list-repos-performance branch from 58ba525 to 1cb4dc4 Compare August 23, 2026 01:23
@github-actions

Copy link
Copy Markdown

@marcleblanc2
marcleblanc2 merged commit 8e62139 into main Aug 23, 2026
1 check passed
@marcleblanc2
marcleblanc2 deleted the list-repos-performance branch August 23, 2026 02:19
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