Skip to content

Sign-in listing: GitHub's pages four at a time (picker wait ~7 s → ~3 s) - #187

Merged
ndbroadbent merged 1 commit into
mainfrom
sign-in-listing-concurrent
Dec 4, 2026
Merged

ndbroadbent merged 1 commit into
mainfrom
sign-in-listing-concurrent

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

After #175, Nathan's sign-in listing (SyncGithubAccess) made 5 GitHub calls one after another and took 6.53 s. The picker showed "Loading your repositories from GitHub…" for all of it.

The listing now reads:

  1. the installations (1 call);
  2. the first page of every installation's repositories at once, which also gives each one's total_count;
  3. the remaining pages those totals need, shared out in installation order, also at once.

At most 4 calls are in flight, well inside GitHub's secondary limit on concurrent requests. So the wait is about three calls long, not the sum of them. It should drop from ~7 s to ~2–3 s for Nathan; I'll check the job's time in production after deploy.

The caps stay the same: 20 repository pages per sign-in, 10 per installation, and SIGN_IN_SYNC_BUDGET is unchanged. The order changes: every installation (up to the cap) now gets its first page before any installation gets more, where before a large first installation could use up the pages and leave later ones with none. The budget test's expected counts change to match, and the test GitHub's pages now carry total_count, as GitHub's do.

The coordinator asked for this to merge after #177.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@visualci-com

visualci-com Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

VisualCI

docspring/visualci · build #621 · 482 unchanged · no changes

This PR vs base: 35 changed, 82 added since #494, across 2 builds

docspring/visualci · journeys · build #618 · 50 unchanged · no changes

This PR vs base: 7 changed, 15 added since #489, across 2 builds

Updated as builds change. Agents can review with VisualCI's MCP tools.

@ndbroadbent
ndbroadbent force-pushed the sign-in-listing-concurrent branch from 978c744 to cf8eb25 Compare December 4, 2026 10:21
@ndbroadbent
ndbroadbent merged commit 7a98d98 into main Dec 4, 2026
16 checks passed
@ndbroadbent
ndbroadbent deleted the sign-in-listing-concurrent branch December 4, 2026 10:31
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